dnyg / flexfone-php-client
A client for the Flexfone API
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/dnyg/flexfone-php-client
Requires
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- phpunit/phpunit: ^7.1
This package is not auto-updated.
Last update: 2025-10-18 01:24:13 UTC
README
This is a library for using the Flexfone API.
Installation
This package can be installed using composer
composer require dnyg/flexfone-php-client
PHP 7.1 or greater is required.
Usage
To use the client just pass your credentials into the constructor of the Flexfone\ApiClient()
Examples
Getting an employee by localNumber (200)
$client = new Flexfone\ApiClient($pbxId, $key);
$employee = $client->getEmployee(200);
Retrieving all employees
$client = new Flexfone\ApiClient($pbxId, $key);
$employee = $client->getEmployees();
Tests
To run the tests, rename the tests\config.example.php
to tests\config.php
and fill it out.