camoo / hosting
API Camoo.Hosting
v1.4.0
2024-05-07 07:28 UTC
Requires
- php: >=8.0
- ext-curl: *
- ext-json: *
- ext-openssl: *
- camoo/curl-http-client: ^1.0.2
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.5
Suggests
- phpunit/phpunit: Allows automated tests to be run without system-wide install.
README
CAMOO SARL is an ANTIC Accredited Registrar in Cameroon. You can use our API to check the availabiliity or to register cameroonian domain name extensions such as .CM, .CO.CM, .EDU.CM, .NET.CM or .COM.CM
This is only an example library, that can be used to send API request to camoo.hosting! You can check our Documentation for more.
Requirement
CAMOO.HOSTING API client for PHP requires version 5.6 and above
Example
use Camoo\Hosting\Modules\Domains; // set your token salt for the local cache. // you can visit this link https://api.wordpress.org/secret-key/1.1/salt/ to pickup one define('ACCESS_TOKEN_SALT', 'Your super secret Key here'); // SET your CAMOO.HOSTING creadentials define('cm_email', 'you@gmail.com'); define('cm_passwd', '2BSe3@pMRbCnV>J(G'); $oDomain = new Domains(); $oResponse = $oDomain->checkAvailability('example', 'cm'); // Get Entity var_dump($oResponse->getEntity()); // OR get Array instead of entity var_dump($oResponse->getJson());