{"id":36980960,"url":"https://github.com/joykumarbera/request","last_synced_at":"2026-01-13T22:50:44.477Z","repository":{"id":62493312,"uuid":"261086514","full_name":"joykumarbera/request","owner":"joykumarbera","description":"A wrapper for calling http service in php","archived":false,"fork":false,"pushed_at":"2020-10-08T09:30:49.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T02:02:40.236Z","etag":null,"topics":["curl-library","curlphp","http-client","php","request"],"latest_commit_sha":null,"homepage":"","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/joykumarbera.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}},"created_at":"2020-05-04T05:15:43.000Z","updated_at":"2024-04-24T02:02:40.237Z","dependencies_parsed_at":"2022-11-02T09:31:55.428Z","dependency_job_id":null,"html_url":"https://github.com/joykumarbera/request","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/joykumarbera/request","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joykumarbera%2Frequest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joykumarbera%2Frequest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joykumarbera%2Frequest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joykumarbera%2Frequest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joykumarbera","download_url":"https://codeload.github.com/joykumarbera/request/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joykumarbera%2Frequest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28402160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"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":["curl-library","curlphp","http-client","php","request"],"created_at":"2026-01-13T22:50:44.311Z","updated_at":"2026-01-13T22:50:44.460Z","avatar_url":"https://github.com/joykumarbera.png","language":"PHP","readme":"# HTTP REQUEST WRAPPER\n\nA Simple HTTP Request Wrapper\n\n## Installation\n\n```bash\ncomposer require bera/request\n```\n\n## Usage\n\nfor a get request\n\n```php\nrequire 'vendor/autoload.php';\n\nuse Bera\\Request\\Request;\n\n$url = 'https://jsonplaceholder.typicode.com/posts';\n$request = new Request('GET',$url);\nprint_r($request-\u003eresponse());\nprint_r($request-\u003eresponseAsArray()); // for response as an array\n```\n\nfor a post request\n\n```php\nrequire 'vendor/autoload.php';\n\nuse Bera\\Request\\Request;\n\n$url = 'https://jsonplaceholder.typicode.com/posts';\n$payload = array(\n    'title' =\u003e 'foo',\n    'body' =\u003e 'bar',\n    'userId' =\u003e 1\n);\n$request = new Request('POST',$url);\n$request-\u003eattachPayLoad($payload);\nprint_r($request-\u003eresponseAsArray()); // for response as an array\n```\n\n## License\nThis software under MIT license","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoykumarbera%2Frequest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoykumarbera%2Frequest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoykumarbera%2Frequest/lists"}