PiPHP / GPIO

A PHP library for accessing the GPIO pins on a Raspberry Pi.
MIT License
425 stars 43 forks source link

Under New Management :D #26

Open svpernova09 opened 3 years ago

svpernova09 commented 3 years ago

This morning @AndrewCarterUK put out a call for a new maintainer: https://twitter.com/AndrewCarterUK/status/1291697455663325184

@Sam-Burns and I offered to step in and take over the project and I'm excited to say hello and share some initial plans with everyone.

A general outline of my plans for the GPIO project:

I'd love to know what OS our users are using on their Pis, here is a short straw poll: http://www.strawpoll.me/20734890

Raspberry Pi OS has PHP 7.0 -> 7.3 it seems. I think we start with 7.3 as a base target of compatibility and drop everything from there unless there is a very pressing need? If you have such a use case please comment!

If you have any questions for us please ask them here!

alexander-zierhut commented 3 years ago

I am currently using PHP 8.0 and it works fine. What exactly are you trying to refactor? What do you think about adding abstractions for example: Buttons, Keypads, LCD Displays, etc. (I might be interested in creating a PR for that. )

svpernova09 commented 3 years ago

Anything to help modernize and improve readability I'd be all for.

alexander-zierhut commented 3 years ago

Great! What do you think about making GPIO static? So instead of:

$gpio = new GPIO();
$pin = $gpio->getInputPin(2);

this

$pin = GPIO::getInputPin(2);

This can also be implemented without breaking changes.

alexander-zierhut commented 3 years ago

When you say modernize, are you facing any particular issues? I am just using it since two days and it seems pretty great to me. It's not even a big codebase. Very cool project indeed. I have been using C for these kinds of projects before.