New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

egeniq/laravel-versionheader

A Laravel package that adds a HTTP header with version info.
7,204
Install
composer require egeniq/laravel-versionheader
Latest Version:1.0.0
Laravel:5
License:MIT
Last Updated:Dec 24, 2018
Links: GitHub  ·  Packagist
Maintainer: rtuin

Version header middleware for Laravel and Lumen

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.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

403,217,078 4,664

Version History

Version Released Laravel License
1.0.0 ^5.1 MIT