jadb / namecheap
Namecheap SDK for PHP5
0.0.1
2014-10-05 06:56 UTC
Requires
- cakephp/utility: master-dev
- guzzlehttp/command: 0.6.*
- guzzlehttp/guzzle: 4.*
- guzzlehttp/guzzle-services: 0.3.*
- sabre/xml: master-dev
Requires (Dev)
- mockery/mockery: 0.*
- phpunit/phpunit: 4.*
This package is auto-updated.
Last update: 2024-10-28 02:05:13 UTC
README
Un-official (and incomplete) library to consume the Namecheap API.
DISCLAIMER: USE AT YOUR OWN RISK
$nc = new \Namecheap\Client(
'apiuser', // namecheap api user
'apikey', // namecheap api key
'username', // namecheap username
'127.0.0.1', // server ip
true, // use sandbox, false for live
);
$nc->domains()->check(['DomainList' => 'github.com']);
$nc->domains()->check(['DomainList' => 'google.com,yahoo.com,msn.com']);
$nc->domains()->getTldList();
$nc->domains()->getInfo(['DomainName' => 'github.com']); // must be user's owned domain