PHP code example of vanchelo / external-urls
1. Go to this page and download the library: Download vanchelo/external-urls 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/ */
vanchelo / external-urls example snippets
// composer autoloader
ExternalUrls;
//use Vanchelo\ExternalUrls\Transport\PhpTransport;
//use Vanchelo\ExternalUrls\Transport\CurlTransport;
//use Vanchelo\ExternalUrls\Transport\GoutteTransport;
//use Vanchelo\ExternalUrls\Transport\GuzzleTransport;
$externalLinks = new ExternalUrls();
$links = $externalLinks->go('http://www.example.com');
print_r($links->all());