{"id":27976405,"url":"https://github.com/php-fast-forward/http-factory","last_synced_at":"2026-04-02T18:02:24.830Z","repository":{"id":291862607,"uuid":"979028008","full_name":"php-fast-forward/http-factory","owner":"php-fast-forward","description":"Fast Forward PSR-7 HTTP Factory utility classes","archived":false,"fork":false,"pushed_at":"2026-03-29T13:21:29.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-29T16:33:45.095Z","etag":null,"topics":["http-factory","php","php-library","psr-7","service-provider"],"latest_commit_sha":null,"homepage":"https://php-fast-forward.github.io/http-factory/","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-fast-forward.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2025-05-06T22:13:33.000Z","updated_at":"2026-03-29T13:19:11.000Z","dependencies_parsed_at":"2025-05-06T23:24:42.021Z","dependency_job_id":"61c74bed-203b-448a-a990-3dc239b5a5a8","html_url":"https://github.com/php-fast-forward/http-factory","commit_stats":null,"previous_names":["php-fast-forward/http-factory"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/php-fast-forward/http-factory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-fast-forward%2Fhttp-factory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-fast-forward%2Fhttp-factory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-fast-forward%2Fhttp-factory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-fast-forward%2Fhttp-factory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-fast-forward","download_url":"https://codeload.github.com/php-fast-forward/http-factory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-fast-forward%2Fhttp-factory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31312744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["http-factory","php","php-library","psr-7","service-provider"],"created_at":"2025-05-08T01:26:21.966Z","updated_at":"2026-04-02T18:02:24.822Z","avatar_url":"https://github.com/php-fast-forward.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 FastForward HTTP Factory\n\n[![PHP Version](https://img.shields.io/badge/PHP-^8.1-8892BF?logo=php)](https://www.php.net/)\n[![License](https://img.shields.io/github/license/php-fast-forward/http-factory)](https://opensource.org/licenses/MIT)\n[![CI](https://github.com/php-fast-forward/http-factory/actions/workflows/tests.yml/badge.svg)](https://github.com/php-fast-forward/http-factory/actions)\n\nA [PSR-11](https://www.php-fig.org/psr/psr-11/) compatible service provider that registers a fully functional set of [PSR-17](https://www.php-fig.org/psr/psr-17/) and [PSR-7](https://www.php-fig.org/psr/psr-7/) HTTP factories using [Nyholm PSR-7](https://github.com/Nyholm/psr7) and [Nyholm ServerRequestCreator](https://github.com/Nyholm/psr7-server).\n\nDesigned to work out of the box with the [`php-fast-forward/container`](https://github.com/php-fast-forward/container) autowiring system.\n\n---\n\n## 📦 Installation\n\n```bash\ncomposer require fast-forward/http-factory\n```\n\n## ✅ Features\n- Registers the Psr17Factory as the base implementation for all PSR-17 interfaces\n- Registers the ServerRequestCreator using InvokableFactory\n- Provides ServerRequestInterface::class using fromGlobals() via MethodFactory\n- Aliases:\n  - RequestFactoryInterface\n  - ResponseFactoryInterface\n  - ServerRequestFactoryInterface\n  - StreamFactoryInterface\n  - UploadedFileFactoryInterface\n  - UriFactoryInterface\n\n## 🛠️ Usage\n\nIf you’re using `fast-forward/container`:\n```php\nuse FastForward\\Container\\container;\nuse FastForward\\Config\\ArrayConfig;\nuse FastForward\\Container\\ContainerInterface;\n\n$config = new ArrayConfig([\n    ContainerInterface::class =\u003e [\n        // Reference the service provider by class name\n        HttpMessageFactoryServiceProvider::class,\n    ],\n]);\n\n$container = container($config);\n\n$requestFactory = $container-\u003eget(Psr\\Http\\Message\\RequestFactoryInterface::class);\n$serverRequest = $container-\u003eget(Psr\\Http\\Message\\ServerRequestInterface::class);\n```\n\n## 🔧 Services Registered\n\nThe following services will be automatically registered in your container when using `HttpMessageFactoryServiceProvider`:\n\n| Service Interface                                     | Implementation Source                                |\n|------------------------------------------------------|------------------------------------------------------|\n| `Psr\\Http\\Message\\RequestFactoryInterface`           | `Nyholm\\Psr7\\Factory\\Psr17Factory` (via alias)       |\n| `Psr\\Http\\Message\\ResponseFactoryInterface`          | `Nyholm\\Psr7\\Factory\\Psr17Factory` (via alias)       |\n| `Psr\\Http\\Message\\ServerRequestFactoryInterface`     | `Nyholm\\Psr7\\Factory\\Psr17Factory` (via alias)       |\n| `Psr\\Http\\Message\\StreamFactoryInterface`            | `Nyholm\\Psr7\\Factory\\Psr17Factory` (via alias)       |\n| `Psr\\Http\\Message\\UploadedFileFactoryInterface`      | `Nyholm\\Psr7\\Factory\\Psr17Factory` (via alias)       |\n| `Psr\\Http\\Message\\UriFactoryInterface`               | `Nyholm\\Psr7\\Factory\\Psr17Factory` (via alias)       |\n| `Nyholm\\Psr7\\Factory\\Psr17Factory`                   | Registered via `InvokableFactory`                    |\n| `Nyholm\\Psr7Server\\ServerRequestCreator`             | Registered via `InvokableFactory`, with dependencies |\n| `Psr\\Http\\Message\\ServerRequestInterface`            | Created by calling `fromGlobals()` on `ServerRequestCreator` via `MethodFactory` |\n\n---\n\n## 📂 License\n\nThis package is open-source software licensed under the [MIT License](https://opensource.org/licenses/MIT).\n\n---\n\n## 🤝 Contributing\n\nContributions, issues, and feature requests are welcome!  \nFeel free to open a [GitHub Issue](https://github.com/php-fast-forward/http-factory/issues) or submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-fast-forward%2Fhttp-factory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-fast-forward%2Fhttp-factory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-fast-forward%2Fhttp-factory/lists"}