{"id":32354125,"url":"https://github.com/pitchero/resellerclub","last_synced_at":"2025-10-24T10:43:46.932Z","repository":{"id":26820072,"uuid":"109160564","full_name":"Pitchero/ResellerClub","owner":"Pitchero","description":"A PHP SDK for ResellerClub’s API.","archived":false,"fork":false,"pushed_at":"2025-10-07T13:07:47.000Z","size":319,"stargazers_count":15,"open_issues_count":6,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-10-21T15:59:56.016Z","etag":null,"topics":["php","resellerclub"],"latest_commit_sha":null,"homepage":"","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/Pitchero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-11-01T17:18:20.000Z","updated_at":"2025-08-21T19:44:23.000Z","dependencies_parsed_at":"2025-10-06T04:16:23.600Z","dependency_job_id":null,"html_url":"https://github.com/Pitchero/ResellerClub","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/Pitchero/ResellerClub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pitchero%2FResellerClub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pitchero%2FResellerClub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pitchero%2FResellerClub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pitchero%2FResellerClub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pitchero","download_url":"https://codeload.github.com/Pitchero/ResellerClub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pitchero%2FResellerClub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280783847,"owners_count":26390277,"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-24T02:00:06.418Z","response_time":73,"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":["php","resellerclub"],"created_at":"2025-10-24T10:43:46.015Z","updated_at":"2025-10-24T10:43:46.927Z","avatar_url":"https://github.com/Pitchero.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ResellerClub\n[![Build Status](https://github.com/Pitchero/ResellerClub/actions/workflows/php-tests.yml/badge.svg)](https://github.com/Pitchero/ResellerClub/actions)\n\n\nA PHP SDK for [ResellerClub’s API][1].\n\n## Requirements\n* PHP \u003e= 7.0\n\n## Installation\nThis package is available through [Packagist][4]. To install in your project via\n[Composer][5]:\n\n    $ composer require pitchero/reseller-club\n\n## Example Usages\n\n### Business Emails\n[API Documentation](https://manage.resellerclub.com/kb/node/2155).\n\n#### Creating a order\n[API Documentation](https://manage.resellerclub.com/kb/node/2156)\n\n```php\ntry {\n    $api = new ResellerClub\\Api(\n         new ResellerClub\\Config(123, 'api_key', true),\n         new GuzzleHttp\\Client()\n    )\n\n    $request = new ResellerClub\\Orders\\BusinessEmails\\Requests\\BusinessEmailOrderRequest(\n        $customerId = 123,\n        $domain = 'some-domain.co.uk',\n        $numberOfAccount = 5,\n        $forNumberOfMonths = 1,\n        ResellerClub\\Orders\\InvoiceOption::noInvoice()\n    );    \n\n    $response = $api-\u003ebusinessEmailOrder()-\u003ecreate($request);\n\n    // @todo - Handle a successful response within your codebase.\n\n} catch(ResellerClub\\Exceptions\\ApiException $e) {\n    // @todo - Handle the exception within your codebase.\n}\n```\n\n#### Deleting an order\n[API Documentation](https://manage.resellerclub.com/kb/node/2162)\n\n```php\ntry {\n    $api = new ResellerClub\\Api(\n         new ResellerClub\\Config(123, 'api_key', true),\n         new GuzzleHttp\\Client()\n    );\n\n    $request = new ResellerClub\\Orders\\Order(\n        $orderId = 123\n    );\n\n    $response = $api-\u003ebusinessEmailOrder()-\u003edelete($request);\n\n    // @todo - Handle the successful response within your codebase.\n\n} catch(ResellerClub\\Exceptions\\ApiException $e) {\n    // @todo - Handle the exception within your codebase.\n}\n```\n\n#### Getting an order\n[API Documentation](https://manage.resellerclub.com/kb/node/2163)\n\n```php\ntry {\n    $api = new ResellerClub\\Api(\n         new ResellerClub\\Config(123, 'api_key', true),\n         new GuzzleHttp\\Client()\n    );\n\n    $request = new ResellerClub\\Orders\\Order(\n        $orderId = 123\n    );   \n\n    $response = $api-\u003ebusinessEmailOrder()-\u003eget($request);\n\n    // @todo - Handle the successful response within your codebase.\n\n} catch(ResellerClub\\Exceptions\\ApiException $e) {\n    // @todo - Handle the exception within your codebase.\n}\n```\n\n#### Renewing an order\n[API Documentation](https://manage.resellerclub.com/kb/node/2157)\n\n```php\ntry {\n    $api = new ResellerClub\\Api(\n         new ResellerClub\\Config(123, 'api_key', true),\n         new GuzzleHttp\\Client()\n    );\n\n    $request = new ResellerClub\\Orders\\BusinessEmails\\Requests\\RenewRequest(\n        new ResellerClub\\Orders\\Order(\n           $orderId = 123\n        ),\n        $months = 1,\n        $numberOfAccounts = 1,\n        ResellerClub\\Orders\\InvoiceOption::noInvoice()\n    );\n\n    $response = $api-\u003ebusinessEmailOrder()-\u003erenew($request);\n\n    // @todo - Handle the successful response within your codebase.\n\n} catch(ResellerClub\\Exceptions\\ApiException $e) {\n    // @todo - Handle the exception within your codebase.\n}\n```\n\n#### Add email account to a business email order\n[API Documentation](https://manage.resellerclub.com/kb/node/2158)\n\n```php\ntry {\n    $api = new ResellerClub\\Api(\n         new ResellerClub\\Config(123, 'api_key', true),\n         new GuzzleHttp\\Client()\n    );\n\n    $request = new ResellerClub\\Orders\\BusinessEmails\\Requests\\AddEmailAccountRequest(\n        new ResellerClub\\Orders\\Order(\n           $orderId = 123\n        ),\n        $numberOfAccounts = 1,\n        ResellerClub\\Orders\\InvoiceOption::noInvoice()\n    );\n\n    $response = $api-\u003ebusinessEmailOrder()-\u003eaddEmailAccounts($request);\n\n    // @todo - Handle the successful response within your codebase.\n\n} catch(ResellerClub\\Exceptions\\ApiException $e) {\n    // @todo - Handle the exception within your codebase.\n}\n```\n\n\n#### Delete email account from an existing business email order\n[API Documentation](https://manage.resellerclub.com/kb/node/2159)\n\n```php\ntry {\n    $api = new ResellerClub\\Api(\n         new ResellerClub\\Config(123, 'api_key', true),\n         new GuzzleHttp\\Client()\n    );\n\n    $request = new ResellerClub\\Orders\\BusinessEmails\\Requests\\DeleteEmailAccountRequest(\n        new ResellerClub\\Orders\\Order(\n           $orderId = 123\n        ),\n        $numberOfAccounts = 1\n    );\n\n    $response = $api-\u003ebusinessEmailOrder()-\u003edeleteEmailAccounts($request);\n        \n    // @todo - Handle the successful response within your codebase.\n\n} catch(ResellerClub\\Exceptions\\ApiException $e) {\n    // @todo - Handle the exception within your codebase.\n}\n```\n\n### Email Accounts\n[API Documentation](https://manage.resellerclub.com/kb/node/1034).\n\n#### Creating an email account\n[API Documentation](https://manage.resellerclub.com/kb/node/1037)\n\n```php\ntry {\n        $api = new ResellerClub\\Api(\n             new ResellerClub\\Config(123, 'api_key', true),\n             new GuzzleHttp\\Client()\n        );\n\n        $request = ResellerClub\\Orders\\EmailAccounts\\Requests\\CreateRequest(\n            ResellerClub\\Orders\\Order(\n               $orderId = 123\n            ),\n            ResellerClub\\EmailAddress(\n               $email = 'john.doe@some-domain.co.uk'\n            ),\n            string $password,\n            ResellerClub\\EmailAddress(\n               $notificationsEmail = 'john.doe@backup-email.co.uk'\n            ),\n            $firstName = 'John',\n            $lastName = 'Doe',\n            $countryCode = 'UK',\n            $languageCode = 'en'\n        );\n\n        $response = $api-\u003eemailAccount()-\u003ecreate($request);\n\n        // @todo - Handle the successful response within your codebase.\n\n} catch(ResellerClub\\Exceptions\\ApiException $e) {\n    // @todo - Handle the exception within your codebase.\n}\n```\n\n#### Deleting an email account\n[API Documentation](https://manage.resellerclub.com/kb/node/1049)\n\n```php\ntry {\n        $api = new ResellerClub\\Api(\n             new ResellerClub\\Config(123, 'api_key', true),\n             new GuzzleHttp\\Client()\n        );\n\n        $request = ResellerClub\\Orders\\EmailAccounts\\Requests\\DeleteRequest(\n            ResellerClub\\Orders\\Order(\n                $orderId = 123\n            ),   \n            ResellerClub\\EmailAddress(\n                $email = 'john.doe@some-domain.co.uk'\n            )                     \n        );\n\n        $response = $api-\u003eemailAccount()-\u003edelete($request);\n\n        // @todo - Handle the successful response within your codebase.\n\n} catch(ResellerClub\\Exceptions\\ApiException $e) {\n    // @todo - Handle the exception within your codebase.\n}\n```\n\n### Email forwarders\n\n#### Create an email forwarder\n[API Documentation](https://manage.resellerclub.com/kb/node/1038)\n\n```php\ntry {\n        $api = new ResellerClub\\Api(\n             new ResellerClub\\Config(123, 'api_key', true),\n             new GuzzleHttp\\Client()\n        );\n\n        $request = ResellerClub\\Orders\\EmailForwarders\\Requests\\CreateRequest(\n              ResellerClub\\Orders\\Order(\n                 $orderId = 123\n              ),   \n              ResellerClub\\EmailAddress(\n                $email = 'john.doe@some-domain.co.uk'\n              )                   \n        );\n\n        $response = $api-\u003eemailForwarder()-\u003ecreate($request);\n\n        // @todo - Handle the successful response within your codebase.\n\n} catch(ResellerClub\\Exceptions\\ApiException $e) {\n    // @todo - Handle the exception within your codebase.\n}\n```\n\n#### Deleting an email forwarder\n[API Documentation](https://manage.resellerclub.com/kb/node/1049)\n\n```php\ntry {\n        $api = new ResellerClub\\Api(\n             new ResellerClub\\Config(123, 'api_key', true),\n             new GuzzleHttp\\Client()\n        );\n\n        $request = ResellerClub\\Orders\\EmailAccounts\\Requests\\DeleteRequest(\n            ResellerClub\\Orders\\Order(\n                $orderId = 123\n            ),   \n            ResellerClub\\EmailAddress(\n                $email = 'john.doe@some-domain.co.uk'\n            )                      \n        );\n\n        $response = $api-\u003eemailForwarder()-\u003edelete($request);\n\n        // @todo - Handle the successful response within your codebase.\n\n} catch(ResellerClub\\Exceptions\\ApiException $e) {\n    // @todo - Handle the exception within your codebase.\n}\n```\n## Helpful articles from the ResellerClub knowledge base\n1. [How to create an account on the staging platform](https://manage.resellerclub.com/kb/node/173)\n1. [Where to find and regenerate an API key](https://manage.resellerclub.com/kb/node/3188)\n\n#### Add an A record\n[API Documentation](https://manage.resellerclub.com/kb/node/1093)\n\n```php\ntry {\n    $ttl = new ResellerClub\\TimeToLive(86400);\n    $request = new ResellerClub\\Dns\\A\\Requests\\AddRequest(\n        $domain = 'another-testing-domain.com',\n        $record = 'test',\n        new ResellerClub\\IPv4Address('127.0.0.1'),\n        $ttl\n    );\n\n    $response = $api-\u003eaRecord()-\u003eadd($request);\n\n    // @todo - Handle the successful response within your codebase.\n\n} catch(ResellerClub\\Exceptions\\ApiException $e) {\n    // @todo - Handle the exception within your codebase.\n}\n```\n\n#### Update a CNAME record\n[API Documentation](https://manage.resellerclub.com/kb/node/1101)\n\n```php\ntry {\n    $ttl = new ResellerClub\\TimeToLive(86400);\n    $request = new ResellerClub\\Dns\\Cname\\Requests\\UpdateRequest(\n        $domain = 'your.com',\n        $record = 'www',\n        $currentValue = 'cname.oldservice.com',\n        $newValue = 'cname.newservice.com',\n        $ttl\n    );\n\n    $response = $api-\u003ecnameRecord()-\u003eupdate($request);\n\n    // @todo - Handle the successful response within your codebase.\n\n} catch(ResellerClub\\Exceptions\\ApiException $e) {\n    // @todo - Handle the exception within your codebase.\n}\n```\n\n## License\nLicensed under the [MIT License][2].\n\n## Issues\nIf you find an issue with this package, please open a [GitHub Issue][3].\n\n[1]: https://manage.resellerclub.com/kb/node/744\n[2]: LICENSE.md\n[3]: https://github.com/Pitchero/ResellerClub/issues/new\n[4]: https://packagist.org/packages/pitchero/reseller-club\n[5]: https://getcomposer.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpitchero%2Fresellerclub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpitchero%2Fresellerclub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpitchero%2Fresellerclub/lists"}