PHPackages                             grantholle/reaction - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. grantholle/reaction

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

grantholle/reaction
===================

Get a reaction in Laravel 5

1.2(8y ago)110MITPHPPHP &gt;=5.4.0

Since Jul 14Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (4)Used By (0)

Reaction
========

[](#reaction)

> Generates a reaction based on a type of event (positive, bad, unsafe)

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

[](#installation)

Include this package via Composer...

```
composer require grantholle/reaction
```

Add the service provider in `config/app.php`...

```
'providers' => [
  ...
  Some\Kind\Of\ReactionServiceProvider::class
  ...
];
```

Usage
-----

[](#usage)

Simply use the `react()` helper function to generate a random reaction. I like to pair it with Laracast's [Flash](https://github.com/laracasts/flash) package for easy, fun flash messaging.

```
react('positive'); // Boom!
react('bad'); // Yikes!
react('unsafe'); // Heads up!

// Using chaining
react()->positive(); // Great!
react()->bad(); // Darn!
react()->unsafe(); // Easy!

// Don't wrap it in
react('positive', false);
react(null, false)->positive();
```

💯

```
// A controller function, for example
public function update(Request $request, Model $model)
{
  $model->update($request->all());
  $message = react()->positive() . ' The model has been updated successfully.';
  // Super! The model has been updated successfully.

  flash($message)->success();

...
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~0 days

Total

3

Last Release

3272d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/57ed974235b4a23e6aaf9d9039bff2b0d1268edc0e44ebab6e60e4bf1e6eb144?d=identicon)[grantholle](/maintainers/grantholle)

---

Top Contributors

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

---

Tags

laravel-5-packagelaravelpackage

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/grantholle-reaction/health.svg)

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

###  Alternatives

[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.2M17](/packages/directorytree-ldaprecord-laravel)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6783.6k5](/packages/hasinhayder-tyro)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1542.1k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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