2017 © Pedro Peláez
 

library version-master

A git based versioning tool for PHP projects with Laravel Service Providers

image

rtablada/version-master

A git based versioning tool for PHP projects with Laravel Service Providers

  • Wednesday, October 7, 2015
  • by rtablada
  • Repository
  • 1 Watchers
  • 0 Stars
  • 132 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 74 % Grown

The README.md

version-master

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

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., (*2)

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., (*3)

Install

Via Composer, (*4)

``` bash $ composer require rtablada/version-master, (*5)


## Usage The basic class for this package is the `GitHashReader`. It requires two arguments: * `required` - An instance of `Illuminate\Filesystem` - Used to read from the Git File Tree * `required` - 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`) ``` php $reader = new Rtablada\VersionMaster\GitHashReader(); echo $reader->getFullVersion(); // Outputs latest hash on git HEAD

Laravel Usage

This package also includes a Service Provider to allow use in Laravel Applications., (*6)

This Service Provider acts in two ways:, (*7)

  • 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., (*8)

Change log

Please see CHANGELOG for more information what has changed recently., (*9)

Testing

bash $ composer test, (*10)

Contributing

Please see CONTRIBUTING for details., (*11)

Security

If you discover any security related issues, please email ryan.tablada@gmail.com instead of using the issue tracker., (*12)

Credits

License

The MIT License (MIT). Please see License File for more information., (*13)

The Versions

07/10 2015

dev-master

9999999-dev https://github.com/thephprtablada/version-master

A git based versioning tool for PHP projects with Laravel Service Providers

  Sources   Download

MIT

The Requires

 

The Development Requires

rtablada version-master

04/10 2015

v1.1.0

1.1.0.0 https://github.com/thephprtablada/version-master

A git based versioning tool for PHP projects with Laravel Service Providers

  Sources   Download

MIT

The Requires

 

The Development Requires

rtablada version-master

04/10 2015

v1.0.0

1.0.0.0 https://github.com/thephprtablada/version-master

A git based versioning tool for PHP projects with Laravel Service Providers

  Sources   Download

MIT

The Requires

 

The Development Requires

rtablada version-master