katzefudder/laravel_statsd

v0.1.0 2017-08-19 11:38 UTC

This package is auto-updated.

Last update: 2024-10-25 06:44:21 UTC


README

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