{"id":15023536,"url":"https://github.com/fabricekabongo/simplehttpclient","last_synced_at":"2026-01-27T13:32:32.702Z","repository":{"id":56981031,"uuid":"83652153","full_name":"fabricekabongo/simplehttpclient","owner":"fabricekabongo","description":"A very simple Http Client that works on PHP 5.3 ","archived":false,"fork":false,"pushed_at":"2017-03-08T08:48:07.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T23:15:26.376Z","etag":null,"topics":["http","http-client","php","php53"],"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/fabricekabongo.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":"2017-03-02T08:12:27.000Z","updated_at":"2017-03-02T09:14:20.000Z","dependencies_parsed_at":"2022-08-21T10:50:33.818Z","dependency_job_id":null,"html_url":"https://github.com/fabricekabongo/simplehttpclient","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/fabricekabongo/simplehttpclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabricekabongo%2Fsimplehttpclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabricekabongo%2Fsimplehttpclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabricekabongo%2Fsimplehttpclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabricekabongo%2Fsimplehttpclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabricekabongo","download_url":"https://codeload.github.com/fabricekabongo/simplehttpclient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabricekabongo%2Fsimplehttpclient/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28813538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"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":["http","http-client","php","php53"],"created_at":"2024-09-24T19:59:09.830Z","updated_at":"2026-01-27T13:32:32.689Z","avatar_url":"https://github.com/fabricekabongo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simplehttpclient\nA very simple Http Client that works on PHP 5.3 \n\n## Installation\n\nTo install simply run this :\n\n```bash\n    composer require fabricekabongo/simplehttpclient\n```\n\n## Usage\n\nThis client offers 3 interfaces:\n### Get request\nwithout query parameters:\n```php\n$client = new FabriceKabongo\\Http\\HttpClient();\n$responseData = $client-\u003eget('http://www.google.com');\n```\nor with query parameters:\n```php\n$client = new FabriceKabongo\\Http\\HttpClient();\n$responseData = $client-\u003eget('http://www.google.com', array('q' =\u003e 'tallest falls in africa');//http://www.google.com?q=tallest%20falls%20in%20africa\n```\n\n### post Request\n\nwith post parameters:\n```php\n$client = new FabriceKabongo\\Http\\HttpClient();\n$responseData = $client-\u003epost('http://www.myawesomeapi.com', array('foo' =\u003e 'bar');\n```\n\n### base64 upload\nsends a file using base64 content (think android developers lol):\n\n```bash\ntouch myfile.txt \u0026\u0026 echo \"random content\" \u003e myfile.txt\n```\nthen:\n```php\n$client = new FabriceKabongo\\Http\\HttpClient();\ntry {\n    $responseData = $client-\u003ebase64Upload('http://www.myawesomeapi.com', __DIR__.\"/myfile.txt\");\n} catch (\\Exception $ex) {\n    //log oups\n}\n```\n\n## other informations\nThis code need php-curl to be installed (obviously you choose php5.3-curl, php5.6-curl php7.0-curl depending of your version)\n\n# License\n\nMIT. you are free dude.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabricekabongo%2Fsimplehttpclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabricekabongo%2Fsimplehttpclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabricekabongo%2Fsimplehttpclient/lists"}