treehousetim/lumen-middleware
Various middleware for lumen
229
| Install | |
|---|---|
composer require treehousetim/lumen-middleware |
|
| Latest Version: | v1.0.11 |
| PHP: | ^7.1 || ^8.0 |
| License: | MIT |
| Last Updated: | May 6, 2022 |
| Links: | GitHub · Packagist |
Maintainer: treehousetim
lumen-middleware
jsonStandardResponse
Provides a standard way of providing JSON formatted output no matter what the application sends
For all endpoints
Modify your app.php
$app->middleware([
treehousetim\lumen_middleware\jsonStandardResponse::class
]);
idUUID
Automatically validates uuid's in url parameters based on routes with the first parameter intended to be a UUID Only validates it is present and is a proper UUID.
Use in a controller's __construct method
class MyController extends Controller
{
public function __construct()
{
$this->middleware( 'ID_UUID',
['only'=>[
'get',
'update',
'destroy'
]]
);
}
...
}
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
651,963,193
9,701
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
435,097,283
607
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
407,699,310
4,663
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v1.0.11 | ^7.1 || | MIT | |
| v1.0.10 | ^7.1 || | MIT | |
| v1.0.9 | ^7.1 || | MIT | |
| v1.0.8 | ^7.1 || | MIT | |
| v1.0.7 | ^7.1 || | MIT | |
| v1.0.6 | ^7.1 || | MIT | |
| v1.0.5 | ^7.1 || | MIT | |
| v1.0.4 | ^7.1 || | MIT | |
| v1.0.3 | ^7.1 || | MIT | |
| v1.0.2 | ^7.1 || | MIT | |
| v1.0.1 | ^7.1 || | MIT | |
| v1.0.0 | ^7.1 || | MIT |