PHP code example of perftools / xhgui-collector

1. Go to this page and download the library: Download perftools/xhgui-collector library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

perftools / xhgui-collector example snippets



st of script.
apache
<VirtualHost *:80>
  php_admin_value auto_prepend_file "/Users/markstory/Sites/xhgui/external/header.php"
  DocumentRoot "/Users/markstory/Sites/awesome-thing/app/webroot/"
  ServerName site.localhost
</VirtualHost>
nginx
server {
  listen 80;
  server_name site.localhost;
  root /Users/markstory/Sites/awesome-thing/app/webroot/;
  fastcgi_param PHP_VALUE "auto_prepend_file=/Users/markstory/Sites/xhgui/external/header.php";
}
bash
php -d auto_prepend_file=/path/to/xhgui/external/header.php do_work.php

define('XHGUI_CONFIG_DIR', PATH_TO_OWN_CONFIG);