katzefudder / laravel_statsd
Send data to statsd
v0.1.0
2017-08-19 11:38 UTC
Requires
- php: >=5.6
Requires (Dev)
- illuminate/support: 5.4.*
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~5.7
This package is auto-updated.
Last update: 2024-12-25 06:56:17 UTC
README
This Laravel 5 package provides a very easy to use solution to send data to statsd
Install
Simply with Composer
composer require katzefudder/laravel_statsd
Laravel config
Add StatsdServiceProvider
to providers' array
Add StatsdFacade
to alias' array
# config.php
'providers' => [
...
Katzefudder\Statsd\StatsdServiceProvider::class
...
];
'aliases' => [
...
'Statsd' => Katzefudder\Statsd\StatsdFacade::class
...
];
Usage
Use the facade to send data from Laravel context
StatsdFacade::send('metric.name', '1');