2017 © Pedro Peláez
 

library laravel-notifications-api

Implementation for notifications API

image

saritasa/laravel-notifications-api

Implementation for notifications API

  • Monday, March 12, 2018
  • by saritasa
  • Repository
  • 5 Watchers
  • 0 Stars
  • 1,120 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 25 % Grown

The README.md

PHP Laravel Notifications API

PHP Unit PHP CodeSniffer Release PHPv Downloads, (*1)

Implementation of Notifications API., (*2)

Laravel 5.x

Install the saritasa/laravel-notifications-api package:, (*3)

$ 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:, (*4)

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

For customization some library entities use artisan publish command:, (*5)

  • php artisan vendor:publish --tag=saritasa-notifications-swagger, (*6)

    for add yaml files for api description (note: don't forget add them to paths.yaml), (*7)

  • php artisan vendor:publish --tag=saritasa-notifications-migrations, (*8)

    for customization migrations, (*9)

  • php artisan vendor:publish --tag=saritasa-notifications-config, (*10)

    for customization config file, (*11)

Or just use to publish all customizable resources php artisan vendor:publish --tag=saritasa-notifications, (*12)

Models (DB mapping)

NotificationType

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

Mandatory fields * id (int) * name (string) * defaultOn (boolean), (*14)

NotificationSetting

User's personal setting value - if certain notification type is on or off., (*15)

Mandatory fields: * id (int) * userId (int) * notificationTypeId (int) * isOn (boolean), (*16)

Contributing

  1. Create fork, checkout it
  2. Develop locally as usual. Code must follow PSR-1, PSR-2 - run PHP_CodeSniffer to ensure, that code follows style guides
  3. Cover added functionality with unit tests and run PHPUnit to make sure, that all tests pass
  4. Update README.md to describe new or changed functionality
  5. Add changes description to CHANGES.md file. Use Semantic Versioning convention to determine next version number.
  6. When ready, create pull request

Make shortcuts

If you have GNU Make installed, you can use following shortcuts:, (*17)

  • make cs (instead of php vendor/bin/phpcs) - run static code analysis with PHP_CodeSniffer to check code style
  • make 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

Resources

The Versions

12/03 2018

dev-master

9999999-dev

Implementation for notifications API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergey Populov

laravel api notifications

17/01 2018

1.0.4

1.0.4.0

Implementation for notifications API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergey Populov

laravel api notifications

08/06 2017

1.0.3

1.0.3.0

Implementation for notifications API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergey Populov

laravel api notifications

08/06 2017

1.0.2

1.0.2.0

Implementation for notifications API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergey Populov

laravel api notifications

08/06 2017

1.0.1

1.0.1.0

Implementation for notifications API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergey Populov

laravel api notifications

12/04 2017

1.0.0

1.0.0.0

Implementation for notifications API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergey Populov

laravel api notifications