PHP code example of light / xhgui

1. Go to this page and download the library: Download light/xhgui 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/ */

    

light / xhgui example snippets


server {
    listen 80;
    server_name www.php-xhgui.dev php-xhgui.dev;
    root /server/wwwroot/xhprof/webroot;
    index index.php index.html;
    location / {
        try_files $uri $uri/ /index.php?$args;
    }
    location ~ \.php$ {
        try_files $uri = 404;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;