PHPackages                             lionar/messages - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lionar/messages

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lionar/messages
===============

the base rules for lionar messages.

010PHP

Since Apr 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/lionar/messages)[ Packagist](https://packagist.org/packages/lionar/messages)[ RSS](/packages/lionar-messages/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Lionar messages
===============

[](#lionar-messages)

Lionar messages provides a secure layer to create valid messages. The following validation rules are automatically applied when using this package.

Validation rules
----------------

[](#validation-rules)

- A paragraph consists of maximum 140 characters
- A title consists of maximum 70 characters
- Any html provided inside a message is automatically escaped with htmlentities

Usage
-----

[](#usage)

```
use Messages\Message;
use Messages\Paragraph;
use	Messages\Text;

require __DIR__ . '/vendor/autoload.php';

$text = new Text;
$paragraph = new Paragraph;

$paragraph->with( $text( 'Our new site is online, go take a look: http://eyedouble.nl' ) );

$message = new Message( $paragraph );

echo $message->body; // 'Our new site is online, go take a look: http://eyedouble.nl'
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/40f006715c13f6e034c716c43da67fd4a17b7626491de9dd666e847cfb06b2a9?d=identicon)[lionar](/maintainers/lionar)

---

Top Contributors

[![lionar](https://avatars.githubusercontent.com/u/12624971?v=4)](https://github.com/lionar "lionar (5 commits)")

### Embed Badge

![Health badge](/badges/lionar-messages/health.svg)

```
[![Health](https://phpackages.com/badges/lionar-messages/health.svg)](https://phpackages.com/packages/lionar-messages)
```

###  Alternatives

[spatie/string

String handling evolved

5604.6M24](/packages/spatie-string)[components/jqueryui

jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. Whether you're building highly interactive web applications or you just need to add a date picker to a form control, jQuery UI is the perfect choice.

1635.8M59](/packages/components-jqueryui)[swentel/nostr-php

Nostr helper library for PHP

6728.9k4](/packages/swentel-nostr-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
