Download the PHP package pshentsoff/xhgui-collector without Composer

On this page you can find all versions of the php package pshentsoff/xhgui-collector. 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 xhgui-collector

Build Status Scrutinizer Code Quality

XHGUI Collector

This is a small standalone module which you can use to collect and store XHProf performance data for later usage in XHGUI.

Goals

XHGUI Compatibility

This project was originally forked from perftools/xhgui@133051f, which was after the tag 0.7.1.

This should ensure compatibility for most tags up to 0.7.1 (included).

The only change that would break compatibility would be a schema change on the XHGUI side.

This table represents current known information about compatibility between this project and XHGUI data schema.

XHGUI Collector version XHGUI Version Compatibility
1.0.0 - 1.x 0.2.0 - 0.9.0 presumed compatible - no schema changes

Usage

Profile an Application or Site

The simplest way to profile an application is to use external/header.php. external/header.php is designed to be combined with PHP's auto_prepend_file directive. You can enable auto_prepend_file system-wide through php.ini. Alternatively, you can enable auto_prepend_file per virtual host.

With apache this would look like:

With Nginx in fastcgi mode you could use:

Profile a CLI Script

The simplest way to profile a CLI is to use external/header.php. external/header.php is designed to be combined with PHP's auto_prepend_file directive. You can enable auto_prepend_file system-wide through php.ini. Alternatively, you can enable include the header.php at the top of your script:

You can alternatively use the -d flag when running php:

Use with environment variables

env description example default
XHGUI_MONGO_URI the host and port to the mongo db XHGUI_MONGO_URI=mongo:27017 127.0.0.1:27017
XHGUI_MONGO_DB the database name for the profiling data XHGUI_MONGO_DB=xhprof xhprof
XHGUI_PROFILING_RATIO the ratio of profiled requests XHGUI_PROFILING_RATIO=50 which profiles 50% of all requests XHGUI_PROFILING_RATIO=100
XHGUI_PROFILING if this env var is set with any value the profiling is enabled XHGUI_PROFILING=enabled it is not set per default, so no profiling will be triggered

System Requirements

For using the data collection classes you will need the following:

When in doubt, refer to XHGUI repository's composer.json or this repository's composer.json suggests section.


All versions of xhgui-collector with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
paragonie/random_compat Version >=2.0
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 pshentsoff/xhgui-collector contains the following files

Loading the files please wait ....