Download the PHP package sandstorm/plumber without Composer

On this page you can find all versions of the php package sandstorm/plumber. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package plumber

Plumber - Profiling Neos Flow

-- Measuring the flow of your application --

Plumber is a profiling and tracing GUI with the following features:

It relies on PhpProfiler for gathering the needed information.

Installation

Warning: Do not install Plumber on production websites. If you do, make sure to disallow access to the profiler URLs.

To install, just use composer:

The system will automatically install PhpProfiler and use XHProf if it is installed.

Installing XHProf / Tideways on mac

XHProf is not supported anymore, but the Tideways data format is still 100% compatible - and the Tideways PHP Extension is still 100% open source

Configuration

Some settings are available in Plumber and PhpProfiler as well as the TYPO3 CMS extension, none of which are needed for basic operation. Feel free to investigate them if you feel like it.

Usage

Just use your web application as normal. To browse profiling reports, go to http://yourhost/profiler/.

For each run, the profiler collects the following data:

Overview Page

Overview

The overview page is the main entry point to the profiler. It shows the different profiling runs. For each profiling run, it can display overview information like the number of created objects or the memory consumption. Each of the columns of the table is called a dimension.

On top, the bar charts show how the values in a given dimension are distributed, and allow you to filter the different dimensions to the wanted values.

You can easily create your own dimensions; how to do that is explained later.

Timeline Page

The timeline page gives a visual overview of a request, showing the timers of the request, and how memory consumption changed.

Timeline

XHProf Page

You can also drill down to the XHProf page, showing the detailed statistics of the run.

Configuring Custom Dimensions

The available dimensions are configured inside the Settings.yaml and that's also how you can add new dimensions.

Let's check how the default dimensions work:

It defines three dimensions, and gives each of them a label. Each dimension has a type which specifies how the data inside this dimension is aggregated.

We support the following types:

maxMemory

Parameters: None

Output the maximum memory which has been used in kilobytes.

totalRuntime

Parameters: timerName

This one sums up the total runtime in milliseconds of a timer specified by timerName.

regexSum

Parameters: regex

This is the most versatile counter. It needs XHProf to be installed, else it does not work.

It counts the number of method invocations in an XHProf trace. To know how the regex parameter works, we need to check how an XHProf trace is built:

An XHProf trace is a big array with elements like the following:

This means: "From inside the method startTime in ProfilingRun the function microtime has been called 10 times. All these calls to microtime together needed 9 milliseconds."

I'm currently not sure about the time scale, whether it's micro- or milliseconds...

Now, the regexSum loops over such a trace, and if the regex matches the array key, it counts the number of calls together.

As an example, let's demonstrate that with some regexes:

Furthermore, the regex might contain exactly one submatch pattern. In this case, a popover is displayed with the top 10 invocations grouped by the regex. Example:

regex

Paramters:

Your custom type

Custom types are currently not possible.

The calculation happens inside Sandstorm\Plumber\Service\CalculationService, if you want to extend it. Make sure to submit a pull request then :-).

Profiling Custom Code

The PhpProfiler documentation has instructions on how to profile custom code.

Credits

Developed by Sebastian Kurfürst, Sandstorm Media GmbH. Pull requests by various authors.

License

All the code is licensed under the GPL license.


All versions of plumber with dependencies

PHP Build Version
Package Version
Requires neos/flow Version *
sandstorm/phpprofiler Version dev-master
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sandstorm/plumber contains the following files

Loading the files please wait ....