Giter VIP home page Giter VIP logo

php-pigpio's Introduction

Pigpio client library for PHP

Latest Stable Version Build status

PHP client for the great Pigpio daemon library

‼️ Alpha status:

Library is currently in Alpha status. Bugs may occur, library may be unstable, API may be changed anytime.

Feedback and bug reports are highly welcome!

Installation

Library may be installed by using Composer:

composer require volantus/php-pigpio

Features

Currently the following features are fully implemented. If your desired Pigpio feature is not fully supported, you may use raw requests.

Feature Status Version
Notifications (e.g. GPIO changes) ✔️ Fully supported 0.1.1
Reading PWM signals ✔️ Fully supported 0.1.2
Sending PWM signals ✔️ Fully supported 0.3.0
SPI communication ✔️ Fully supported 0.2.0
Hall sensors rotation counter ✔️ Fully supported 0.2.5
Raw requests/response handling ✔️ Fully supported 0.1.1

Basic usage

This library is interacting with Pigpio by using sockets. The core communication is handled by the Client class:

use Volantus\Pigpio\Client;
use Volantus\Pigpio\Network\Socket;

$client = new Client(new Socket('127.0.0.1', 8888));

Starting the Pigpio daemon

If the daemon is not running already, it can simply be started via:

sudo pigpiod

Contribution

Contributors are highly welcome! Please report bugs, ask questions and create feature requests :)

Pull requests

Three simple rules:

  1. Write Tests
  2. Follow the project code style
  3. Use feature branches/forks and pull requests

php-pigpio's People

Contributors

marius-meissner avatar nachofassini avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.