├── LICENSE └── README.md /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PHP Resources for a Raspberry Pi 2 | 3 | A list of resources for PHP programming on a Raspberry Pi 4 | 5 | ## GPIO Libraries 6 | 7 | All of these libraries support reading and writing values to the GPIO pins. 8 | 9 | - **[PiPHP: GPIO](https://github.com/PiPHP/GPIO)** 10 | 11 | > Supports registering callbacks for interrupt handling. 12 | 13 | - **[php-gpio](https://github.com/ronanguilloux/php-gpio)** 14 | 15 | > No support for interrupt handling, but does have support for a couple of devices (MCP3002 analog-to-digital converter, DS18B20 one wire temperature sensor). 16 | 17 | - **[phpi](https://github.com/calcinai/phpi/tree/master/src/PHPi)** 18 | 19 | > Supports registering callbacks for interrupt handling. Uses React PHP and is event driven. Supports a range of MCP300X analog to digital converters. 20 | 21 | ## Other Libraries 22 | 23 | - **[raspicam-php](https://github.com/cvuorinen/raspicam-php)** 24 | 25 | > Library for controlling the Raspberry Pi camera module (raspicam). Supports still images and has a timelapse method. Uses a fluid interface. 26 | 27 | - **[raspberry-piface-api](https://github.com/peec/raspberry-piface-api)** 28 | 29 | > Library for controlling the PiFace module. This is a port of the [original python library](https://github.com/piface/pifacedigitalio) and requires the PHP SPI extension. 30 | 31 | 32 | 33 | ## Tutorials 34 | 35 | - **[Powering Raspberry Pi Projects with PHP](https://www.sitepoint.com/powering-raspberry-pi-projects-with-php/)** 36 | 37 | > SitePoint tutorial showing how to use **[PiPHP: GPIO](https://github.com/PiPHP/GPIO)** to blink an LED a few times after detecting a push button interrupt. 38 | 39 | - **[Install PHP7 on a Raspberry Pi](https://www.stewright.me/2016/03/turn-raspberry-pi-3-php-7-powered-web-server/)** 40 | 41 | - **[Basic Internet Of Things Tutorial Using Raspberry Pi And Laravel Cloud](https://www.cloudways.com/blog/internet-of-things-tutorial-using-raspberry-pi-laravel/)** 42 | - **[Setting Up An Apache Server With Raspberry Pi](https://www.raspberrypi.org/documentation/remote-access/web-server/apache.md)** 43 | - **[Setup a Raspberry Pi PHP Web Server](http://www.instructables.com/id/Setup-a-Raspberry-Pi-PHP-web-server/)** 44 | - **[Simple and Intuitive Web Interface for Your Raspberry Pi](http://www.instructables.com/id/Simple-and-intuitive-web-interface-for-your-Raspbe/)** 45 | - **[Turn your Raspberry Pi 3 into a PHP 7 powered web server](https://www.stewright.me/2016/03/turn-raspberry-pi-3-php-7-powered-web-server/)** 46 | - **[Get MySql and PHP to Work Together in Raspberry Pi](http://www.php5dp.com/get-mysql-and-php-to-work-together-in-raspberry-pi/)** 47 | - **[Raspberry Pi Dev Setup with Nginx + PHP7](https://getgrav.org/blog/raspberrypi-nginx-php7-dev)** 48 | 49 | --------------------------------------------------------------------------------