xtratio / onlinepbx-api
onlinepbx.ru http api clinet
Installs: 2 702
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
pkg:composer/xtratio/onlinepbx-api
This package is not auto-updated.
Last update: 2025-11-02 15:20:13 UTC
README
Http api documentation onlinepbx.ru
Install
Manual
Download zip archive and require Autoloader.php
require_once 'lib/Autoloader.php';
Composer (guide)
Add require item to your project composer.json:
"xtratio/onlinepbx-api": "~1.0"
or command line:
composer require xtratio/onlinepbx-api
Use
// Create new client object $api = new xtratio\Onpbx\ApiClient( "yourdomain.onpbx.ru", "api key" ); // Get call history $from = (new DateTime())->modify("-1 day")->format("r"); $to = (new DateTime())->format("r"); $result = $api->callHistory(array("date_from"=>$from,"date_to"=>$to));