protasevich/messages-handler

A magical tool that will make it easy to handle chat messages

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/protasevich/messages-handler

1.0.0 2021-09-19 15:05 UTC

This package is auto-updated.

Last update: 2025-09-19 23:47:19 UTC


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