Download the PHP package danjohnson95/pinout without Composer

On this page you can find all versions of the php package danjohnson95/pinout. 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 pinout

Pinout

Connect your Laravel application to the physical world with Pinout, where code meets circuitry. Hardware and web, seamlessly united 🤝

Features

With a Laravel application running on supported hardware, you can:

These basic features open up a world of possibilities, from simple LED control to complex robotics.

And with the included drivers, you can also:

Hardware support

At the moment, Pinout supports the following hardware:

Model Supported
Raspberry Pi Model A
Raspberry Pi Model B
Raspberry Pi Model B+
Raspberry Pi Model 2
Raspberry Pi 3 Model B
Raspberry Pi 3 Model B+
Raspberry Pi 3 Model A+
Raspberry Pi 4 Model B
Raspberry Pi 400
Raspberry Pi 5
Raspberry Pi Zero
Raspberry Pi Zero v1.3
Raspberry Pi Zero W
Raspberry Pi Zero WH
Raspberry Pi Zero 2 W

Getting started

Install the package to an existing Laravel project:

If you're using Laravel 11 or later, the package will be auto-discovered. If you're using an earlier version, you'll need to add the service provider to your config/app.php file:

Usage

PinService facade

This package allows you to interact with hardware using the PinService facade, and also comes with a couple of Artisan commands for convenience.

Use the pin method to get a Pin instance for a specific pin:

The argument is a reference to the GPIO pin number. (The BCM pin number is used, not the physical pin number.) See pinout.xyz for a visual reference.

The Pin instance has methods for interacting with the pin:

The facade also has a pins method for pulling multiple pins at once:

This will return a PinCollection instance, which is a collection of Pin instances.

The PinCollection comes with some handy methods too:

Artisan commands

This package comes with a couple of Artisan commands for convenience:

This will return the current state of the pin.

This will turn pin 13 on.

This will turn pin 13 off.

Roadmap


All versions of pinout with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^10.10.0|^11.0|^12.0
illuminate/console Version ^10.10.0|^11.0|^12.0
symfony/process Version ^6.4|^7.0
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 danjohnson95/pinout contains the following files

Loading the files please wait ....