{"id":37365835,"url":"https://github.com/chrometoasters/sitehost-api-client","last_synced_at":"2026-01-16T04:52:00.271Z","repository":{"id":56952624,"uuid":"221586764","full_name":"chrometoasters/sitehost-api-client","owner":"chrometoasters","description":"SiteHost's API client (work in progress, but should be stable)","archived":false,"fork":false,"pushed_at":"2020-02-18T03:41:06.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-01-14T14:50:34.007Z","etag":null,"topics":["api","client","client-library","php","sitehost"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrometoasters.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":null,"code_of_conduct":"code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-14T01:40:57.000Z","updated_at":"2022-08-18T01:40:47.000Z","dependencies_parsed_at":"2022-08-21T03:40:22.421Z","dependency_job_id":null,"html_url":"https://github.com/chrometoasters/sitehost-api-client","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/chrometoasters/sitehost-api-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrometoasters%2Fsitehost-api-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrometoasters%2Fsitehost-api-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrometoasters%2Fsitehost-api-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrometoasters%2Fsitehost-api-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrometoasters","download_url":"https://codeload.github.com/chrometoasters/sitehost-api-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrometoasters%2Fsitehost-api-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","client","client-library","php","sitehost"],"created_at":"2026-01-16T04:51:59.582Z","updated_at":"2026-01-16T04:52:00.242Z","avatar_url":"https://github.com/chrometoasters.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple PHP client for SiteHost's API\n\n## Overview\n\nThis is a work in progress piece of code that may or may not get extended further as/when needed.\n\n## API documentation\n\n[SiteHost's API documentation](https://docs.sitehost.nz/api/)\n\n## Features\n\n- Get API info\n- Get cloud stack info\n- Update cloud stack info\n- Get API job info\n\n## Installation\n\n`composer install chrometoaster/sitehost-api-client:~0.1`\n\n## Example usage\n\nIt is recommended to define the API key and the client ID as environment variables, e.g. through your cloud container\nenvironment variables configuration or via your virtual host configuration.\n\n```php\nuse Chrometoaster\\SiteHost\\API\\Client as SiteHostAPIClient;\n\n$env_api_key   = getenv('SITEHOST_API_KEY');\n$env_client_id = getenv('SITEHOST_CLIENT_ID');\n\n// create a client\n$client = new SiteHostAPIClient($env_api_key, $env_client_id);\n\n// read cloud stack info\n$info = $client-\u003egetStackInfo('ex-myserver', 'abc123def456ab12');\n\n// check the response is valid and has data\nif ($info-\u003eisValid()) {\n    // work with the information here\n    ...\n    ... \n}\n```\n\n## TODO\n\n- Implement methods and handling for other API endpoints\n- Add tests.\n\n## Licence\n\nBSD-3-Clause, see the [licence](licence.md) for details.\n\n## Contributing\n\nIn general, please be nice to each other. For more details see the [Code of Conduct](code-of-conduct.md).\n\n### Code guidelines\n\nThis project follows the standards defined in:\n\n* [PSR-1](http://www.php-fig.org/psr/psr-1/)\n* [PSR-2](http://www.php-fig.org/psr/psr-2/)\n* [RSR-4](http://www.php-fig.org/psr/psr-4/)\n\nBefore submitting a PR, please run the script below to lint and update the code according to the standards above.\n\n```bash\ncomposer run full-check\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrometoasters%2Fsitehost-api-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrometoasters%2Fsitehost-api-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrometoasters%2Fsitehost-api-client/lists"}