PHPackages                             sliver/flash-format - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. sliver/flash-format

ActiveLibrary[Queues &amp; Workers](/categories/queues)

sliver/flash-format
===================

Code snippet to provide a standard format for flash messages.

v0.0.1(4mo ago)036MITPHPPHP ^8.0

Since Dec 21Pushed 4mo agoCompare

[ Source](https://github.com/GiromettaMarco/flash-format)[ Packagist](https://packagist.org/packages/sliver/flash-format)[ Docs](https://github.com/GiromettaMarco/flash-format)[ RSS](/packages/sliver-flash-format/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Flash Format
============

[](#flash-format)

Code snippet to provide a standard format for flash messages.

The Format
----------

[](#the-format)

```
array{
  title: string,
  description: ?string,
  level: ?string
}
```

Installation
------------

[](#installation)

```
composer require sliver/flash-format

```

Usage
-----

[](#usage)

```
use Sliver\Format\FlashMessage;

$simple = new FlashMessage('This is a flash message');

$structured = new FlashMessage([
  'title' => 'Approved!',
  'description' => 'Your submission has been approved.',
  'level' => 'success',
]);
```

Serialization
-------------

[](#serialization)

The `FlashMessage` class has a `toArray` method for serialization.

```
use Sliver\Format\FlashMessage;

$message = new FlashMessage('I can be an array');

print_r($message->toArray());
// Array
// (
//     [title] => I can be an array
//     [description] =>
//     [level] =>
// )
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance73

Regular maintenance activity

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

149d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1666c97dcce04d0845da98d085f90ea97428b35382f0585ea2a3d56fc06c6419?d=identicon)[Girometta Marco](/maintainers/Girometta%20Marco)

---

Top Contributors

[![GiromettaMarco](https://avatars.githubusercontent.com/u/14976285?v=4)](https://github.com/GiromettaMarco "GiromettaMarco (3 commits)")

---

Tags

messageformatstandardflashsnippet

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sliver-flash-format/health.svg)

```
[![Health](https://phpackages.com/badges/sliver-flash-format/health.svg)](https://phpackages.com/packages/sliver-flash-format)
```

###  Alternatives

[php-amqplib/php-amqplib

Formerly videlalvaro/php-amqplib. This library is a pure PHP implementation of the AMQP protocol. It's been tested against RabbitMQ.

4.6k125.3M879](/packages/php-amqplib-php-amqplib)[aws/aws-php-sns-message-validator

Amazon SNS message validation for PHP

21421.5M91](/packages/aws-aws-php-sns-message-validator)

PHPackages © 2026

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