domainvalidity / domainvalidity
Light PHP SDK to interact with the Doma(in)Validity API.
dev-master
2022-05-03 06:41 UTC
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.4
- psr/http-client: ^1.0
Requires (Dev)
- phpstan/phpstan: ^1.6
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.6
This package is auto-updated.
Last update: 2024-04-30 00:27:51 UTC
README
Light PHP SDK to interact with the Doma(in)Validity API.
Usage
<?php require_once 'vendor/autoload.php'; use Domainvalidity\Sdk\Factory; $host = Factory::make()->validate('https://api.example.com'); $host->isValid(); // true or false $host->original(); // https://api.example.com $host->host(); // 'api.example.com' $host->domain(); // example.com $host->tld(); // com