ilzrv/fireable
Larablocks Analysis
ilzrv/fireable works with Laravel 10 and 11 (latest release v1.0.0, Nov 15, 2024), all past end of life (the last on Mar 12, 2026): no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 10 and 11, past end of life since Mar 12, 2026
- No release in the last 12 months (last: Nov 15, 2024)
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Nov 15, 2024.
- No releases in the last 12 months.
- First released: Nov 15, 2024.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 29, 2026.
| Install | |
|---|---|
composer require ilzrv/fireable |
|
| Latest Version: | v1.0.0 |
| PHP: | ^8.1 |
| Laravel: | 10 · 11 |
| License: | MIT |
| Last Updated: | Nov 15, 2024 |
| Links: | GitHub · Packagist |
Fireable
An elegant way to trigger events based on attributes changes.
Installation
Install package through Composer
composer require ilzrv/fireable
Usage
- Add the
FireableAttributestrait to your model - Define the attributes with specified events via the
protected $fireableAttributesproperty on the model
Example
Let's say we need to trigger specified events when specific model attributes are updated.
For example, you need to notify user when he gets an "approved" status. Instead of observing model's "dirty" attributes and firing events manually we could do it more elegantly by assigning specified events to attributes or even certain values of attributes.
class User extends Authenticatable
{
use FireableAttributes;
protected $fireableAttributes = [
'status' => [
'approved' => UserApproved::class,
'rejected' => UserRejected::class,
],
];
}
Also you may not need to track certain values, so you can assign an event directly to an attribute itself. So, in the example below, each time the user's email is changed, the appropriate event will be fired.
class User extends Authenticatable
{
use FireableAttributes;
protected $fireableAttributes = [
'email' => EmailUpdated::class,
];
}
Change log
Please see the changelog for more information on what has changed recently.
Testing
composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
License
license. Please see the license file for more information.
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.0.0 | ^8.1 | ^10.0 || | MIT |