{"id":28214038,"url":"https://github.com/vzool/url","last_synced_at":"2025-06-11T20:30:46.082Z","repository":{"id":62545862,"uuid":"147658380","full_name":"vzool/URL","owner":"vzool","description":"A Simple RESTful HTTP Client Library using `file_get_contents` only","archived":false,"fork":false,"pushed_at":"2018-09-09T06:54:50.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-17T20:12:08.103Z","etag":null,"topics":["http-client","restful-client"],"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/vzool.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":"2018-09-06T10:38:50.000Z","updated_at":"2019-03-10T13:08:58.000Z","dependencies_parsed_at":"2022-11-02T22:00:55.546Z","dependency_job_id":null,"html_url":"https://github.com/vzool/URL","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/vzool/URL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vzool%2FURL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vzool%2FURL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vzool%2FURL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vzool%2FURL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vzool","download_url":"https://codeload.github.com/vzool/URL/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vzool%2FURL/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259334608,"owners_count":22842466,"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-client","restful-client"],"created_at":"2025-05-17T20:12:08.103Z","updated_at":"2025-06-11T20:30:46.070Z","avatar_url":"https://github.com/vzool.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## A Simple RESTful HTTP Client Library using `file_get_contents` only\n[![Latest Stable Version](https://poser.pugx.org/vzool/URL/version)](https://packagist.org/packages/vzool/URL)\n[![License](https://poser.pugx.org/vzool/URL/license)](https://packagist.org/packages/vzool/URL)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/vzool/URL/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/vzool/URL/badges/quality-score.png?b=master)\n[![Build Status](https://travis-ci.org/vzool/URL.svg?branch=master)](https://travis-ci.org/vzool/URL)\n\n### Install\n\n```shell\ncomposer require vzool/url\n```\n\n### Usage\n```php\nrequire_once __DIR__.'/vendor/autoload.php';\n\nuse vzool\\URL\\URL;\n\n$http = new URL('https://jsonplaceholder.typicode.com');\n\n// to GET\n\n$result = $http-\u003eGET('/posts/1');\n\n// to POST\n\n$result = $http-\u003ePOST('/posts', [\n  \"title\" =\u003e \"Agreement\",\n  \"body\" =\u003e \"Ha ha ha\",\n  \"author\" =\u003e \"Aziz\",\n]);\n\n// to PUT\n\n$result = $http-\u003ePUT('/posts/1', [\n  \"title\" =\u003e \"Agreement #2\",\n]);\n\n// to DELETE\n\n$result = $http-\u003eDELETE('/posts/1');\n\n// or\n\n$result = $http-\u003edelete('/posts/1');\n\n// to get result\n\nprint_r($result-\u003econtent()); // returns stdClass objects :)\nprint_r($result-\u003etoArray()); // returns array\nprint_r($result-\u003etoJson());  // returns raw response, I'm a JSON Patriot ;)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvzool%2Furl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvzool%2Furl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvzool%2Furl/lists"}