{"id":27999021,"url":"https://github.com/dnsimple/dnsimple-php","last_synced_at":"2025-05-08T22:55:48.734Z","repository":{"id":3409223,"uuid":"48296431","full_name":"dnsimple/dnsimple-php","owner":"dnsimple","description":"The DNSimple API client for PHP.","archived":false,"fork":false,"pushed_at":"2025-04-15T12:10:32.000Z","size":389,"stargazers_count":10,"open_issues_count":1,"forks_count":7,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-05-08T22:55:38.411Z","etag":null,"topics":["api","api-client","dnsimple","dnsimple-api","dnsimple-policy-eng","dnsimple-policy-group-apiclient","dnsimple-policy-triage-application","php"],"latest_commit_sha":null,"homepage":"https://developer.dnsimple.com/","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/dnsimple.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-12-19T20:38:40.000Z","updated_at":"2025-04-15T12:10:35.000Z","dependencies_parsed_at":"2023-12-13T05:22:50.187Z","dependency_job_id":"46c3a9f0-70a9-47d4-b9f6-af449ba69fae","html_url":"https://github.com/dnsimple/dnsimple-php","commit_stats":{"total_commits":128,"total_committers":16,"mean_commits":8.0,"dds":0.6875,"last_synced_commit":"9e225730bd3340b1fd047ead3542e189b59e5efe"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnsimple%2Fdnsimple-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnsimple%2Fdnsimple-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnsimple%2Fdnsimple-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnsimple%2Fdnsimple-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnsimple","download_url":"https://codeload.github.com/dnsimple/dnsimple-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253160801,"owners_count":21863627,"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","dnsimple","dnsimple-api","dnsimple-policy-eng","dnsimple-policy-group-apiclient","dnsimple-policy-triage-application","php"],"created_at":"2025-05-08T22:55:47.815Z","updated_at":"2025-05-08T22:55:48.721Z","avatar_url":"https://github.com/dnsimple.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DNSimple PHP Client\n\nA PHP client for the [DNSimple API v2](https://developer.dnsimple.com/v2/).\n\n[![Build Status](https://github.com/dnsimple/dnsimple-php/actions/workflows/ci.yml/badge.svg)](https://github.com/dnsimple/dnsimple-php/actions/workflows/ci.yml)\n\n## Documentation\n\n- [dnsimple-php Packagist](https://packagist.org/packages/dnsimple/dnsimple)\n- [DNSimple API documentation](https://developer.dnsimple.com/)\n- [DNSimple API examples repository](https://github.com/dnsimple/dnsimple-api-examples)\n- [DNSimple support documentation](https://support.dnsimple.com/)\n\n## Requirements\n\n- PHP ^8.2\n\n## Getting Started\n\n1. **Sign up for DNSimple** – Before you begin, you need to\n   sign up for a [DNSimple](https://dnsimple.com) account and retrieve your [DNSimple API token](https://developer.dnsimple.com/v2/#authentication).\n2. **Install** – Using [Composer] is the recommended way to install.\n   The PHP client is available via [Packagist] under the [`dnsimple/dnsimple`] package. If Composer is installed globally on your system, you can run the following in the base directory of your project to add the package as a dependency:\n\n   ```shell\n   composer require dnsimple/dnsimple\n   ```\n\n## Usage\n\nThis library is a PHP client you can use to interact with the [DNSimple API v2](https://developer.dnsimple.com/v2/). Here are some examples.\n\n```php\nuse Dnsimple\\Client;\n\n$client = new Client(\"API_TOKEN\");\n\n$response = $client-\u003eidentity-\u003ewhoami();\n$whoami = $response-\u003egetData();\n$account_id = $whoami-\u003eaccount-\u003eid;\n\n$response = $client-\u003edomains-\u003elistDomains($account_id);\n$domains = $response-\u003egetData();\n```\n\n### Sandbox Environment\n\nWe highly recommend testing against our [sandbox environment](https://developer.dnsimple.com/sandbox/) before using our\nproduction environment. This will allow you to avoid real purchases, live charges on your credit card, and reduce the\nchance of your running up against rate limits.\n\nThe client supports both the production and sandbox environment. To switch to sandbox pass the sandbox API host using\nthe `base_uri` option when you construct the client:\n\n```php\nuse Dnsimple\\Client;\n\n$client = new Client(\"API_TOKEN\", [\"base_uri\" =\u003e 'https://api.sandbox.dnsimple.com']);\n```\n\nYou will need to ensure that you are using an access token created in the sandbox environment.\nProduction tokens will *not* work in the sandbox environment.\n\n## Contributing\n\nContibutions are welcomed. Please open an issue to discuss the changes before opening a PR. For more details on how to do development please refer to [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## License\n\nCopyright (c) 2015-2024 DNSimple Corporation. This is Free Software distributed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnsimple%2Fdnsimple-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnsimple%2Fdnsimple-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnsimple%2Fdnsimple-php/lists"}