Download the PHP package rtablada/version-master without Composer
On this page you can find all versions of the php package rtablada/version-master. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rtablada/version-master
More information about rtablada/version-master
Files in rtablada/version-master
Package version-master
Short Description A git based versioning tool for PHP projects with Laravel Service Providers
License MIT
Homepage https://github.com/thephprtablada/version-master
Informations about the package version-master
version-master
Version Master is a git based versioning tool for PHP projects with Laravel Service Providers.
This package uses the .git
storage file to read the current hash for the specified project or folder.
Since, the GitHashReader
uses file access, it does not need to have access to the git
command or exec
privileges which may not be available in production environments.
Install
Via Composer
Usage
The basic class for this package is the GitHashReader
.
It requires two arguments:
required
- An instance ofIlluminate\Filesystem
- Used to read from the Git File Treerequired
- A string path for the root of the git project.optional
- A string path for the name of the git storage folder (defaults to.git
)
Laravel Usage
This package also includes a Service Provider to allow use in Laravel Applications.
This Service Provider acts in two ways:
- Registers a singleton so that
Rtablada\VersionMaster\GitHashReader
can be injected. - Registers a
@version()
helper in Blade to output the short version number.
To install this Service Provider just add Rtablada\VersionMaster\GitVersionProvider::class
in your providers
array in config/app.php
.
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.