Download the PHP package fei/notification-common without Composer
On this page you can find all versions of the php package fei/notification-common. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fei/notification-common
More information about fei/notification-common
Files in fei/notification-common
Download fei/notification-common
More information about fei/notification-common
Files in fei/notification-common
Vendor fei
Package notification-common
Short Description Flash Notification - Common components
License GPL-3.0
Package notification-common
Short Description Flash Notification - Common components
License GPL-3.0
Keywords componentsnotification
Please rate this library. Is it a good library?
Informations about the package notification-common
Service Notification - Common
Table of contents
- Entities
- Contribution
- Examples
Entities
Notification
Properties | Type | Required | Default value |
---|---|---|---|
id | integer |
No | |
createdAt | datetime |
No | Now() |
origin | string |
Yes | |
recipient | string |
Yes | |
event | string |
Yes | |
message | string |
Yes | |
type | integer |
No | 1 |
status | integer |
No | 0 |
parentNotificationId | integer |
No | 0 |
context | json |
No | |
action | json |
No |
origin
is a string representing the origin of the notificationrecipient
is a string representing the recipient of the notificationevent
is a string representing the event linked to the notificationmessage
is a string indicating the messagetype
is an integer representing the type of the notification. 1 : Info, 2 : Warningstatus
is an integer representing the status of the notification. 0 : Unread, 1 : Read, 2 : AcknowledgedparentNotificationId
is an integer representing the parent notificationcontext
is a jsonaction
is a json
Android alert entity
Properties | Type | Required | |
---|---|---|---|
notification | Notification |
Yes | |
message | Message |
Yes |
message
is a Message (described below) indicating the message
Message (Android alert)
Properties | Type | Required |
---|---|---|
data | array |
No |
token | string |
No |
topic | string |
No |
condition | string |
No |
notification | Android\Notification |
Yes |
Android\Notification (Android alert)
Properties | Type | Required |
---|---|---|
title | string |
Yes |
body | string |
Yes |
Email alert entity
Properties | Type | Required |
---|---|---|
notification | Notification |
Yes |
string |
Yes | |
subject | string |
Yes |
content | string |
Yes |
email
is a string representing the email recipientsubject
is a string indicating the subject of the emailcontent
is a string representing the content of the email
SMS alert entity
Properties | Type | Required | |
---|---|---|---|
notification | Notification |
Yes | |
message | Message |
Yes |
message
is a Message (described below) indicating the message
Message (SMS alert)
Properties | Type | |
---|---|---|
from | string |
|
recipients | array |
|
content | string |
Contribution
As FEI Service, designed and made by OpCoding. The contribution workflow will involve both technical teams. Feel free to contribute, to improve features and apply patches, but keep in mind to carefully deal with pull request. Merging must be the product of complete discussions between Flash and OpCoding teams :)
Examples
You have the possibility to validate a Notification
entity with NotificationValidator class:
Notification and alert creation
All versions of notification-common with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
doctrine/common Version ~2.7.0
objective-php/gateway Version ^1.0.0
zendframework/zend-validator Version ^2.10
league/fractal Version ^0.14.0
fei/entities Version ~1.1.0
doctrine/common Version ~2.7.0
objective-php/gateway Version ^1.0.0
zendframework/zend-validator Version ^2.10
league/fractal Version ^0.14.0
fei/entities Version ~1.1.0
The package fei/notification-common contains the following files
Loading the files please wait ....