Download the PHP package saritasa/laravel-notifications-api without Composer
On this page you can find all versions of the php package saritasa/laravel-notifications-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download saritasa/laravel-notifications-api
More information about saritasa/laravel-notifications-api
Files in saritasa/laravel-notifications-api
Package laravel-notifications-api
Short Description Implementation for notifications API
License MIT
Informations about the package laravel-notifications-api
PHP Laravel Notifications API
Implementation of Notifications API.
Laravel 5.x
Install the package:
If you use Laravel 5.4 or less,
or 5.5+ with package discovery disabled,
add the NotificationsApiServiceProvider in config/app.php
:
For customization some library entities use artisan publish command:
-
for add yaml files for api description (note: don't forget add them to paths.yaml)
-
for customization migrations
-
for customization config file
Or just use to publish all customizable resources
Models (DB mapping)
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
User's personal setting value - if certain notification type is on or off.
Mandatory fields:
- id (int)
- userId (int)
- notificationTypeId (int)
- isOn (boolean)
Contributing
- Create fork, checkout it
- Develop locally as usual. Code must follow PSR-1, PSR-2 - run PHP_CodeSniffer to ensure, that code follows style guides
- Cover added functionality with unit tests and run PHPUnit to make sure, that all tests pass
- Update README.md to describe new or changed functionality
- Add changes description to Semantic Versioning convention to determine next version number.
- When ready, create pull request
Make shortcuts
If you have GNU Make installed, you can use following shortcuts:
- (instead of ) - run static code analysis with PHP_CodeSniffer to check code style
- (instead of ) - fix code style violations with PHP_CodeSniffer automatically, where possible (ex. PSR-2 code formatting violations)
- (instead of ) - run tests with PHPUnit
-
- instead of
- or just without parameters - invokes described above install, cs, test tasks sequentially - project will be assembled, checked with linter and tested with one single command
Resources
- Bug Tracker
- Code
- Changes History
- Authors
All versions of laravel-notifications-api with dependencies
illuminate/database Version ^5.4 || ^6.0
illuminate/http Version ^5.4 || ^6.0
illuminate/notifications Version ^5.4 || ^6.0
illuminate/support Version ^5.4 || ^6.0
saritasa/eloquent-custom Version ^1.0