osiemsiedem / laravel-autolink
A Laravel package for converting URLs in a given string of text into clickable links.
10.0.0
2026-03-26 14:02 UTC
Requires
- php: ^8.3
- illuminate/support: ^13.0
- spatie/laravel-html: ^3.13
- symfony/polyfill-mbstring: ^1.33
Requires (Dev)
- laravel/pint: ^1.27
- mockery/mockery: ^1.6
- phpunit/phpunit: ^12.5.12
README
A Laravel package for converting URLs in a given string of text into clickable links.
Requirements
- PHP >= 8.3
- Laravel >= 13.0
Installation
composer require osiemsiedem/laravel-autolink
Usage
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>.
Testing
./vendor/bin/phpunit
Credits
This package is based on the Rinku library.
License
Please see the LICENSE.md file.