Looking to hire Laravel developers? Try LaraJobs

laravel-autolink maintained by osiemsiedem

Description
A Laravel package for converting URLs in a given string of text into clickable links.
Last update
2026/03/26 15:02 (dev-master)
License
Links
Downloads
128 813
Tags

Comments
comments powered by Disqus

Autolink for Laravel

A Laravel package for converting URLs in a given string of text into clickable links.

Requirements

  • PHP >= 8.2
  • Laravel >= 12.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.