{"id":37235127,"url":"https://github.com/getpinga/http","last_synced_at":"2026-01-15T04:00:43.463Z","repository":{"id":65532220,"uuid":"594106240","full_name":"getpinga/http","owner":"getpinga","description":"Hypertext Transfer Protocol (HTTP) utilities for PHP","archived":false,"fork":true,"pushed_at":"2023-01-27T16:51:22.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-01T09:53:32.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"delight-im/PHP-HTTP","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getpinga.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}},"created_at":"2023-01-27T16:04:24.000Z","updated_at":"2023-01-27T16:04:49.000Z","dependencies_parsed_at":"2023-02-15T11:01:35.521Z","dependency_job_id":null,"html_url":"https://github.com/getpinga/http","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/getpinga/http","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getpinga%2Fhttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getpinga%2Fhttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getpinga%2Fhttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getpinga%2Fhttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getpinga","download_url":"https://codeload.github.com/getpinga/http/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getpinga%2Fhttp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-01-15T04:00:42.748Z","updated_at":"2026-01-15T04:00:43.441Z","avatar_url":"https://github.com/getpinga.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pinga HTTP\n\nHypertext Transfer Protocol (HTTP) utilities for PHP\n\n## Requirements\n\n * PHP 8.1.0+\n\n## Installation\n\n 1. Include the library via Composer [[?]](https://github.com/delight-im/Knowledge/blob/master/Composer%20(PHP).md):\n\n    ```\n    $ composer require pinga/http\n    ```\n\n 1. Include the Composer autoloader:\n\n    ```php\n    require __DIR__ . '/vendor/autoload.php';\n    ```\n\n## Usage\n\n### Response headers\n\n * Retrieving a header (with optional value prefix)\n\n   ```php\n   $header = \\Delight\\Http\\ResponseHeader::get('Content-Type');\n   // or\n   $header = \\Delight\\Http\\ResponseHeader::get('Content-Type', 'text/');\n   ```\n\n * Setting a header (overwriting other headers with the same name)\n\n   ```php\n   \\Delight\\Http\\ResponseHeader::set('X-Frame-Options', 'sameorigin');\n   ```\n\n * Adding a header (preserving other headers with the same name)\n\n   ```php\n   \\Delight\\Http\\ResponseHeader::add('Vary', 'User-Agent');\n   ```\n\n * Removing a header (with optional value prefix)\n\n   ```php\n   $success = \\Delight\\Http\\ResponseHeader::remove('X-Powered-By');\n   // or\n   $success = \\Delight\\Http\\ResponseHeader::remove('X-Powered-By', 'PHP');\n   ```\n\n * Retrieving and removing a header at once (with optional value prefix)\n\n   ```php\n   $header = \\Delight\\Http\\ResponseHeader::take('Set-Cookie');\n   // or\n   $header = \\Delight\\Http\\ResponseHeader::take('Set-Cookie', 'mysession=');\n   ```\n\n## Contributing\n\nAll contributions are welcome! If you wish to contribute, please create an issue first so that your feature, problem or question can be discussed.\n\n## License\n\nThis project is licensed under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetpinga%2Fhttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetpinga%2Fhttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetpinga%2Fhttp/lists"}