protasevich / messages-handler
A magical tool that will make it easy to handle chat messages
1.0.0
2021-09-19 15:05 UTC
Requires (Dev)
- phpunit/phpunit: ^9.5
README
A magical tool that will make it easy to handle chat messages
Install
$ composer require protasevich/messages-handler
Using
<?php use Protasevich\MessagesHandler; class App { public function execute($content) { $messagesHandler = new MessagesHandler(); return $messagesHandler->prepareLinks($content); } }
Possibilities
- Replace text links with real HTML note
Testing
$ php vendor/bin/phpunit