PHP implementation of Event Fabric API to send events.
The library depends on the `http://php.net/curl`_ cURL is a library that lets you make HTTP requests in PHP, install it:
curl -sS https://getcomposer.org/installer | php -- --install-dir=bin composer.phar install
see the examples folder for more usage examples
use \EventFabric\Client; use \EventFabric\Event; $ef_client = new Client("your_username", "your_password"); $loginResult = $ef_client->login(); $eventResult = $ef_client->send_event(new Event( array( 'text' => 'CPU', 'percentage' => 80 ), "your_channel")); $this->assertTrue($eventResult['ok']);
phpunit
MIT