PHP code example of xandco / domainparser
1. Go to this page and download the library: Download xandco/domainparser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xandco / domainparser example snippets
php
// config/app.php
'providers' => [
DomainParser\DomainParserServiceProvider::class,
];
bash
$ php artisan vendor:publish --provider="DomainParser\DomainParserServiceProvider"
php
use DomainParser\DomainParser;
...
$domainParser = new DomainParser( $options = [] );
php
$domainParser->parse( 'www.example.com' );