{"id":19081507,"url":"https://github.com/intracto/combell-api","last_synced_at":"2025-04-30T07:44:26.218Z","repository":{"id":37547626,"uuid":"111615688","full_name":"Intracto/combell-api","owner":"Intracto","description":"A client implementation of the Combell shared-hosting API","archived":false,"fork":false,"pushed_at":"2024-01-09T08:41:57.000Z","size":372,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-15T10:56:53.084Z","etag":null,"topics":[],"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/Intracto.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-22T00:08:36.000Z","updated_at":"2022-07-25T17:06:23.000Z","dependencies_parsed_at":"2024-01-09T09:40:41.800Z","dependency_job_id":"1a368b38-22bc-4e85-9574-db86760384c2","html_url":"https://github.com/Intracto/combell-api","commit_stats":{"total_commits":237,"total_committers":4,"mean_commits":59.25,"dds":0.5738396624472574,"last_synced_commit":"11add8276bd4d9aecb81a9f7e386bb474f4d896e"},"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2Fcombell-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2Fcombell-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2Fcombell-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intracto%2Fcombell-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Intracto","download_url":"https://codeload.github.com/Intracto/combell-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251664554,"owners_count":21624150,"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-09T02:36:36.493Z","updated_at":"2025-04-30T07:44:26.196Z","avatar_url":"https://github.com/Intracto.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tomcan\\combell-api\n\nThis is a Combell shared-hosting API client implementation. The goal is to provide a client library that makes it\neasy for you to interact with the Combell shared hosting public API.\n\n[![Run tests](https://github.com/Intracto/combell-api/actions/workflows/run-test.yml/badge.svg)](https://github.com/Intracto/combell-api/actions/workflows/run-test.yml)\n\n## Current status\n\nSince the Combell API is still in development and new functionality is added regularly, this library might not implement\nevery call yet. We do try to keep it up-to-date as much as possible. We keep an eye on the \n[Combell API changelog](https://api.combell.com/v2/documentation/changelog) but if there are calls missing, do let us\nknow by opening an issue or even better a pull request ;)\n\n## Usage\n\nYou can install the library through composer:\n\n```bash\ncomposer install tomcan/combell-api\n```\n\nNext, you need to include the composer autoloader. Instantiate the API object with your API key and secret, create the\ncommand objects and fire away!\n\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n\n$key = 'YOUR-API-KEY';  \n$sec = 'YOUR-API-SECRET';\n\n$api = new \\TomCan\\CombellApi\\Common\\Api(\n    new \\TomCan\\CombellApi\\Adapter\\GuzzleAdapter(),\n    new \\TomCan\\CombellApi\\Common\\HmacGenerator($key, $sec)\n);\n$cmd = new \\TomCan\\CombellApi\\Command\\Accounts\\ListAccounts();\n  \nvar_dump($api-\u003eexecuteCommand($cmd));  \n```\n\nThe command will return the data of the call, in the example above that is an array with Account objects. See the test\ndirectory for extensive examples of all the calls.\n\nIf you need information about the HTTP call, you can ask the api object about it:\n\n```php\n// return the HTTP status code. 200 -\u003e 204 indicate success, other codes typically mean failure of some sort\n$api-\u003egetStatusCode();\n\n// rate limiting headers\n$api-\u003egetRateLimitUsage();\n$api-\u003egetRateLimitRemaining();\n$api-\u003egetRateLimitReset();\n$api-\u003egetRateLimitLimit();\n```\n\nIf the command is pageable, you can get info about the paging from the command object:\n\n```php\n$cmd-\u003egetPagingSkipped();\n$cmd-\u003egetPagingTake();\n$cmd-\u003egetPagingTotalResults();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintracto%2Fcombell-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintracto%2Fcombell-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintracto%2Fcombell-api/lists"}