Package Data | |
---|---|
Maintainer Username: | saritasa |
Maintainer Contact: | sergey@saritasa.com (Sergey Populov) |
Package Create Date: | 2017-04-10 |
Package Last Update: | 2022-08-26 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-05-11 03:12:44 |
Package Statistics | |
---|---|
Total Downloads: | 3,072 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 10 |
Total Forks: | 1 |
Total Open Issues: | 0 |
Implementation of Notifications API.
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 disabled,
add the NotificationsApiServiceProvider in config/app.php
:
'providers' => array(
// ...
Saritasa\PushNotifications\NotificationsApiServiceProvider::class,
)
Description of possible notification type, and if it should be on or off by default.
Mandatory fields
User's personal setting value - if certain notification type is on or off.
Mandatory fields:
If you have GNU Make installed, you can use following shortcuts:
make cs
(instead of php vendor/bin/phpcs
) -
run static code analysis with PHP_CodeSniffer
to check code stylemake csfix
(instead of php vendor/bin/phpcbf
) -
fix code style violations with PHP_CodeSniffer
automatically, where possible (ex. PSR-2 code formatting violations)make test
(instead of php vendor/bin/phpunit
) -
run tests with PHPUnit
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