{"id":22446787,"url":"https://github.com/stas-dovgodko/restful_api_client","last_synced_at":"2025-10-14T13:35:52.791Z","repository":{"id":35030064,"uuid":"198410694","full_name":"stas-dovgodko/restful_api_client","owner":"stas-dovgodko","description":"Simple PHP REST API client with models mapping","archived":false,"fork":false,"pushed_at":"2023-04-19T19:22:21.000Z","size":27,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-27T11:22:57.635Z","etag":null,"topics":["php","rest-api","restfull-api"],"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/stas-dovgodko.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-23T10:47:08.000Z","updated_at":"2020-05-28T21:25:41.000Z","dependencies_parsed_at":"2025-02-01T15:45:38.925Z","dependency_job_id":"0224eb09-b726-4267-839d-2ef501df715c","html_url":"https://github.com/stas-dovgodko/restful_api_client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stas-dovgodko/restful_api_client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stas-dovgodko%2Frestful_api_client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stas-dovgodko%2Frestful_api_client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stas-dovgodko%2Frestful_api_client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stas-dovgodko%2Frestful_api_client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stas-dovgodko","download_url":"https://codeload.github.com/stas-dovgodko/restful_api_client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stas-dovgodko%2Frestful_api_client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018707,"owners_count":26086609,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"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":["php","rest-api","restfull-api"],"created_at":"2024-12-06T04:11:22.146Z","updated_at":"2025-10-14T13:35:52.775Z","avatar_url":"https://github.com/stas-dovgodko.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nExample:\n\n```php\n    require_once 'vendor/autoload.php';\n    \n    class JSONPlaceholder extends \\JsonAPI\\Model {\n        use \\JsonAPI\\Resource;\n    \n        protected $endpoint = 'https://jsonplaceholder.typicode.com/todos';\n    \n        public static function FromArray(array $data)\n        {\n            $object = new self;\n    \n            // @todo Schema validation here\n            $object-\u003euserId = $data['userId'];\n            $object-\u003eid = $data['id'];\n            $object-\u003etitle = $data['title'];\n    \n            return $object;\n        }\n    \n        /**\n         * Get object by ID\n         *\n         * @param $id\n         * @return JSONPlaceholder\n         * @throws \\JsonAPI\\Client\\Exception\n         */\n        public function get($id)\n        {\n            return $this-\u003erequest($id, 'GET', [], self::class);\n        }\n    \n        public function getId() : string\n        {\n            return $this-\u003eid;\n        }\n    \n        public function getUserId() : string\n        {\n            return $this-\u003euserId;\n        }\n    \n        public function getTitle() : string\n        {\n            return $this-\u003etitle;\n        }\n    }\n    \n    \n    $test = new JSONPlaceholder;\n    $object = $test-\u003esetAdapter(new \\JsonAPI\\Client\\Adapter\\Curl())-\u003eget(1);\n    \n    echo $object-\u003egetId().' - '.$object-\u003egetTitle(); // will echo '1 - delectus aut autem'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstas-dovgodko%2Frestful_api_client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstas-dovgodko%2Frestful_api_client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstas-dovgodko%2Frestful_api_client/lists"}