To create your own adapter, just create a class with taking care to extends \Sly\NotificationPusher\Adapter\BaseAdapter
,
which implicitly implements \Sly\NotificationPusher\Adapter\AdapterInterface
which contains some required methods:
push
: contains the adapter logic to push notificationssupports
: return the token condition for using the adaptergetDefaultParameters
: returns default parameters used by the adaptergetRequiredParameters
: returns required parameters used by the adapter
Feel free to observe existent adapters for concrete example.
- Installation
- Getting started
- APNS adapter
- GCM (FCM) adapter
- Create an adapter
- Push from CLI
- Facades