{"id":31756820,"url":"https://github.com/reactmore/support-adapter","last_synced_at":"2025-10-09T19:25:42.917Z","repository":{"id":316228541,"uuid":"1062486319","full_name":"reactmore/support-adapter","owner":"reactmore","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-23T10:58:39.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-23T12:39:48.931Z","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/reactmore.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-23T10:15:41.000Z","updated_at":"2025-09-23T10:57:11.000Z","dependencies_parsed_at":"2025-09-23T12:39:51.672Z","dependency_job_id":null,"html_url":"https://github.com/reactmore/support-adapter","commit_stats":null,"previous_names":["reactmore/support-adapter"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/reactmore/support-adapter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactmore%2Fsupport-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactmore%2Fsupport-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactmore%2Fsupport-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactmore%2Fsupport-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reactmore","download_url":"https://codeload.github.com/reactmore/support-adapter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactmore%2Fsupport-adapter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001980,"owners_count":26083243,"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-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2025-10-09T19:25:38.366Z","updated_at":"2025-10-09T19:25:42.911Z","avatar_url":"https://github.com/reactmore.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Support Adapter Guzzle for CodeIgniter 4\n\nSupport Adapter is a lightweight package that provides a Guzzle HTTP Adapter with a flexible approach for both CodeIgniter 4 and standalone PHP projects.\n\nIts main goal is to simplify HTTP communication with external APIs through the PSR-7 and PSR-18 standards, keeping your code clean, consistent, and testable.\n\n## 📦 Installation\n\n1. **Install via Composer**\n```bash\ncomposer require reactmore/support-adapter\n```\n\n## 📖 Example Usage\n```php\nuse Reactmore\\SupportAdapter\\Adapter\\Guzzle;\nuse Reactmore\\SupportAdapter\\Adapter\\Auth\\None;\n\n// Auth adapter (no authentication)\n$auth = new None();\n\n// Initialize the adapter\n$adapter = new Guzzle($auth, 'https://api.example.com/');\n\n// Perform a GET request\n$response = $adapter-\u003eget('users');\n\n// Get response body\n$data = json_decode($response-\u003egetBody()-\u003egetContents(), true);\n\n\nprint_r($data);\n\n```\n\n## 🚀 CodeIgniter 4 Integration\n\nWith Support Adapter, you can register a service in app/Config/Services.php for dependency injection into your CodeIgniter 4 project:\n\n```php\npublic static function apiClient($getShared = true)\n{\n    if ($getShared) {\n        return static::getSharedInstance('apiClient');\n    }\n\n    $auth = new \\Reactmore\\SupportAdapter\\Adapter\\Auth\\None();\n    return new \\Reactmore\\SupportAdapter\\Adapter\\Guzzle($auth, 'https://api.example.com/');\n}\n\n```\n## 🤝 Contributing\n\nContributions are always welcome!\n\nIf you’d like to improve Support Adapter, here’s how you can help:\n\n```\n1. Fork the repository\n2. Create a new feature branch (git checkout -b feature/my-new-feature)\n3. Commit your changes (git commit -m 'Add new feature')\n4. Push to the branch (git push origin feature/my-new-feature)\n5. Open a Pull Request\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freactmore%2Fsupport-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freactmore%2Fsupport-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freactmore%2Fsupport-adapter/lists"}