{"id":18794558,"url":"https://github.com/effectra/http-factory","last_synced_at":"2025-10-19T18:34:03.035Z","repository":{"id":167223032,"uuid":"642801804","full_name":"effectra/http-factory","owner":"effectra","description":"This library implements PSR-17 HTTP Factory, creating PSR-7 compliant HTTP messages. Interoperability, flexibility, and ease of use.","archived":false,"fork":false,"pushed_at":"2023-10-12T21:25:23.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-12-29T16:34:03.917Z","etag":null,"topics":["http","http-factory","php","psr","psr-17","psr-7"],"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-19T11:30:06.000Z","updated_at":"2023-05-19T11:47:23.000Z","dependencies_parsed_at":"2024-11-07T21:32:15.237Z","dependency_job_id":"06fb92c6-b432-4a37-a075-58702b7f9410","html_url":"https://github.com/effectra/http-factory","commit_stats":null,"previous_names":["effectra/http-factories"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fhttp-factory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fhttp-factory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fhttp-factory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fhttp-factory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/effectra","download_url":"https://codeload.github.com/effectra/http-factory/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239718695,"owners_count":19685796,"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":["http","http-factory","php","psr","psr-17","psr-7"],"created_at":"2024-11-07T21:29:46.691Z","updated_at":"2025-10-19T18:33:57.988Z","avatar_url":"https://github.com/effectra.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Effectra HTTP Factory\n\nEffectra HTTP Factory is a PHP library that provides factory classes for creating PSR-7 compliant HTTP message objects. It follows the PSR-17 standard for HTTP factories, ensuring interoperability and compatibility with other PSR-7 compliant libraries and frameworks.\n\n## Features\n\n- Factory classes for creating PSR-7 compliant HTTP message objects.\n- Implementation of the `psr/http-factory` interfaces.\n- Easy creation of HTTP messages such as requests, responses, URIs, and more.\n\n## Requirements\n\n- PHP 7.2 or higher\n\n## Installation\n\nYou can install the library using [Composer](https://getcomposer.org/). Run the following command in your project directory:\n\n```\ncomposer require effectra/http-factory\n```\n\n## Usage\n\n### Creating a Stream with StreamFactory\n\n```php\nuse Effectra\\Http\\Factory\\StreamFactory;\n\n$streamFactory = new StreamFactory();\n$stream = $streamFactory-\u003ecreateStream('Hello, world!');\n```\n\n### Creating a Request with RequestFactory\n\n```php\nuse Effectra\\Http\\Factory\\RequestFactory;\n\n$requestFactory = new RequestFactory();\n$request = $requestFactory-\u003ecreateRequest('GET', 'https://example.com');\n```\n\n### Creating a ServerRequest with ServerRequestFactory\n\n```php\nuse Effectra\\Http\\Factory\\ServerRequestFactory;\n\n$serverRequestFactory = new ServerRequestFactory();\n$serverRequest = $serverRequestFactory-\u003ecreateServerRequest('POST', '/submit-form', $_SERVER);\n```\n\n### Creating a Response with ResponseFactory\n\n```php\nuse Effectra\\Http\\Factory\\ResponseFactory;\n\n$responseFactory = new ResponseFactory();\n$response = $responseFactory-\u003ecreateResponse(200, 'OK');\n```\n\n### Creating a Uri with UriFactory\n\n```php\nuse Effectra\\Http\\Factory\\UriFactory;\n\n$uriFactory = new UriFactory();\n$uri = $uriFactory-\u003ecreateUri('https://example.com');\n```\n\nFor more examples and detailed usage instructions, please refer to the documentation.\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request on the [GitHub repository](https://github.com/effectra/http-factory).\n\n## License\n\nEffectra HTTP Factory is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n\n---\n\nThank you for using the Effectra HTTP Factory library. If you have any questions or need further assistance, feel free to reach out to us.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feffectra%2Fhttp-factory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feffectra%2Fhttp-factory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feffectra%2Fhttp-factory/lists"}