Skip to content

chocofamilyme/laravel-pinba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-pinba

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