Download the PHP package eleme/statsd without Composer
On this page you can find all versions of the php package eleme/statsd. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package statsd
Short Description A simple library for working with StatsD in PHP. Base on league/statsd
License MIT
Homepage https://github.com/No5stranger/statsd
Informations about the package statsd
StatsD PHP Library
A library for working with StatsD in PHP.
Install
Via Composer
To use the Statsd Service Provider, you must register the provider when bootstrapping your Laravel application.
Find the providers
key in your app/config/app.php
and register the Statsd Service Provider.
Find the aliases
key in your app/config/app.php
and add the Statsd Facade Alias.
For Laravel 5:
Find the providers
key in your config/app.php
and register the Statsd Service Provider.
Find the aliases
key in your app/config/app.php
and add the Statsd Facade Alias.
Usage
Configuring
OR
The StatsD client wait for ini_get('default_socket_timeout')
seconds when opening the socket by default. To reduce
this timeout, add 'timeout' => <float>
to your config.
The StatsD client will throw a ConnectionException
if it is unable to send data to the StatsD server. You may choose
to disable these exceptions and log a PHP warning instead if you wish. To do so, include the following in your config:
If omitted, this option defaults to true
.
Counters
Gauges
Sets
Timers
Timing Blocks
Testing
phpunit
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.