php-extended / php-domain-object
A library that implements the php-extended/php-domain-interface library
7.0.7
2024-12-08 21:50 UTC
Requires
- php: >=8.0
- php-extended/php-domain-interface: ^7
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-08 20:51:22 UTC
README
An implementation of the php-extended/php-domain-interface library.
Installation
The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.
- Download
composer.phar
from their website. - Then run the following command to install this library as dependency :
php composer.phar php-extended/php-domain-object ^7
Basic Usage
To use this interface, you may do the following :
$domain = new Domain('www.example.com');
$parent = $domain->getParent(); // example.com
$domain->append('xn--123abc'); // xn--123abc.www.example.com
License
MIT (See license file).