Download the PHP package michaelbiberich/turbolinks-location-middleware without Composer
On this page you can find all versions of the php package michaelbiberich/turbolinks-location-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download michaelbiberich/turbolinks-location-middleware
More information about michaelbiberich/turbolinks-location-middleware
Files in michaelbiberich/turbolinks-location-middleware
Package turbolinks-location-middleware
Short Description PSR-15 compliant implementation of MiddlewareInterface to insert Turbolinks-Location header into every response
License BSD-3-Clause
Informations about the package turbolinks-location-middleware
PSR-15 Turbolinks-Location Middleware (michaelbiberich/turbolinks-location-middleware)
PSR-15 compliant implementation of MiddlewareInterface to insert Turbolinks-Location header into every response
See the Turbolinks documentation on following redirects.
Inspired by code-orange/turbolinks-location.
Table of Contents
- Install
- Tests
- Usage
- Contributing
- License
Install
Add turbolinks-location-middleware as a dependency to your project with composer.
Tests
Tests can be run using PHPUnit, see phpunit.xml.dist.
Code Coverage can be reported as well, eg by using PHPDBG.
Composer scripts are available for both tasks.
A quick way to run these without installing composer can be achieved by using the official composer Docker Image.
Eg
docker run --rm --interactive --tty --volume $PWD:/app composer coverage
Usage
Create a new instance of TurbolinksLocationMiddleware
and Add it to your
dispatcher/route handler/pipe:
Contributing
Feel free to dive in! Open an issue or submit PRs.
License
BSD-3-Clause © Michael Biberich