Download the PHP package exposuresoftware/laravel-zway without Composer

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

LaravelWave Build Status

Provides a Laravel package to integrate with an existing Z-Way server.

Installation

Installation is performed via Composer.

Install Composer

See the Composer Getting Started documentation for how to install Composer on your platform.

Require LaravelWave in your project

The simplest way to do this is by running this command:

composer require exposuresoftware/laravel-zway

Alternatively, you may add the requirement directly by adding "exposuresoftware/laravel-zway": "^0.0.1" to your require section of composer.json.

Publish the package to your project

Run php artisan vendor:publish.

This will add laravelwave.php to your config directory.

Configure the package

The package is configurable via environment variables. To configure in this way add the following lines to your .env, changing the values to match your configuration:

You may also edit the laravelwave.php file in your config directory.

Note: It is not recommended to store your credentials in the configuration file if committed to a publicly accessible repository (like Github).

Usage

There are a number of methods of employing the SDK in your project. Each provides access to all the methods made accessible, a full list of which is available in this document.

All communication with the Z-Way server, except logging in, require authentication when accessed via this SDK at this time. Once you have successfully logged into the server once a token will be optionally stored for you. If you choose not to store the token it will only be available for the life of the current SDK instance.

Via provided Facade

Via Laravel container

Note that the SDK can be injected as a dependcy.

Via instantiation directly

Commands

Commands are provided to interact with the Z-Way API. These can also be scheduled via the Laravel task scheduling.

For full details of each command please see the help command of Artisan.

Signature Description
zway:fetch-devices Retrieve devices via the API.

Available Methods

Parameters listed are examples and those in italics are optional.

Method Returns Description
hasToken() bool Returns true or false depending on if the current instance has a token.
login('admin', 'secret', true) bool Logs in with the given credentials. If none are provided the credentials from package configuration are used. The last parameter represents whether or not to store the token.
listDevices(true) Illuminate\Support\Collection Returns a collection of all the devices known to the server. If passed false these will not be stored in the database.
update(device) ExposureSoftware\LaravelWave\Device Returns the Device with updated attributes to reflect current state.
command(device, command, parameters) bool Runs a command on the given device with the provided parameters. See the "Virtual Device Types" section of the documentation for commands supported per device*.

* Only switchBinary is supported in this version.

Events

Events are dispatched during different operations so that actions may be taken in response.

All events are in the ExposureSoftware\LaravelWave\Events namespace.

Event Cause Available Properties
CommandSent Set after a command has been sent to the Z-Way Server. string command,
ExposureSoftware\LaravelWave\Models\Device device,
bool successful,
array parameters

Sponsorship

If you would like to provide funding for this project please use any of the methods listed below.

Tidelift

Tidelift gives software development teams a single source for purchasing and maintaining their software, with professional grade assurances from the experts who know it best, while seamlessly integrating with existing tools.

Security Vulnerabilities

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.


All versions of laravel-zway with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.3
guzzlehttp/guzzle Version ^6.3
doctrine/dbal Version ^2.9
ext-json Version *
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 exposuresoftware/laravel-zway contains the following files

Loading the files please wait ....