Very thanks to Ahmet Bora. This repository based on his ResellerClub PHP SDK repository.
composer.json
:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/amirkhiz/resellerclub-php-api.git"
}
],
"require": {
"amirkhiz/resellerclub-php-api": "dev-master"
}
Note: All functions return raw response from ResellerClubs's API. (This will change in the future)
$resellerClub = new \habil\ResellerClub\ResellerClub('<userId>', '<apiKey>', true); // Last argument is for testMode.
// Get Available TLDs
$resellerClub->domains()->getTLDs();
// Check Domain Availability
$resellerClub->domains()->available(['google', 'example'], ['com', 'net']); // This will check google.com, google.net, example.com and example.net
Currently all of the domains, contacts and customers API are available.