Download the PHP package patienceman/notifier without Composer
On this page you can find all versions of the php package patienceman/notifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download patienceman/notifier
More information about patienceman/notifier
Files in patienceman/notifier
Package notifier
Short Description Provide a convenient way to interact with Notifications, including Emails, Dbnotification, and one signal notifications, it just helps your declaration and interaction easier.
License MIT
Informations about the package notifier
Patienceman 🪴 Notification
Provide a convenient way to interact with Notifications, including Emails, Dbnotification, and one signal notifications, it just helps your declaration and interaction easier.
Installation
Install the package doesn't require much requirement except to use the following command in the laravel terminal, and you're good to go.
Before get started let first create Queue table and Notifications:
Finally, don't forget to instruct your application to use the database by updating the variable in your application's or any queue drive you use, consider Laravel queue doc file:
Usage
To start working with Noptifier, u need to run command :tada: in your custom directories:
so it will create the filter file for you, Just in Notifiers directory
But in this doc, we'll be using
So you may want even to specify the custom path for your Notifier, Just relax and add it in front of your notifier name. Let's take again our current example.
To communicate/use your Notifier, you only need to call Notifier class, Let take a quick example in our CandidateController class to notify about application between creator and seeker
Now on, we are able send our email notification anytime, any place. So there is many feature comes with notifier, includes
let take a look:
So to access the passed users you need to just call one by one using indexes: for example: with
This is so cool, but there might be a time where you need to queue all notifier, not single one like above, let see how: but let support we have also OneSignalNotification:
As u see above, we're working with payloads to notifier, Let see how to get all payload and all targeted user:
There is tile also you want to send notification to all recipients without chose who: by just use function
You held this function right!!?, This function can be used in Laravel DBNotification to store custom notification in table: So let see full implementation:
or use customized way:
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.