{"id":19715191,"url":"https://github.com/pmall/handlers-container","last_synced_at":"2026-04-15T00:32:04.228Z","repository":{"id":152383967,"uuid":"98875909","full_name":"pmall/handlers-container","owner":"pmall","description":"Resolver producing Psr-15 request handlers from class names using a Psr-11 container","archived":false,"fork":false,"pushed_at":"2017-12-08T20:28:01.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T21:50:43.149Z","etag":null,"topics":["container","psr-11","psr-15","request-handler","resolver"],"latest_commit_sha":null,"homepage":"https://github.com/ellipsephp/handlers-container","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/pmall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-07-31T10:13:13.000Z","updated_at":"2018-01-03T16:24:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5bc6618-94bb-4c5c-83e7-a094a4eccc2d","html_url":"https://github.com/pmall/handlers-container","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pmall/handlers-container","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmall%2Fhandlers-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmall%2Fhandlers-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmall%2Fhandlers-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmall%2Fhandlers-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmall","download_url":"https://codeload.github.com/pmall/handlers-container/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmall%2Fhandlers-container/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31821485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["container","psr-11","psr-15","request-handler","resolver"],"created_at":"2024-11-11T22:37:30.644Z","updated_at":"2026-04-15T00:32:04.215Z","avatar_url":"https://github.com/pmall.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Container request handlers resolver\n\nThis package provides a resolver producing Psr-15 request handlers from class names using a Psr-11 container.\n\n**Require** php \u003e= 7.1\n\n**Installation** `composer require ellipse/handlers-container`\n\n**Run tests** `./vendor/bin/kahlan`\n\n- [Using the container request handlers resolver](#using-the-container-request-handlers-resolver)\n\n## Using the container request handlers resolver\n\nPlease note the request handler instances are resolved using [ellipse/container-reflection](https://github.com/ellipsephp/container-reflection) auto-wiring feature.\n\nAlso when instances of `Psr\\Http\\Message\\ServerRequestInterface` are needed to build a request handler instance, the one received by its `-\u003ehandle()` method is injected.\n\n```php\n\u003c?php\n\nnamespace App;\n\nuse Some\\Psr11Container;\n\nuse Ellipse\\Handlers\\ContainerResolver;\n\nuse App\\Handlers\\SomeRequestHandler;\n\n// Get a Psr-11 container.\n$container = new Psr11Container;\n\n// Create a resolver with the Psr-11 container and a delegate for non request handler class name elements.\n$resolver = new ContainerResolver($container, function ($element) {\n\n    // $element is not a request handler class name, just return it.\n\n    return $element;\n\n});\n\n// Produce a Psr-15 request handler from a request handler class name.\n$handler = $resolver(SomeRequestHandler::class);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmall%2Fhandlers-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmall%2Fhandlers-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmall%2Fhandlers-container/lists"}