protasevich/messages-handler

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

Maintainers

Package info

github.com/m1nyasha/messages-handler

pkg:composer/protasevich/messages-handler

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.0 2021-09-19 15:05 UTC

This package is auto-updated.

Last update: 2026-03-20 00:51:11 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