chocofamilyme/laravel-pinba

Integrates pinba with Laravel

4.0.0 2023-03-07 07:30 UTC

README

Laravel pinba middleware and timers integraion

Description

Integrates pinba with Laravel

Installation

composer require chocofamilyme/laravel-pinba

Publishing the configuration (optional)

php artisan vendor:publish --provider="Chocofamilyme\LaravelPinba\Providers\PinbaServiceProvider"

Configuration

Pinba

Pinba configuration file is located under config/pinba.php

Usage

There is a Facade for the libary called "Pinba"

Start the timer

$timerId = Pinba::startTimer(string $group, string $type, string $method, string $category);

Stop the timer

Pinba::stopTimer($timerId)

Stop all timers

Pinba::stopAllTimers();

More methods

Just see the class "Chocofamilyme\LaravelPinba\Profiler\PinbaDestination"

Destinations

Pinba

This library sends the data to the pinba server

File

This library sends the data to log file

Null

The data is not beeing sent