osiemsiedem/laravel-autolink
Autolink for Laravel
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.
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 10.0.0 | ^8.3 | ^13.0 | MIT | |
| 9.0.0 | ^8.2 | ^12.0 | MIT | |
| 8.0.0 | ^8.2 | ^11.0 | MIT | |
| 7.1.0 | ^8.1 | ^10.0 | MIT | |
| 7.0.0 | ^8.1 | ^10.0 | MIT | |
| 6.0.0 | ^8.0 | ^9.0 | MIT | |
| 5.2.0 | ^7.3| | ^8.0 | MIT | |
| 5.1.0 | ^7.3| | ^8.0 | MIT | |
| 5.0.0 | ^7.3 | ^8.0 | MIT | |
| 4.0.0 | ^7.2.5 | ^7.0 | MIT | |
| 3.0.2 | ^7.2 | ^6.0 | MIT | |
| 3.0.1 | ^7.2 | ^6.0 | MIT | |
| 3.0.0 | ^7.1.3 | ^6.0 | MIT | |
| 2.0.2 | ^7.1.3 | 5.5.*| | MIT | |
| 2.0.1 | ^7.1.3 | 5.5.*| | MIT | |
| 2.0.0 | ^7.1.3 | 5.5.*| | MIT | |
| 1.3.0 | ^7.1.3 | 5.5.*| | MIT | |
| 1.2.0 | ^7.1.3 | 5.5.*| | MIT | |
| 1.1.0 | ^7.1.3 | 5.5.*| | MIT | |
| 1.0.0 | ^7.1.3 | 5.5.*| | MIT |