{"id":50260226,"url":"https://github.com/alecoletti/http","last_synced_at":"2026-05-27T09:02:56.788Z","repository":{"id":22296366,"uuid":"25631147","full_name":"alecoletti/Http","owner":"alecoletti","description":"A simple wrapper based around the Guzzle API.","archived":false,"fork":false,"pushed_at":"2014-10-23T10:20:02.000Z","size":111,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2023-03-25T12:57:58.746Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"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/alecoletti.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":"2014-10-23T10:16:10.000Z","updated_at":"2017-09-21T20:22:39.000Z","dependencies_parsed_at":"2022-08-21T01:00:32.774Z","dependency_job_id":null,"html_url":"https://github.com/alecoletti/Http","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/alecoletti/Http","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecoletti%2FHttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecoletti%2FHttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecoletti%2FHttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecoletti%2FHttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alecoletti","download_url":"https://codeload.github.com/alecoletti/Http/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecoletti%2FHttp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33558664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-05-27T09:02:50.925Z","updated_at":"2026-05-27T09:02:56.780Z","avatar_url":"https://github.com/alecoletti.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple HTTP Requests\n\nI personally find my self making lots of external API requests using Laravel. So I wrote a simple wrapper around the Guzzle API to make my life a little easier.\n\n## Install\n\nPull this package in through Composer.\n\n```js\n{\n    \"require\": {\n        \"josh-hornby/http\": \"0.4.*\"\n    }\n}\n```\n\nYou will also need to add just two things to your ```config/app.php``` file, first add this to your ***providers*** array\n\n```php\n'JoshHornby\\Http\\HttpServiceProvider'\n```\n\nAnd as this is a facade, add this to the ***aliases*** array\n\n```php\n'Http' =\u003e 'JoshHornby\\Http\\HttpCore'\n```\n\n## Usage\n\n```php\nHttp::get('http://myrequest.com');\n```\n\n```php\nHttp::post('http://myrequest.com', ['postKey' =\u003e 'postValue' ]);\n```\n\n```php\nHttp::put('http://myrequest.com', ['postKey' =\u003e 'postValue' ]);\n```\n\n```php\nHttp::delete('http://myrequest.com');\n```\n\n```php\nHttp::head('http://myrequest.com');\n```\n\nThe package will check if it returns the correct status code (200 or 201) and present you with a nice JSON array. Simple!\n\n## Todo\n\n- Unit testing\n- Better header handling\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecoletti%2Fhttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falecoletti%2Fhttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecoletti%2Fhttp/lists"}