Download the PHP package wizofgoz/deprecation-laravel without Composer
On this page you can find all versions of the php package wizofgoz/deprecation-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wizofgoz/deprecation-laravel
More information about wizofgoz/deprecation-laravel
Files in wizofgoz/deprecation-laravel
Package deprecation-laravel
Short Description Allows for marking URLs as deprecated via HTTP response headers
License MIT
Homepage https://github.com/wizofgoz/deprecation-laravel
Informations about the package deprecation-laravel
Mark URLs as deprecated via HTTP response headers
This package can be installed in a Laravel application to mark API endpoints as deprecated according to the Deprecation HTTP Header Field draft.
Installation
You can install the package via composer:
Usage
Apply the middleware everywhere you want to be able to send deprecation headers, most likely the global middleware stack in the HTTP kernel.
During the course of the request life cycle, the resource that is being served can be marked as deprecated by using the facade, and the middleware will attach the appropriate headers to the response.
To convey that a resource will stop receiving requests in the future, they can be marked as sunsetted.
Events
Events are emitted when the middleware applies the Deprecation
and Sunset
headers. Simply, register listeners for either the DeprecatedResourceCalled
or SunsettedResourceCalled
events.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Wizofgoz
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of deprecation-laravel with dependencies
spatie/laravel-package-tools Version ^1.4.3
illuminate/contracts Version ^8.0