{"id":18794552,"url":"https://github.com/effectra/http-middleware","last_synced_at":"2025-12-29T18:30:15.950Z","repository":{"id":169380180,"uuid":"640222379","full_name":"effectra/http-middleware","owner":"effectra","description":"Generate and use HTTP Middlewares classes implements with Psr","archived":false,"fork":false,"pushed_at":"2023-06-19T18:31:41.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-12-29T16:34:03.840Z","etag":null,"topics":["generate-class","generated-code","http","middleware","php","psr-15"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/effectra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-13T11:35:47.000Z","updated_at":"2023-05-14T19:41:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"f882bffe-1ef5-4343-ac9b-e787f75cf07e","html_url":"https://github.com/effectra/http-middleware","commit_stats":null,"previous_names":["effectra/http-middleware"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fhttp-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fhttp-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fhttp-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fhttp-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/effectra","download_url":"https://codeload.github.com/effectra/http-middleware/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239718694,"owners_count":19685795,"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":["generate-class","generated-code","http","middleware","php","psr-15"],"created_at":"2024-11-07T21:29:45.311Z","updated_at":"2025-12-29T18:30:15.887Z","avatar_url":"https://github.com/effectra.png","language":"PHP","readme":"# Effectra Middleware\n\nThe `effectra/http-server-middleware` library provides middleware classes for handling HTTP requests and responses in server applications.\n\n## Installation\n\nInstall the library using Composer:\n\n```bash\ncomposer require effectra/http-middleware\n```\n\n## Usage\n\n### Middleware Class\n\nThe `Effectra\\Http\\Server\\Middleware` class is a base middleware class that implements the `MiddlewareInterface`. It provides a `process` method for processing the server request and returning the response.\n\n```php\nuse Effectra\\Http\\Server\\Middleware;\nuse Psr\\Http\\Message\\ResponseInterface;\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Psr\\Http\\Server\\MiddlewareInterface;\nuse Psr\\Http\\Server\\RequestHandlerInterface;\n\nclass MyMiddleware extends Middleware implements MiddlewareInterface\n{\n    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n    {\n        // Perform middleware logic here\n\n        $response = $handler-\u003ehandle($request);\n\n        // Perform additional middleware logic here\n\n        return $response;\n    }\n}\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit bug reports, feature requests, or pull requests.\n\n## License\n\nThis library is licensed under the [MIT License](LICENSE).\n\nFeel free to customize and enhance the README file to better suit your project's needs.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feffectra%2Fhttp-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feffectra%2Fhttp-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feffectra%2Fhttp-middleware/lists"}