PHPackages                             saritasa/laravel-notifications-api - 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. saritasa/laravel-notifications-api

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

saritasa/laravel-notifications-api
==================================

Implementation for notifications API

2.0.1(3y ago)03.1k1MITPHPPHP &gt;=7.0

Since Apr 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Saritasa/php-laravel-notifications-api)[ Packagist](https://packagist.org/packages/saritasa/laravel-notifications-api)[ RSS](/packages/saritasa-laravel-notifications-api/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (7)Versions (16)Used By (0)

PHP Laravel Notifications API
=============================

[](#php-laravel-notifications-api)

[![PHP Unit](https://github.com/Saritasa/php-laravel-notifications-api/workflows/PHP%20Unit/badge.svg)](https://github.com/Saritasa/php-laravel-notifications-api/actions)[![PHP CodeSniffer](https://github.com/Saritasa/php-laravel-notifications-api/workflows/PHP%20Codesniffer/badge.svg)](https://github.com/Saritasa/php-laravel-notifications-api/actions)[![Release](https://camo.githubusercontent.com/0e75e02edcdaf1157444892c6c37d01b3549da2b1a7889cfcb45dfdb44628315/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f73617269746173612f7068702d6c61726176656c2d6e6f74696669636174696f6e732d6170692e737667)](https://github.com/Saritasa/php-laravel-notifications-api/releases)[![PHPv](https://camo.githubusercontent.com/3061d7d5e8fc18e879e2eb6361af4864672b9aa1f5ac844a87cbe903ed5244a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73617269746173612f6c61726176656c2d6e6f74696669636174696f6e732d6170692e737667)](http://www.php.net)[![Downloads](https://camo.githubusercontent.com/1a1081154724455a85da56874b284e4b21936298213b3e61d9f4fb1ea9da9303/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73617269746173612f6c61726176656c2d6e6f74696669636174696f6e732d6170692e737667)](https://packagist.org/packages/saritasa/laravel-notifications-api)

Implementation of Notifications API.

Laravel 5.x
-----------

[](#laravel-5x)

Install the `saritasa/laravel-notifications-api` package:

```
$ composer require saritasa/laravel-notifications-api
```

If you use Laravel 5.4 or less, or 5.5+ with [package discovery](https://laravel.com/docs/5.5/packages#package-discovery) disabled, add the NotificationsApiServiceProvider in `config/app.php`:

```
'providers' => array(
    // ...
    Saritasa\PushNotifications\NotificationsApiServiceProvider::class,
)
```

For customization some library entities use artisan publish command:

- `php artisan vendor:publish --tag=saritasa-notifications-swagger`

    for add yaml files for api description (*note: don't forget add them to paths.yaml*)
- `php artisan vendor:publish --tag=saritasa-notifications-migrations`

    for customization migrations
- `php artisan vendor:publish --tag=saritasa-notifications-config`

    for customization config file

Or just use to publish all customizable resources `php artisan vendor:publish --tag=saritasa-notifications`

Models (DB mapping)
-------------------

[](#models-db-mapping)

### NotificationType

[](#notificationtype)

Description of possible notification type, and if it should be on or off by default.

Mandatory fields

- id (*int*)
- name (*string*)
- defaultOn (*boolean*)

### NotificationSetting

[](#notificationsetting)

User's personal setting value - if certain notification type is on or off.

Mandatory fields:

- id (*int*)
- userId (*int*)
- notificationTypeId (*int*)
- isOn (*boolean*)

Contributing
------------

[](#contributing)

1. Create fork, checkout it
2. Develop locally as usual. **Code must follow [PSR-1](http://www.php-fig.org/psr/psr-1/), [PSR-2](http://www.php-fig.org/psr/psr-2/)** - run [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) to ensure, that code follows style guides
3. **Cover added functionality with unit tests** and run [PHPUnit](https://phpunit.de/) to make sure, that all tests pass
4. Update [README.md](README.md) to describe new or changed functionality
5. Add changes description to [CHANGES.md](CHANGES.md) file. Use [Semantic Versioning](https://semver.org/) convention to determine next version number.
6. When ready, create pull request

### Make shortcuts

[](#make-shortcuts)

If you have [GNU Make](https://www.gnu.org/software/make/) installed, you can use following shortcuts:

- `make cs` (instead of `php vendor/bin/phpcs`) - run static code analysis with [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)to check code style
- `make csfix` (instead of `php vendor/bin/phpcbf`) - fix code style violations with [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)automatically, where possible (ex. PSR-2 code formatting violations)
- `make test` (instead of `php vendor/bin/phpunit`) - run tests with [PHPUnit](https://phpunit.de/)
- `make install` - instead of `composer install`
- `make all` or just `make` without parameters - invokes described above **install**, **cs**, **test** tasks sequentially - project will be assembled, checked with linter and tested with one single command

Resources
---------

[](#resources)

- [Bug Tracker](http://github.com/saritasa/php-laravel-notifications-api/issues)
- [Code](http://github.com/saritasa/php-laravel-notifications-api)
- [Changes History](CHANGES.md)
- [Authors](http://github.com/saritasa/php-laravel-notifications-api/contributors)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 69.4% 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 ~140 days

Recently: every ~212 days

Total

15

Last Release

1404d ago

Major Versions

1.2.2 → 2.0.02022-08-24

### Community

Maintainers

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

---

Top Contributors

[![populov](https://avatars.githubusercontent.com/u/3766033?v=4)](https://github.com/populov "populov (59 commits)")[![RuslanOlontsev](https://avatars.githubusercontent.com/u/107931869?v=4)](https://github.com/RuslanOlontsev "RuslanOlontsev (22 commits)")[![maxermolenko](https://avatars.githubusercontent.com/u/11438109?v=4)](https://github.com/maxermolenko "maxermolenko (3 commits)")[![hollow-en](https://avatars.githubusercontent.com/u/87475798?v=4)](https://github.com/hollow-en "hollow-en (1 commits)")

---

Tags

apinotificationsphpapilaravelnotifications

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/saritasa-laravel-notifications-api/health.svg)

```
[![Health](https://phpackages.com/badges/saritasa-laravel-notifications-api/health.svg)](https://phpackages.com/packages/saritasa-laravel-notifications-api)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.7k](/packages/larastan-larastan)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k28.4M137](/packages/laravel-cashier)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)

PHPackages © 2026

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