Anyone using PHP in Internet of Things? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Anyone using PHP in Internet of Things?

Is there anyone who is using PHP for IOT projects? Please share your thoughts on using PHP in IOT. Is it practical enough? How you are using this language?What sort of task is carried out in PHP? Are there any external libaries that you are using? Thanks in advance.

28th Jul 2018, 8:03 AM
Rupsena Purkayastha
Rupsena Purkayastha - avatar
1 Answer
+ 4
You probably wouldnt use PHP for directly controlling the device. You would use it for as a bridge between a web interface and the actual device controller. For example, let's say you wanted to control your garage through a website from home. You'd want to set up a raspberry pi of some alternative and have a script running so when a certain function runs it sends a signal to the opener and opens/closes the garage. Then you'd want to host a local website on the raspberry pi that can be accessed from the home network. You would then use PHP to send a request from the website (when a button is pushed or something) to the script that runs the function and opens the garage.
28th Jul 2018, 11:37 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar