{"id":16956093,"url":"https://github.com/codenix-sv/api-client","last_synced_at":"2025-03-21T12:48:03.306Z","repository":{"id":56955489,"uuid":"248313404","full_name":"codenix-sv/api-client","owner":"codenix-sv","description":"PHP API client","archived":false,"fork":false,"pushed_at":"2020-03-18T18:45:15.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T08:27:49.240Z","etag":null,"topics":["api","api-client","api-client-php","php","psr-18","psr-7","simple-api","simple-api-client"],"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/codenix-sv.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":"2020-03-18T18:36:20.000Z","updated_at":"2020-03-18T18:44:06.000Z","dependencies_parsed_at":"2022-08-21T08:50:23.044Z","dependency_job_id":null,"html_url":"https://github.com/codenix-sv/api-client","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenix-sv%2Fapi-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenix-sv%2Fapi-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenix-sv%2Fapi-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenix-sv%2Fapi-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codenix-sv","download_url":"https://codeload.github.com/codenix-sv/api-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244801286,"owners_count":20512638,"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":["api","api-client","api-client-php","php","psr-18","psr-7","simple-api","simple-api-client"],"created_at":"2024-10-13T22:14:14.513Z","updated_at":"2025-03-21T12:48:03.274Z","avatar_url":"https://github.com/codenix-sv.png","language":"PHP","readme":"# PHP API Client\n\n[![Build Status](https://travis-ci.org/codenix-sv/api-client.svg?branch=master)](https://travis-ci.org/codenix-sv/api-client)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/codenix-sv/api-client/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/codenix-sv/api-client/?branch=master)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/b494f68f06e75d45fc68/test_coverage)](https://codeclimate.com/github/codenix-sv/api-client/test_coverage)\n[![Maintainability](https://api.codeclimate.com/v1/badges/b494f68f06e75d45fc68/maintainability)](https://codeclimate.com/github/codenix-sv/api-client/maintainability)\n[![License: MIT](https://img.shields.io/github/license/codenix-sv/api-client)](https://github.com/codenix-sv/api-client/blob/master/LICENSE)\n\n\nA simple API client, written with PHP that's easy to use.\n\n## Requirements\n\n* PHP \u003e= 7.2\n* A [HTTP client](https://packagist.org/providers/php-http/client-implementation)\n* A [PSR-7 implementation](https://packagist.org/providers/psr/http-message-implementation)\n\n## Installation\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```bash\n$ composer require codenix-sv/api-client\n```\nor add\n\n```json\n\"codenix-sv/api-client\": \"^1.0\"\n```\n\nto the require section of your application's `composer.json` file.\n\nMake sure you have installed a PSR-18 HTTP Client and PSR-7 message implementation before you install this package. For example:\n\n```bash\n$ composer require php-http/curl-client nyholm/psr7\n```\n\n## Examples\n\n*Send GET request*\n\n```php\nuse Codenixsv\\ApiClient\\BaseClient;\n\n$client = new BaseClient();\n$response = $client-\u003eget('https://httpbin.org/get');\n```\n\n*Send POST request*\n\n```php\nuse Codenixsv\\ApiClient\\BaseClient;\n\n$client = new BaseClient();\n$response = $client-\u003epost('https://httpbin.org/post', 'foo=bar');\n```\n\n## License\n\n`codenix-sv/api-client` is released under the MIT License. See the bundled [LICENSE](./LICENSE) for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenix-sv%2Fapi-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodenix-sv%2Fapi-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenix-sv%2Fapi-client/lists"}