Download the PHP package district5/minimum-version without Composer
On this page you can find all versions of the php package district5/minimum-version. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download district5/minimum-version
More information about district5/minimum-version
Files in district5/minimum-version
Download district5/minimum-version
More information about district5/minimum-version
Files in district5/minimum-version
Vendor district5
Package minimum-version
Short Description A minimum version enforcement library, with adapters in place for the Slim Framework 4 and PSR-7 libraries.
License mit
Homepage https://github.com/district-5/minimum-version
Package minimum-version
Short Description A minimum version enforcement library, with adapters in place for the Slim Framework 4 and PSR-7 libraries.
License mit
Homepage https://github.com/district-5/minimum-version
Please rate this library. Is it a good library?
Informations about the package minimum-version
Minimum version enforcement for API services...
Slim Framework 4 usage
See the official Slim Framework 4 middleware documentation for more information.
When using the Slim Framework 4, you can use the Slim4Middleware
class to enforce a minimum version for your API.
If a request is made with a version lower than the minimum version, a native Slim HttpException, of code 406
will be
thrown. A 406
means "Not Acceptable", which is the correct response code for this situation.
There are two methods of constructing the middleware:
Option 1, using static values
Option 2, using environment variables
Install with composer...
Testing...
All versions of minimum-version with dependencies
PHP Build Version
Package Version
The package district5/minimum-version contains the following files
Loading the files please wait ....