Closed OZ1SEJ closed 2 years ago
You need to include the Composer autoloader:
require __DIR__.'/vendor/autoload.php';
Hello, please add information that the apache2 user must be added to the gpio group if we want to deal with the web browser and that it is also necessary to restart raspiberry pi before using the library.
I was stuck on this point and finding the solution took a very long time (5 hours!!!). Thanks for the work and keep it up
This seems to solve the problem - closing.
I installed via composer:
And then using this code in
/var/www/html/index.php
Results in