milo / vendor-versions
Bar with versions list of vendor libraries for Tracy
Installs: 134 375
Dependents: 4
Suggesters: 0
Security: 0
Stars: 18
Watchers: 5
Forks: 3
Open Issues: 0
Requires
- php: >=5.4.0
- tracy/tracy: ^2.3.0
Suggests
- nette/di: For automatic panel loading
This package is auto-updated.
Last update: 2024-11-04 22:48:59 UTC
README
Vendor Versions is a bar panel for Tracy debugger. It loads composer.json
and composer.lock
files and shows you versions of all currently installed libraries.
Installation
Use Composer and require milo/vendor-versions
package.
With the Nette DI Container
Register panel in config.neon
:
extensions: vendorVersions: Milo\VendorVersions\Bridges\Nette\DI\Extension(%debugMode%) # Optionally set path to composer.json file vendorVersions: path: 'path/to/composer.json' # When you use panel multiple times, you may wish to adjust some visual properties vendorVersions: panelTitle: 'For deployment' iconColor: 'green'
Manual panel registration
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');