phppackage / domain-check
This package is abandoned and no longer maintained.
No replacement package was suggested.
Domain availability checker.
v1.0.0
2018-02-01 20:49 UTC
Requires
- php: ~7.0
Requires (Dev)
- php-mock/php-mock-phpunit: ^2.0
- phpunit/phpunit: 6.4.4
This package is not auto-updated.
Last update: 2020-01-24 17:32:52 UTC
README
WIP: Domain availability checker.
Install
Require this package with composer using the following command:
$ composer require phppackage/domain-check
Usage example:
<?php
require 'vendor/autoload.php';
use \PHPPackage\DomainCheck\Checker;
// domain name (without tlds)
$name = 'mynewdomainnamexyz';
// define tlds
$tlds = [
'com',
'net'
];
// init checker class
$checker = new Checker($tlds);
/**
* Lookup all tlds for a given name, e.g domain.com, domain.net ...
* @return array
*/
$result = $checker->availability('domain');
Array
(
[mynewdomainnamexyz] => Array
(
[com] => 1
[net] => 1
)
)
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.