{"id":33977602,"url":"https://github.com/php-runtime/psr-laminas","last_synced_at":"2025-12-13T02:29:21.287Z","repository":{"id":62538269,"uuid":"349814854","full_name":"php-runtime/psr-laminas","owner":"php-runtime","description":"[READ ONLY]","archived":false,"fork":false,"pushed_at":"2025-12-02T15:44:26.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-05T13:48:39.451Z","etag":null,"topics":[],"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/php-runtime.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["nyholm"]}},"created_at":"2021-03-20T19:15:05.000Z","updated_at":"2025-12-02T15:44:30.000Z","dependencies_parsed_at":"2025-02-18T20:24:27.636Z","dependency_job_id":"f2aa816c-8e4a-40e6-b769-ca3a00f0a0f2","html_url":"https://github.com/php-runtime/psr-laminas","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/php-runtime/psr-laminas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-runtime%2Fpsr-laminas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-runtime%2Fpsr-laminas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-runtime%2Fpsr-laminas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-runtime%2Fpsr-laminas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-runtime","download_url":"https://codeload.github.com/php-runtime/psr-laminas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-runtime%2Fpsr-laminas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27698682,"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","status":"online","status_checked_at":"2025-12-13T02:00:09.769Z","response_time":147,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-12-13T02:29:18.319Z","updated_at":"2025-12-13T02:29:21.272Z","avatar_url":"https://github.com/php-runtime.png","language":"PHP","readme":"# PSR-7 and PSR-15 Runtime\n\nA runtime with `laminas/diactoros` and `laminas/laminas-httphandlerrunner`.\n\nIf you are new to the Symfony Runtime component, read more in the [main readme](https://github.com/php-runtime/runtime).\n\n## Installation\n\n```\ncomposer require runtime/psr-laminas\n```\n\n## Usage\n\nThis runtime is discovered automatically. You can force your application to use\nthis runtime by defining the environment variable `APP_RUNTIME`.\n\n```\nAPP_RUNTIME=Runtime\\PsrLaminas\\Runtime\n```\n\n### PSR-7\n\n```php\n// public/index.php\n\nuse Psr\\Http\\Server\\RequestHandlerInterface;\n\nrequire_once dirname(__DIR__).'/vendor/autoload_runtime.php';\n\nreturn function (ServerRequestInterface $request) {\n    $response = new \\Laminas\\Diactoros\\Response();\n    $response-\u003egetBody()-\u003ewrite('PSR-7');\n\n    return $response;\n};\n```\n\n### PSR-15\n\n```php\n// public/index.php\n\nuse Psr\\Http\\Server\\RequestHandlerInterface;\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Psr\\Http\\Message\\ResponseInterface;\n\nrequire_once dirname(__DIR__).'/vendor/autoload_runtime.php';\n\nclass Application implements RequestHandlerInterface {\n    // ...\n    public function handle(ServerRequestInterface $request): ResponseInterface\n    {\n        $response = new \\Laminas\\Diactoros\\Response();\n        $response-\u003egetBody()-\u003ewrite('PSR-15');\n\n        return $response;\n    }\n}\n\nreturn function (array $context) {\n    return new Application($context['APP_ENV'] ?? 'dev');\n};\n```\n","funding_links":["https://github.com/sponsors/nyholm"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-runtime%2Fpsr-laminas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-runtime%2Fpsr-laminas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-runtime%2Fpsr-laminas/lists"}