{"id":18258039,"url":"https://github.com/vectorface/api-client-php","last_synced_at":"2025-04-08T22:47:09.615Z","repository":{"id":10903507,"uuid":"13199082","full_name":"Vectorface/API-client-php","owner":"Vectorface","description":null,"archived":false,"fork":false,"pushed_at":"2019-04-08T20:03:34.000Z","size":6,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-14T17:57:53.176Z","etag":null,"topics":[],"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/Vectorface.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":"2013-09-29T20:07:11.000Z","updated_at":"2019-04-09T02:27:30.000Z","dependencies_parsed_at":"2022-07-21T16:02:25.506Z","dependency_job_id":null,"html_url":"https://github.com/Vectorface/API-client-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vectorface%2FAPI-client-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vectorface%2FAPI-client-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vectorface%2FAPI-client-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vectorface%2FAPI-client-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vectorface","download_url":"https://codeload.github.com/Vectorface/API-client-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247941719,"owners_count":21022037,"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":[],"created_at":"2024-11-05T10:28:46.847Z","updated_at":"2025-04-08T22:47:09.586Z","avatar_url":"https://github.com/Vectorface.png","language":"PHP","readme":"API-client-php\n==============\n\nA very simple/naive JSON/REST API client on top of cURL.\n\n## Prerequisites\n* Must have username, password and url for the REST API\n* Must be running PHP \u003e= 7.0\n\n## Example\n\n```PHP\n\u003c?php\n\nrequire_once './vendor/autoload.php';\n\nuse VectorFace\\Client\\API;\n\n/* Initialize the API client */\n$api = new API([\n    'username' =\u003e 'example',\n    'password' =\u003e '3x4mpl3',\n    'url' =\u003e 'http://domain.tld'\n]);\n\n/*\n * This will:\n *  - Make a request to\n *    http://domain.tld/users?filters=fname:Jon\u0026fields=user_id,fname,lname\n *  - JSON-decode the response\n *  - return the result\n */\n$response = $api-\u003erequest('/users', [\n    'filters' =\u003e 'fname:Jon',\n    'fields' =\u003e 'user_id,fname,lname'\n]);\n\n// $response should contain a decoded JSON response from the API\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvectorface%2Fapi-client-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvectorface%2Fapi-client-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvectorface%2Fapi-client-php/lists"}