PHP code example of knoxzin1 / aura-filter-middleware

1. Go to this page and download the library: Download knoxzin1/aura-filter-middleware 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/ */

    

knoxzin1 / aura-filter-middleware example snippets


$app->pipe(AuraFilterMiddleware::class);

[
    'name' => 'foo',
    'path' => '/fooo',
    'middleware' => FooMiddleware::class,
    'allowed_methods' => ['POST'],
    'options' => [
        'aura-filter' => FooFilter::class,
    ],
],