eonx-com/easy-notification
Larablocks Analysis
eonx-com/easy-notification works with any PHP project: the latest release (7.0.0, Dec 2, 2026) doesn't depend on Laravel.
Recommendation checks
Solid choiceSolid choice: maintained and up to date, meets 1 of 3 checks; below the bar for Recommended on use.
- Released in the last 12 months (Dec 2, 2026)
- 6,717 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Actively maintained- Last stable release: Dec 2, 2026.
- 44 releases in the last 12 months.
- First released: Aug 7, 2020.
- Monthly downloads: 6,717.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 4, 2026.
| Install | |
|---|---|
composer require eonx-com/easy-notification |
|
| Latest Version: | 7.0.0 |
| PHP: | ^8.4 |
| License: | MIT |
| Last Updated: | Dec 3, 2026 |
| Links: | GitHub · Packagist |
---eonx_docs--- title: Introduction weight: 0 ---eonx_docs---
This package is made to ease dispatching notifications within EonX Notification service, and works with this service ONLY.
Require package (Composer)
The recommended way to install this package is to use Composer:
$ composer require eonx-com/easy-notification
Configuration
In order to send notifications using the EonX Notification service, you need to register a Provider within that service. Once the Provider created, set the API URL the Provider is registered against and keep the Provider API key and external ID handy as they will be required to send messages.
See the configuration section for your framework of choice. (coming soon...)
CacheConfigFinder
This package will automatically send API requests to the EonX Notification service to fetch the configuration for your ApiKey and Provider. This will ensure your application has the latest configuration, however, this configuration can easily be cached as it doesn't change often.
This is why this package provides you with a EonX\EasyNotification\Config\CacheConfigFinder to decorate the default
config finder service and cache the found config.
The EonX\EasyNotification\Config\CacheConfigFinder implementation relies on the Symfony Cache Component so you
will need to make sure it is installed in your project.
See how to override the config caching within your framework of choice section.
Usage
Once configured this package will fetch the required configuration from the EonX Notification service and register
a EonX\EasyNotification\Client\NotificationClientInterface service into your DI container. You can then inject
this client into your own classes and send notifications:
// src/Listener/UserCreatedListener.php
namespace App\Listener;
use App\Entity\User;
use EonX\EasyNotification\Client\NotificationClientInterface;
use EonX\EasyNotification\Message\RealTimeMessage;
use EonX\EasyNotification\Provider\ConfigProviderInterface;
final class UserCreatedListener
{
/**
* @var \EonX\EasyNotification\Provider\ConfigProviderInterface
*/
private $configFinder;
/**
* @var \EonX\EasyNotification\Client\NotificationClientInterface
*/
private $client;
public function __construct(ConfigProviderInterface $configFinder, NotificationClientInterface $client)
{
$this->configFinder = $configFinder;
$this->client = $client;
}
public function created(User $user): void
{
/**
* In real use case, those values should come from configuration.
*
* For multi-tenancies application, it is a best practice to store those values against each tenancy.
*/
$config = $this->configFinder->provide('my-api-key', 'my-provider-external-id');
/**
* Topics are "channels" to send notifications to.
* Every clients subscribing to any of the topics will then receive the notification.
*/
$topics = [$user->getExternalId()]; // Good practice is to have 1 topic per user
/**
* Body is the notification contents each client will receive.
* Its structure is completely up to the application but should negotiated with subscribers.
*/
$body = [
'title' => 'Welcome!',
'body' => \sprintf('We are to have you onboard %s', $user->getUsername()),
];
$this->client
->withConfig($config) // Set config for next send
->send(RealTimeMessage::create($body, $topics)); // Send real time message
}
}
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 7.0.0 | ^8.4 | MIT | |
| 6.30.0 | ^8.2 | MIT | |
| 6.29.0 | ^8.2 | MIT | |
| 6.28.1 | ^8.2 | MIT | |
| 6.28.0 | ^8.2 | MIT | |
| 6.27.0 | ^8.2 | MIT | |
| 6.26.1 | ^8.2 | MIT | |
| 6.26.0 | ^8.2 | MIT | |
| 6.25.2 | ^8.2 | MIT | |
| 6.25.1 | ^8.2 | MIT | |
| 6.25.0 | ^8.2 | MIT | |
| 6.24.1 | ^8.2 | MIT | |
| 6.24.0 | ^8.2 | MIT | |
| 6.23.1 | ^8.2 | MIT | |
| 6.23.0 | ^8.2 | MIT | |
| 6.22.5 | ^8.2 | MIT | |
| 6.22.4 | ^8.2 | MIT | |
| 6.22.3 | ^8.2 | MIT | |
| 6.22.2 | ^8.2 | MIT | |
| 6.22.1 | ^8.2 | MIT | |
| 6.22.0 | ^8.2 | MIT | |
| 6.21.0 | ^8.2 | MIT | |
| 6.20.1 | ^8.2 | MIT | |
| 6.20.0 | ^8.2 | MIT | |
| 6.19.4 | ^8.2 | MIT | |
| 6.19.3 | ^8.2 | MIT | |
| 6.19.2 | ^8.2 | MIT | |
| 6.19.1 | ^8.2 | MIT | |
| 6.19.0 | ^8.2 | MIT | |
| 6.18.5 | ^8.2 | MIT |
Showing the latest 30 of 438. See every release on Packagist
Pre-releases (38)
| Version | Released | PHP | License |
|---|---|---|---|
| 7.0.0-alpha.2 | ^8.4 | MIT | |
| 7.0.0-alpha.1 | ^8.4 | MIT | |
| 6.0.0-rc.1 | ^8.2 | MIT | |
| 6.0.0-alpha.5 | ^8.2 | MIT | |
| 6.0.0-alpha.4 | ^8.2 | MIT | |
| 6.0.0-alpha.3 | ^8.2 | MIT | |
| 6.0.0-alpha.2 | ^8.2 | MIT | |
| 6.0.0-alpha | ^8.2 | MIT | |
| 4.1.0-rc1 | ^8.1 | MIT | |
| 3.4.24-beta1 | ^7.2 || | MIT | |
| 3.2.0-alpha4 | ^7.2 | MIT | |
| 3.2.0-alpha3 | ^7.2 | MIT | |
| 3.2.0-alpha2 | ^7.2 | MIT | |
| 3.2.0-alpha1 | ^7.2 | MIT | |
| 3.1.5-alpha8 | ^7.2 | MIT | |
| 3.1.5-alpha7 | ^7.2 | MIT | |
| 3.1.5-alpha6 | ^7.2 | MIT | |
| 3.1.5-alpha5 | ^7.2 | MIT | |
| 3.1.5-alpha4 | ^7.2 | MIT | |
| 3.1.5-alpha3 | ^7.2 | MIT | |
| 3.1.5-alpha1 | ^7.2 | MIT | |
| 3.1.2-alpha4 | ^7.2 | MIT | |
| 3.1.2-alpha3 | ^7.2 | MIT | |
| 3.1.2-alpha2 | ^7.2 | MIT | |
| 3.1.2-alpha1 | ^7.2 | MIT | |
| 3.1.1-alpha2 | ^7.2 | MIT | |
| 3.1.1-alpha1 | ^7.2 | MIT | |
| 3.1.0-rc2 | ^7.2 | MIT | |
| 3.1.0-rc1 | ^7.2 | MIT | |
| 3.0.14-alpha3 | ^7.2 | MIT |
Showing the latest 30 of 38. See every release on Packagist