PHP code example of wtf / middleware-filters
1. Go to this page and download the library: Download wtf/middleware-filters library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wtf / middleware-filters example snippets
$container['middleware_filters'] = function ($c) {
return new \Wtf\Middleware\Filters($c);
};
//...
'middlewares' => [
//...
'middleware_filters',
//...
],
[
'name[~]' => 'Nich',
'LIMIT' => [20,20],
];
$collection = $this->entity('employee')->loadAll($this->container['filters']);