{"id":16099217,"url":"https://github.com/knoxzin1/aura-filter-middleware","last_synced_at":"2025-04-05T22:44:32.664Z","repository":{"id":57007826,"uuid":"122696352","full_name":"knoxzin1/aura-filter-middleware","owner":"knoxzin1","description":"Middleware to filter zend-expressive requests using Aura.Filter","archived":false,"fork":false,"pushed_at":"2018-02-24T03:13:03.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T05:13:22.681Z","etag":null,"topics":["auraphp","filter","middleware","php","psr-15","psr-7","zend-expressive"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knoxzin1.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-24T02:47:52.000Z","updated_at":"2018-02-26T18:26:41.000Z","dependencies_parsed_at":"2022-08-21T14:31:28.698Z","dependency_job_id":null,"html_url":"https://github.com/knoxzin1/aura-filter-middleware","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxzin1%2Faura-filter-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxzin1%2Faura-filter-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxzin1%2Faura-filter-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knoxzin1%2Faura-filter-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knoxzin1","download_url":"https://codeload.github.com/knoxzin1/aura-filter-middleware/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411193,"owners_count":20934650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auraphp","filter","middleware","php","psr-15","psr-7","zend-expressive"],"created_at":"2024-10-09T18:26:21.762Z","updated_at":"2025-04-05T22:44:32.647Z","avatar_url":"https://github.com/knoxzin1.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aura Filter Middleware\n\n[![Build Status](https://secure.travis-ci.org/knoxzin1/aura-filter-middleware.svg?branch=master)](https://secure.travis-ci.org/knoxzin1/aura-filter-middleware)\n[![Coverage Status](https://coveralls.io/repos/github/knoxzin1/aura-filter-middleware/badge.svg?branch=master)](https://coveralls.io/github/knoxzin1/aura-filter-middleware?branch=master)\n\nMiddleware to filter [Zend Expressive](https://github.com/zendframework/zend-expressive) requests using [Aura.Filter](https://github.com/auraphp/Aura.Filter).\n\n## Requirements\n\n* PHP \u003e= 7.1\n\n## Installation\n\nThis package is installable and autoloadable via Composer as [knoxzin1/aura-filter-middleware](https://packagist.org/packages/knoxzin1/aura-filter-middleware).\n\n```sh\ncomposer require knoxzin1/aura-filter-middleware\n```\n## Example\n\nAdd the middleware to your pipeline\n\n```php\n$app-\u003epipe(AuraFilterMiddleware::class);\n```\n\nPass the desired filter to the router options\n\n```php\n[\n    'name' =\u003e 'foo',\n    'path' =\u003e '/fooo',\n    'middleware' =\u003e FooMiddleware::class,\n    'allowed_methods' =\u003e ['POST'],\n    'options' =\u003e [\n        'aura-filter' =\u003e FooFilter::class,\n    ],\n],\n```\n\nThe resulting object will be avaiable with the `validationResult` attribute name.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknoxzin1%2Faura-filter-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknoxzin1%2Faura-filter-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknoxzin1%2Faura-filter-middleware/lists"}