PHP code example of milo / vendor-versions
1. Go to this page and download the library: Download milo/vendor-versions 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/ */
milo / vendor-versions example snippets
Tracy\Debugger::getBar()->addPanel(
new Milo\VendorVersions\Panel
);
# Optionally set path to composer.json file
Tracy\Debugger::getBar()->addPanel(
new Milo\VendorVersions\Panel(__DIR__ . '/some/dir')
);
# When you use panel multiple times, you may wish to adjust some visual properties
Tracy\Debugger::getBar()->addPanel(
$panel = new Milo\VendorVersions\Panel(__DIR__ . '/some/dir')
);
$panel->setPanelTitle('For deployment');
$panel->setIconColor('green');