PHP code example of adt / tracy-system-info

1. Go to this page and download the library: Download adt/tracy-system-info 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/ */

    

adt / tracy-system-info example snippets


host('master.1')
	->set('instance', 1);

host('master.2')
	->set('instance', 2);

...

run("sudo de php www/index.php tracy-system-info:add Instance {{instance}}");
run("sudo de php www/index.php tracy-system-info:add MyKey MyValue");


run("sudo de php www/index.php tracy-system-info:add Commit $(git log --format=\"%H\" -n 1)");
run("sudo de php www/index.php tracy-system-info:add Branch $(git rev-parse --abbrev-ref HEAD)");
run("sudo de php www/index.php tracy-system-info:add Tag $(git describe --tags --always)");
run("sudo de php www/index.php tracy-system-info:add Message \"$(git log -1 --pretty=%B)\"");
run("sudo de php www/index.php tracy-system-info:add --timestamp");