PHPackages                             tsfcorp/uifeedback - 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. tsfcorp/uifeedback

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

tsfcorp/uifeedback
==================

Display messages

v0.0.15(1mo ago)13.7k↓50%MITPHPPHP ^7.0|^8.0CI failing

Since Nov 10Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/thesoftwarefarm/uifeedback)[ Packagist](https://packagist.org/packages/tsfcorp/uifeedback)[ Docs](https://github.com/tsfcop/lister)[ RSS](/packages/tsfcorp-uifeedback/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (15)Used By (0)

Display messages library
========================

[](#display-messages-library)

Makes it easy to give a visual feedback to user

Installation
============

[](#installation)

Require this package in your `composer.json`. Run the following command:

```
composer require tsfcorp/uifeedback
```

After updating composer, the service provider will automatically be registered and enabled, along with the facade, using Auto-Discovery

Next step is to run the artisan command to bring the config into your project

```
php artisan vendor:publish --provider="TsfCorp\UiFeedback\UiFeedbackServiceProvider" --tag=config
```

Update `config/uifeedback.php`

Usage Instructions
==================

[](#usage-instructions)

This library is build to work by default with Bootstrap 4.

You can add new messages wherever you'd like in you application, like this:

```
UiFeedback::set(MessageFormat::SUCCESS, 'message');
```

`set` method has 3 parameters:

- message format: a string represeinting the class that will be added to the HTML container
- message: a string represeinting the class that will be added to the HTML container
- close button (optional, default: true): whether to display or not the close button for the alert

Message format has the following options, but you can specify there whatever class you'd like and customise the CSS in your app.

Message FormatValuePRIMARYprimarySECONDARYsecondarySUCCESSsuccessDANGERdangerWARNINGwarningINFOinfoLIGHTlightDARKdark### Convenience methods

[](#convenience-methods)

You can set a message using the following pattern for supported message formats:

```
UiFeedback::success('success message');
UiFeedback::danger('error message');
```

### Display messages

[](#display-messages)

In order to display the messages, you can add the following line in your views:

```
{!! \TsfCorp\UiFeedback\Facades\UiFeedback::get() !!}
```

### Output messages

[](#output-messages)

If you'd like to display a formatted message right away, you can use the following in your views:

```
{!! \TsfCorp\UiFeedback\Facades\UiFeedback::format(\TsfCorp\UiFeedback\MessageFormat::SUCCESS, 'message'); !!}
```

### Group messages

[](#group-messages)

If you set multiple messages of the same type (for example SUCCESS), a new alert will be generated for each message. You can change this behaviour by setting the `group_errors` to `true`. This way messages of the same type will be displayed in the same alert box.

### Session errors

[](#session-errors)

UiFeedback can capture validation errors and display these along with other messages you set. This is the default behaviour. It can be changed in the config: `capture_validation_errors`

### Change output format

[](#change-output-format)

In order to change the format for a message you need to publish the view used:

```
php artisan vendor:publish --provider="TsfCorp\UiFeedback\UiFeedbackServiceProvider" --tag=views
```

Then you can edit the published view in: `resources/views/vendor`

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance90

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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

Every ~234 days

Recently: every ~379 days

Total

14

Last Release

53d ago

PHP version history (4 changes)v0.0.1PHP &gt;=7.0

v0.0.5PHP &gt;=7.1

v0.0.8PHP &gt;=7.1|8.\*

v0.0.13PHP ^7.0|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d64b5544beade37e7660b482f79936ee03ee094e3599f9883ea2fb5848d7fe8c?d=identicon)[tsfcorp](/maintainers/tsfcorp)

---

Top Contributors

[![marianperca](https://avatars.githubusercontent.com/u/673596?v=4)](https://github.com/marianperca "marianperca (12 commits)")[![ionutantohi](https://avatars.githubusercontent.com/u/4609521?v=4)](https://github.com/ionutantohi "ionutantohi (4 commits)")

---

Tags

phplaravelmessages

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tsfcorp-uifeedback/health.svg)

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

###  Alternatives

[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[monicahq/laravel-cloudflare

Add Cloudflare ip addresses to trusted proxies for Laravel.

3372.7M4](/packages/monicahq-laravel-cloudflare)[kra8/laravel-snowflake

Snowflake for Laravel and Lumen.

188402.3k6](/packages/kra8-laravel-snowflake)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[kim/activity

Easily retrieve a list of users and guests that are online.

12830.4k](/packages/kim-activity)

PHPackages © 2026

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