PHP code example of pilotcz / lazy-tracy

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

    

pilotcz / lazy-tracy example snippets


use PilotCz\LazyTracy\Panel;

class CustomTracyPanel extends Panel
{
    /**
     * Tracy constructor.
     * @param LinkGenerator $linkGenerator
     * @throws InvalidLinkException
     */
    public function __construct(LinkGenerator $linkGenerator)
    {
        $url = $linkGenerator->link('System:gitPanel');
        
        $this->setUid(self::class);
        $this->setUrl($url);
        $this->setTabText('Tab Text Here');
        $this->setTabIcon('<svg>....</svg>');
    }
}