PHPackages                             asanbarco/notifier - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. asanbarco/notifier

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

asanbarco/notifier
==================

3.3.2(6y ago)06013[1 PRs](https://github.com/AsanbarCO/notifier/pulls)PHPPHP &gt;=7.1.0

Since Jun 2Pushed 6y ago3 watchersCompare

[ Source](https://github.com/AsanbarCO/notifier)[ Packagist](https://packagist.org/packages/asanbarco/notifier)[ RSS](/packages/asanbarco-notifier/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (4)Versions (44)Used By (0)

About Notifier
--------------

[](#about-notifier)

Notifier is a notifications service package which handles the process of sending various push, SMS, email, and other notifications types. It's based on Laravel 5.5 and send all your notifications asynchronously through Laravel Queue Manager on Redis broker.

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

[](#installation)

Install the package via Packagist:

```
composer require asanbarco/notifier

```

Configuration
-------------

[](#configuration)

Publish the Notifier config file to your application and fill out configurations of the services you want to use:

```
php artisan vendor:publish

```

Run the migration command to create notifiers schemas:

```
php artisan migrate

```

Add the following environments to your application `.env` in comma-separated order in order to set the priority of providers in notify job:

```
SMS_PROVIDERS_PRIORITY=sms0098,smsir

SMS0098_FROM=YOUR-NUMBER
SMS0098_USERNAME=YOUR-USERNAME
SMS0098_PASSWORD=YOUR-PASSWORD

SMSIR_URI=http://restfulsms.com/api/MessageSend
SMSIR_TOKEN=http://restfulsms.com/api/Token
SMSIR_API_KEY=YOUR-API-KEY
SMSIR_SECRET_KEY=YOUR-SECRET-KEY
SMSIR_LINE_NUMBER=YOUR-NUMBER

PUSH_PROVIDERS_PRIORITY=chabok,onesignal

CHABOK_URI_DEV=https://sandbox.push.adpdigital.com/api/
CHABOK_APP_ID_DEV=YOUR-ID
CHABOK_ACCESS_TOKEN_DEV=YOUR-TOKEN

CHABOK_URI=https://YOUR-ID.push.adpdigital.com/api/
CHABOK_APP_ID=YOUR-ID
CHABOK_ACCESS_TOKEN=YOUR-TOKEN

```

Remember to have the queue artisan command running on the server:

```
php artisan queue:work

```

Set your application `.env` key `QUEUE_DRIVER` to `redis` to run jobs asynchronously

How to use
----------

[](#how-to-use)

use the `Asanbar\Notifier\Notifier` interface in your application, following methods are available: `sendPush`, `sendSms`

```
public function sendSMS(array $numbers, string $txt)
{
    Notifier::onQueue('sms'); //if you do not set queue name it run send immediately and return result
    return Notifier::sendSMS($txt, $numbers);
}

public function sendPush(array $tokens, string $title, string $txt, ?array $data = [])
{
    Notifier::onQueue('push');
    return Notifier::sendPush($title, $txt, $tokens, $data);
}
```

Set that a notification read by user

```
Notifier::read($id);
```

Read data
---------

[](#read-data)

You can use counts of notfications base on status and type

```
Notifier::getCounts();
Notifier::getCounts($userId); // with user iddentifier (id or mobile ...)
```

get reads or unreads notifications

```
Notifier::getUnReads(); // or getReads()
Notifier::getUnReads($identifier, $type, $limit); // all parameters are optional. If set limit it make paginator
```

Developer
---------

[](#developer)

[Mehrad Aladini](mailto:aladini@asanbar.ir)

refactor by: [Mehrdad Dadkhah](https://github.com/Mehrdad-Dadkhah)

License
-------

[](#license)

[AsanBar](https://asanbar.ir).

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~14 days

Recently: every ~66 days

Total

37

Last Release

2367d ago

Major Versions

1.0.13 → 2.02018-09-01

2.2.4 → 3.0.12019-01-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/81444f5b00b395cb9f18d1b8e89ed2d66ac2aaa04c4e9dc96cb8e34229f8fe83?d=identicon)[Asanbar](/maintainers/Asanbar)

---

Top Contributors

[![mohsen-farahani](https://avatars.githubusercontent.com/u/2861717?v=4)](https://github.com/mohsen-farahani "mohsen-farahani (10 commits)")[![Mehrdad-Dadkhah](https://avatars.githubusercontent.com/u/3860685?v=4)](https://github.com/Mehrdad-Dadkhah "Mehrdad-Dadkhah (6 commits)")[![Azhovan](https://avatars.githubusercontent.com/u/19530589?v=4)](https://github.com/Azhovan "Azhovan (2 commits)")[![mehrud](https://avatars.githubusercontent.com/u/16168856?v=4)](https://github.com/mehrud "mehrud (2 commits)")

### Embed Badge

![Health badge](/badges/asanbarco-notifier/health.svg)

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

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[lemonsqueezy/laravel

A package to easily integrate your Laravel application with Lemon Squeezy.

58596.1k](/packages/lemonsqueezy-laravel)[vemcogroup/laravel-sparkpost-driver

SparkPost driver to use with Laravel 6.x|7.x|8.x|9.x|10.x

421.7M1](/packages/vemcogroup-laravel-sparkpost-driver)[spatie/mailcoach

Self-host Mailcoach

4007.0k](/packages/spatie-mailcoach)

PHPackages © 2026

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