egeniq / laravel-versionheader
A Laravel package that adds a HTTP header with version info.
Installs: 7 204
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- illuminate/http: ^5.1
- illuminate/support: ^5.1
Requires (Dev)
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2024-11-25 07:40:48 UTC
README
This package introduces simple HTTP middleware that adds a release or build version to the response headers.
It works with both the Laravel and Lumen frameworks starting version 5.1.
Getting started
Require the package via composer:
composer require egeniq/laravel-versionheader
For Lumen
Copy the config file to your config directory:
cp vendor/egeniq/laravel-versionheader/config/versionheader.php ./config/versionheader.php
And customize the configuration values if necessary.
After that, enable the middleware and register the service provider in your bootstrap/app.php
.
$app->middleware([
\Egeniq\Laravel\VersionHeader\Http\Middleware\VersionHeader::class,
]);
$app->register(\Egeniq\Laravel\VersionHeader\VersionHeaderServiceProvider::class);
For Laravel
Documentation to be done.