A Laravel package for converting URLs in a given string of text into clickable links.
- PHP >= 8.2
- Laravel >= 11.0
composer require osiemsiedem/laravel-autolink
use OsiemSiedem\Autolink\Facades\Autolink;
echo Autolink::convert('Check this out - www.example.com. This will be ignored - <a href="http://example.com">My awesome website</a>.');
// Check this out - <a href="http://www.example.com">example.com</a>. This will be ignored - <a href="http://example.com">My awesome website</a>.
./vendor/bin/phpunit
This package is based on the Rinku library.
Please see the LICENSE.md file.