Download the PHP package affittocertificato/pushnotificationhandler without Composer
On this page you can find all versions of the php package affittocertificato/pushnotificationhandler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download affittocertificato/pushnotificationhandler
More information about affittocertificato/pushnotificationhandler
Files in affittocertificato/pushnotificationhandler
Package pushnotificationhandler
Short Description Lightweight implementation for push notifications from Affitto Certificato API
License GPL-3.0-or-later
Homepage https://github.com/bradiporitmico/affittocertificato_pushnotifications
Informations about the package pushnotificationhandler
Affitto Certificato Push Notification Handler Library
Simple and fast implementation for push notifications handling from Affitto Certificato
Basic example
What should the callback do?
If a callback wants to inform the caller that something has gone wrong, it must throw an Exception with a descriptive note in it
Here's an implementation of a simple logic in onCurriculum event:
The callback function may return a value (not mandatory and in any desidered form [string, object, number, ...]) as further description for action results, if there's one it will be added as "payload" to json response and passed to AffittoCertificato caller.
In this case the caller (Affitto Certificato) will receive the string "Have a nice day!" as a payload from the handler (you). This informations will be used as log information and for further debugging activities.
onCurriculum $data format
The callback onCurriculum receive an object on $data parameter structured as follow:
Requirements
- PHP >= 5.6
Installation
The recommended way is to install the lib through Composer.
Simply run composer require affittocertificato/pushnotificationhandler
for it to be automatically installed and included in your composer.json
.
Now you can use the autoloader, and you will have access to the library:
License
This library is released under the GPL-3.0 license