Download the PHP package dept-of-scrapyard-robotics/ahtx0 without Composer

On this page you can find all versions of the php package dept-of-scrapyard-robotics/ahtx0. 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 ahtx0

Introduction

PHP Package for the AHTx0 family of temperature and relative humidity sensors.

Contains implementations for:

Compatible I2C Interfaces

The AHTx0 family communicates with your device over I2C, the InterIntegrated Circuit Protocol.

You can interface with an AHTx0 with this package the following ways:

Dependencies

This package makes use of modules within:

This package also requires one of the following extensions in order to interface with I2C

In addition, an extension wrapper package is needed

For ext-posi

For ext-ftdi

Installing from Composer

Inside the root of your PHP Project, simply require the AHTx0 package from composer

Framework Configuration

If you would like to use the ScrapyardIO Framework to bootstrap your sensor without wasting lines configuring your sensor right in the script you can add your desired configuration to scrapyard-io.php, such as in this example:

The keys you choose to represent the integrated circuit's definition are up to you.

To bootstrap quickly using a ScrapyardIO RelativeHumiditySensor object you can start with the following:

Basic Usage

To use the sensor directly without the framework simply do the following:

USB (MPSSE) driver using I2C. (Linux and MacOS)

Advanced Usage

You can select the sensor model class based on the board you wired while keeping the same I2C bootstrap pattern:

All three implementations expose the same core readings:

Injected into the Framework

To inject into the framework, that is, bootstrap the device directly then pass it off to a framework sensor object simply do the following:

Calibration

To calibrate the sensor output in your application layer, you can use a trusted reference sensor:

Refer to this simulated example

Sensor API

The getters and property access in this API interface with the device directly (measurement trigger + read), so you can use simple property access while still working against the chip itself.

Readable Properties (Getters)

Writable Properties (Setters)

There are no writable magic properties exposed for AHTx0 sensors in this package.


All versions of ahtx0 with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
scrapyard-io/waveforms Version ^0.4.0
scrapyard-io/reality-interface Version ^0.4.0
scrapyard-io/bare-metal Version ^0.4.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 dept-of-scrapyard-robotics/ahtx0 contains the following files

Loading the files please wait ...