{"id":19020175,"url":"https://github.com/kanata-php/sdk-utils","last_synced_at":"2026-06-23T13:01:50.241Z","repository":{"id":62138280,"uuid":"558165889","full_name":"kanata-php/sdk-utils","owner":"kanata-php","description":"Package to help build API SDKs","archived":false,"fork":false,"pushed_at":"2022-12-06T02:52:34.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-03T05:17:22.254Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kanata-php.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}},"created_at":"2022-10-27T02:33:29.000Z","updated_at":"2022-10-27T02:35:40.000Z","dependencies_parsed_at":"2023-01-24T03:46:10.619Z","dependency_job_id":null,"html_url":"https://github.com/kanata-php/sdk-utils","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/kanata-php/sdk-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanata-php%2Fsdk-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanata-php%2Fsdk-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanata-php%2Fsdk-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanata-php%2Fsdk-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kanata-php","download_url":"https://codeload.github.com/kanata-php/sdk-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanata-php%2Fsdk-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34690771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"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":"2024-11-08T20:16:01.375Z","updated_at":"2026-06-23T13:01:50.213Z","avatar_url":"https://github.com/kanata-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Sdk Utilities\n\nThis is a helper package to provide tools for SDKs.\n\n## Usage\n\n```php\nuse KanataSdk\\Sdk;\nuse KanataSdk\\Request;\nuse KanataSdk\\Response;\n\nclass ExampleSdk extends Sdk\n{\n    public function getResource(): Response\n    {\n        return $this-\u003eget(\n            url: $this-\u003eoptions['api-url'] . '/api/resource',\n        );\n    }\n}\n\n$token = 'some-token-here';\n$options = [\n    'api-url' =\u003e 'https://some-url',\n];\n$exampleSdk = new ExampleSdk($token, $options);\n$response = $exampleSdk-\u003egetResource();\n```\n\n\u003e **Info:** this SDK at this moment expects the API to expect the `Token` at the header `Authorization: Bearer $token` model.\n\n## Installation\n\n```shell\ncomposer require kanata-php/sdk-util\n```\n\n## Motivation\n\nThe routine of building clients for APIs always goes through the same steps. Some of those are contained in this package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanata-php%2Fsdk-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanata-php%2Fsdk-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanata-php%2Fsdk-utils/lists"}