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

This package is not auto-updated.

Last update: 2020-01-24 17:32:52 UTC


README

Build Status StyleCI Scrutinizer Code Quality Code Coverage Packagist Version Packagist Downloads

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.