PHP code example of lucifer / domain

1. Go to this page and download the library: Download lucifer/domain 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/ */

    

lucifer / domain example snippets


$url_info = \Lucifer\Domain::parseUrl('baidu.com');

var_dump($url_info);

https://github.com/true/php-punycode