GET STARTED

Please follow this simple steps to configure Php Controller

Install the webserver and the PHP interpreter

Choose and install the software you prefer for your web server (NGINX, LIGHTTPD, APACHE, ...) and the lastest PHP interpreter version following the procedures described on official web pages

Install Mosquitto broker and the client library Mosquitto-PHP

Click HERE to go on the official web site to install the lastest version of the MQTT broker and HERE to install and configure the client library Mosquitto-PHP (you can jump this passage if your project doesn't require the MQTT communication)

Install Php Controller

Download the package from HERE and extract it into the main folder of your web server (usually the result is /var/www/html/phpcontroller)
Now set the folder privileges as follows

sudo chmod 755 -R /var/www/html/phpcontroller sudo chown -R www-data:www-data /var/html/phpcontroller

Configure your controller

Customize the library for your purpose using a simple text editor: click HERE to discover how to do that and enjoy of your application!