Skip to content

Installation

Plain PHP

Install with Composer:

bash
composer require tes/biotime-sdk

This pulls in guzzlehttp/guzzle and psr/simple-cache as declared dependencies. No further setup is required to start calling the SDK — you only need configuration values (device IP, port, username, password).

Laravel

The package registers BioTime\Laravel\BioTimeServiceProvider through Composer's extra.laravel.providers, so Laravel's package auto-discovery picks it up automatically. Running:

bash
composer require tes/biotime-sdk

inside a Laravel application is enough — BioTime::class is bound into the container as a singleton with no manual registration. See Laravel installation for details, including publishing the config file.

What happens after installation

Nothing connects to your device yet. The BioTime class and Config are only resolved lazily — a device request is made the first time you call a resource method such as employees()->all(). Before that happens, continue to Configuration to tell the SDK how to reach your device.

Distributed under the MIT License.