Download the PHP package chickentikkamasala/gpio without Composer

On this page you can find all versions of the php package chickentikkamasala/gpio. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package gpio

GPIO manager

requires testing

The GPIO manager is designed to house your hardware environment setup and allow you to manager and interact with the hardware.

The GPIO manager comes with a Laravel bridged service provider for easy integration with Laravel.

The GPIO class requires gpio to be installed

Installing into laravel

Add the package to your application via composer

Add the event listener to your Event Service Provider

The above is for recaching the GPIO manager after a request to prevent redeclaration of the manager and resetting everything to their default value.

If you run your application and alter your environment setup, you may want to run php artisan cache:clear to clear the cached setup.

Publish the vendor to get the config files

Example setup

Testing with the command line

Turn the redled on pin 1 on full

List all GPIO pin input from your setup

This will output an array of all the GPIOs setup with the manager

Creating a new connection

Alternatively to config setup you can call the create function to add new connections.

The manager maps your named connections as parameters as shown above. When reading pins we can use the same method with the parameters to get the result

Mapping also applies to the values 'OFF' and 'ON' where PWM expects 1023 as max and write expect 1. 'OFF' will equal to 0.

Custom GPIO Classes/Modes

You can however add your own GPIO modes/classes in 2 ways.

First being

Another method is to use the registerMode function to register the mode type for the manager so you can do something like this

Our GPIO config array in app/gpio.php

Terminal functions

Available default modes

Value conversions

You may remember seeing (if you've ever used an arduino) values being set as HIGH or LOW. You can do this with the GPIO and depending on it's mode it will automatically fix your maximum value.

Getting the GPIO class out of the manager

You can get the class out of the manager if you wish using

PWM functions

In PWM GPIO I have added 2 function for incrementing and decrementing for incrementing/decrementing to a value within an interval.

GPIO Options

If you see http://wiringpi.com/the-gpio-utility/ there is a usage section. These options are available to pass to the GPIOManager like so (example to use BCM pins):

An extremely handy pin map https://pinout.xyz/

Default GPIO value

Coming soon


All versions of gpio with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package chickentikkamasala/gpio contains the following files

Loading the files please wait ....