LaravelPackages.net
Acme Inc.
Toggle sidebar
osiemsiedem/laravel-autolink

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

147.207
13
10.0.0
About osiemsiedem/laravel-autolink

osiemsiedem/laravel-autolink is a Laravel package for a laravel package for converting urls in a given string of text into clickable links.. It currently has 13 GitHub stars and 147.207 downloads on Packagist (latest version 10.0.0). Install it with composer require osiemsiedem/laravel-autolink. Discover more Laravel packages by osiemsiedem or browse all Laravel packages to compare alternatives.

Last updated

Autolink for Laravel

Build Status Latest Stable Version License

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.

Comments