Download the PHP package scy/fhz without Composer

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

scy/fhz

This is a PHP package to access the FHZ 1000 family of SRD860 transceivers and parse messages from sensors.

At least that's what it currently does. The features are limited to what the author currently needs:

Installation

composer require scy/fhz should be sufficient. In case you want to try the example script, make sure you install the development dependencies. Recent versions of Composer do that automatically, older ones need the --dev switch.

Usage

Create a new Connection, passing the path to the serial device your FHZ is connected to as a parameter. You can optionally supply a PSR-3 logger as the second parameter.

Calling read($seconds) on the resulting object will listen for incoming transmissions and return the first incoming message. If no messages arrived after $seconds (a float), the method will return false. Messages that arrive while your read() is not running will be buffered by your operating system's IO buffer and returned one by one when you call read() the next time. (That buffer is limited, so don't get too crazy.)

The message is returned as a a Message object or a subclass of it.

Currently, only one subclass is implemented: TemperatureMessage. It represents a single reading of a HMS100T (temperature) or HMS100TF (temperature/humidity) sensor. Use methods like getTemperature() to access the data.

You can also have a look at some example code, which probably explains it better.

Status

I'm currently integrating this library into a management and logging interface for my van. The API isn't stable, but shouldn't change too much either.

Documentation, error handling and code structure could use some improvements.

Meta

This library is free software released under the terms of the MIT license. It is written and maintained by Tim Weber and its source code is hosted at https://github.com/scy/php-fhz.


All versions of fhz with dependencies

PHP Build Version
Package Version
Requires psr/log Version ^1.0
php Version ^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 scy/fhz contains the following files

Loading the files please wait ....