PHP code example of agrechuha / utils

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

    

agrechuha / utils example snippets



$urlParser = new UrlParser('https://otus.ru/learning/265134/');
echo $urlParser->getHost(); // otus.ru