Download the PHP package tomschlick/request-migrations without Composer
On this page you can find all versions of the php package tomschlick/request-migrations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tomschlick/request-migrations
More information about tomschlick/request-migrations
Files in tomschlick/request-migrations
Package request-migrations
Short Description HTTP Request Migrations
License MIT
Homepage https://github.com/tomschlick/request-migrations
Informations about the package request-migrations
HTTP Request Migrations
This package is based on the API versioning scheme used at Stripe. Users pass a version header and you automatically migrate the request & response data to match the current version of your code.
Installation
You can install the package via composer:
Installation via Composer
Service Provider & Facade
This package supports Laravel 5.5 autoloading so the service provider and facade will be loaded automatically.
If you are using an earlier version of Laravel or have autoloading disabled you need to add the service provider and facade to config/app.php
.
Middleware
Add the middleware to your Http Kernel app/Http/Kernel.php
.
Configuration
Run the following Artisan command to publish the package configuration to config/request-migrations.php
.
Usage
Creating a Migration
You can generate a new request migration using the Artisan CLI.
The command will generate a request migration and publish it to App/Http/Migrations/*
.
It will generate a migration, you can modify it like this:
Override the Versions
This can be useful if you are pinning the version to a user.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
All versions of request-migrations with dependencies
illuminate/config Version ^5.5
illuminate/contracts Version ^5.5
illuminate/events Version ^5.5
illuminate/http Version ^5.5
illuminate/support Version ^5.5