2017 © Pedro Peláez
 

library laravel-version

image

mrcrankhank/laravel-version

  • Sunday, July 1, 2018
  • by MrCrankHank
  • Repository
  • 1 Watchers
  • 0 Stars
  • 118 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 37 % Grown

The README.md

Laravel-Version

This simple package reads a version.json (or whatever is configured) from your base_path() and gives you a version object, which you can utilize in your view., (*1)

 <p class="text-center">Laravel  @unless($version->isEmpty()) (Version: {{ $version->branch }}-{{ $version->build }}-{{ $version->hash }}) @endif</p>

No errors are thrown if the key doesn't exist or the json file is missing or invalid., (*2)

Installation

composer require mrcrankhank/laravel-update, (*3)

If you run Laravel <= 5.4, add the service provider to the 'providers' array in config/app.php:, (*4)

MrCrankHank\LaravelVersion\VersionServiceProvider, (*5)

Publish config file (only necessary if you don't want to use the default filename 'version.json'), (*6)

php artisan vendor:publish, (*7)

Compatibility

This package was developed in Laravel 5.5, but should work in other versions as well., (*8)

License

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

The Versions

01/07 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Avatar MrCrankHank

01/07 2018

1.1

1.1.0.0

  Sources   Download

MIT

The Requires

 

by Avatar MrCrankHank

18/03 2018

1.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

by Avatar MrCrankHank