2017 © Pedro Peláez
 

library forp

Wrapper for forp PHP profiler extension.

image

aterrien/forp

Wrapper for forp PHP profiler extension.

  • Thursday, November 14, 2013
  • by aterrien
  • Repository
  • 1 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

forp-php

Scrutinizer Quality Score, (*1)

forp-php is a composer package that "simplifies" usage of forp PHP profiler on your application., (*2)

What it does : * it starts forp PHP profiler. * it registers the forp output callback on shutdown of the PHP script. * it selects the most appropriate response to the client., (*3)

Dependencies

Server-side : * forp-PHP-profiler : must be installed on your server, (*4)

Client-side : * forp-chrome : Chrome client for Chrome users, (*5)

OR, (*6)

  • forp-ui : forp.min.js must be put on your own CDN

API = start($opts)

With $opts :, (*7)

``` php array( 'no_internals' => 1, // enable/disable collect of PHP internals 'ui_src' => '', // URL of forp-ui forp.min.js on your CDN @link https://github.com/aterrien/forp-ui/ 'flags' => self::FLAG_ALL, // forp flags @link https://github.com/aterrien/forp-PHP-profiler/#forp_start-flags ), (*8)


Example : ``` php // if($theCurrentRequestCanProfileTheCurrentScript) { $Forp = new Forp\Forp(array( 'ui_src' => '<your forp-ui cdn>', )); $Forp->start(); // }

It can be done in an auto-prepend-file., (*9)

Install

Just add this package to the requires of your project (composer.json):, (*10)

json { "require":{ "aterrien/forp": "dev-master" } }, (*11)

Don't forget to run the install command., (*12)

The Versions

14/11 2013

dev-master

9999999-dev http://forp.io

Wrapper for forp PHP profiler extension.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

debug memory profiler tool cpu devtool forp