katzefudder / laravel_statsd by katzefudder

Send data to statsd
17
0
2
Package Data
Maintainer Username: katzefudder
Maintainer Contact: flo@katzefudder.de (Florian Dehn)
Package Create Date: 2017-08-18
Package Last Update: 2017-08-19
Language: PHP
License: MIT
Last Refreshed: 2024-12-23 03:07:42
Package Statistics
Total Downloads: 17
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Send data to statsd

Software License Build Status

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');