{"id":15026542,"url":"https://github.com/dumindup/rest-api-client","last_synced_at":"2025-07-27T08:37:57.695Z","repository":{"id":215555723,"uuid":"441959915","full_name":"DuminduP/Rest-API-client","owner":"DuminduP","description":"Raw PHP REST API client project","archived":false,"fork":false,"pushed_at":"2022-01-02T02:40:51.000Z","size":702,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T03:15:25.908Z","etag":null,"topics":["curl","curl-multi","curlphp","json","oop","php","php74","phpunit","phpunit-tests","rest-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/DuminduP.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}},"created_at":"2021-12-26T18:38:40.000Z","updated_at":"2022-01-02T02:40:54.000Z","dependencies_parsed_at":"2024-01-05T05:25:14.562Z","dependency_job_id":"b378d5ba-22cb-48cd-b4bb-5ecfed2c56b4","html_url":"https://github.com/DuminduP/Rest-API-client","commit_stats":null,"previous_names":["dumindup/rest-api-client"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuminduP%2FRest-API-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuminduP%2FRest-API-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuminduP%2FRest-API-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuminduP%2FRest-API-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DuminduP","download_url":"https://codeload.github.com/DuminduP/Rest-API-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243330321,"owners_count":20274039,"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":["curl","curl-multi","curlphp","json","oop","php","php74","phpunit","phpunit-tests","rest-api"],"created_at":"2024-09-24T20:04:39.062Z","updated_at":"2025-03-13T03:15:29.736Z","avatar_url":"https://github.com/DuminduP.png","language":"PHP","readme":"# REST API Client\nThis project is a raw PHP (7.4+) Supermetrics REST API client project.\nThis is a sample project for fetching and manipulating JSON data from a fictional Supermetrics Social Network REST API.\nDeveloped an object-oriented code, especially considering design thinking to be generic, extendable, easy to maintain by\nother staff members while thinking about performance.\n\nNo third party libraries were used on this project. Used PHP cURL to connect and communicate with the Supermetrics API.\nI have used curl_multi that allows the processing of multiple cURL handles asynchronously. I was able to reduce the run time by ~90% using curl_multi for concurrent requests for 10 pages.\n\n# Requirements\n\n * PHP 7.4 or higher needs to be installed.\n  ```\n sudo apt-get install php\n ```\n * PHP cURL library must be installed.\n ```\n sudo apt-get install php-curl\n ```\n\n# Installation\n\n 1. Clone or download this repository\n ```\n git clone https://github.com/DuminduP/Rest-API-client.git\n ```\n 2. Change directory\n ```\n cd rest-client/\n```\n3. Install phpunit\n```\nsudo apt install phpunit\n```\n4. Run unit tests\n```\nphpunit\n```\n5. Run sample script to see the summary report.\n```\nphp summary.php\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdumindup%2Frest-api-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdumindup%2Frest-api-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdumindup%2Frest-api-client/lists"}