How do I implement PHP to work with hype projects?

Hello nick, good job, looks awesome.
Care to share some notes on how to approach things, when doing front-end/back-end with Hype/php?

/BK

1 Like

The way I worked was to create the php as a separate page and then use Hype as a wrapper.
With the help of an iFrame Insert/HTML Widget this is the easiest approach

Making your php fit that iFrame is the most complex aspect of the process.

Why do it this way?

When I develop I am looking to solve a challenge without creating additional issues.
Hype is an incredible tool for doing what it does best making very solid interactive User Interface experiences.

While you can process form fields with PHP I want the heavy lifting to be done outside of Hype and then wrapped up with a Hype GUI.
This also helps me to isolate issues into modules that I can address quickly.

Does that help?

2 Likes

Also this is a great tool to make PHP form building even easier.
Open Source as well.
It also has a data visualization module.
http://www.formtools.org/

This is a good way to design forms on your site and then wrap into your Hype document.
Or you can code your own PHP script line by line whichever is more fun :wink:

1 Like

Excellent, new to Hype, looking forward to do some experimenting.

What I am looking for is basically logging in to service (php backend), then with php reading data and writing out as a json data, then catch it with Hype and do things visually ( with scenes and so on)…I think that is possible, no?

Do you know of any examples out there (new to the forums as well myself), showing similar approach, of reading data outside (initiating data read from hype) then reading json and visually doing something in Hype?

Thanks again.

/BK

You can definitely use JSON and PHP to do data updates…
Hope these links help you out :smile:

http://hype.desk.com/customer/portal/questions/1473335-looking-for-a-way-to-call-and-access-json-data-in-hype

So many of the tutorials have been focusing on javascript and jQuery but you can definitely create a Hype front end to a PHP backend set of data.

I would definitely explore some of the PHP libraries and then practice with those to get your backend up and running quickly so you can focus on the hooks necessary to display with your Hype elements.

For example:
intervention Image is an open source PHP image handling and manipulation library. It provides an easier and expressive way to create, edit, and compose images and supports currently the two most common image processing libraries GD Library and Imagick.
http://image.intervention.io/getting_started/introduction


And this is a nice compilation of 25 favorites by CodeGeekz

1 Like