Download the PHP package 68publishers/tracy-git-version without Composer
On this page you can find all versions of the php package 68publishers/tracy-git-version. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 68publishers/tracy-git-version
More information about 68publishers/tracy-git-version
Files in 68publishers/tracy-git-version
Package tracy-git-version
Short Description Git version panel for Tracy.
License MIT
Informations about the package tracy-git-version
Tracy Git version Simple and extensible panel for [Tracy](https://github.com/nette/tracy) that shows information from Git.
Table of contents
- Installation
- Basic integration
- Solution for application builds without Git
- Advanced guide
- Contributing
- License
Installation
The best way to install 68publishers/tracy-git-version
is using Composer:
Basic integration
Standalone Tracy integration
The simplest way how to register the panel into Tracy is by creating a default instance and providing it directly into a Bar.
Integration into Nette Framework
Basic integration into Nette is really simple. Just register an extension.
And everything works 😉
Solution for application builds without Git
Often when we deploy an application to a production environment, neither Git nor the .git
directory is available due to trying to have a build as small as possible.
However, at this moment we have no source of information about the current version. The solution is to export a file that contains all important information at the time when the Git is still accessible.
Setup for standalone Tracy
You must create repositories and the panel manually but there is not much work to do.
Setup for Nette Framework
The setup for Nette is more simple. Just add another extension into your neon configuration.
The default name for the exported file is %tempDir%/git-version/repository.json
but you can change it.
Creating the export file
The export file should be created by executing a script that is located in the composer's bin
directory.
The script is independent of the application so you must provide the filename of the exported file as an option.
Advanced guide
If you want to read more about repositories, how to extend them or how to add custom data into the panel, please see the Advanced guide.
Contributing
Before opening a pull request, please check your changes using the following commands
License
The package is distributed under the MIT License. See LICENSE for more information.