1. Go to this page and download the library: Download asika/autolink 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/ */
asika / autolink example snippets
use Asika\Autolink\AutolinkStatic;
$text = AutolinkStatic::convert($text);
$text = AutolinkStatic::convertEmail($text);
use Asika\Autolink\Autolink;
$autolink = new Autolink();
This is Simple URL:
<a href="http://www.google.com.tw" class="center">http://www.google.com.tw</a>
This is SSL URL:
<a href="https://www.google.com.tw" class="center">https://www.google.com.tw</a>