Download the PHP package raohwork/notify without Composer
On this page you can find all versions of the php package raohwork/notify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download raohwork/notify
More information about raohwork/notify
Files in raohwork/notify
Package notify
Short Description client library to send notify with github.com/raohwork/notify
License MPL-2.0
Informations about the package notify
Package notify provides simple way to create notify server.
Creating a server is easy as
- Select and initialize a db driver (see ./model/mysqldrv)
- Select and initialize few notify drivers (see ./drivers/...)
- Create a configuration (see SenderOptions)
- Create a server with SenderOptions, and Register() your drivers
- Start(), enjoy it
Predefined binaries
There're two predefined binaries here. Both enables httpdrv. drivers by default. You can enable sendgriddrv. / tgdrv.* by setting environment variables.
The only difference between notify-api and notify-api-pg is database driver, fore one uses MySQL, the other uses PosgreSQL.
There're automated built Docker images on docker hub. Tag latest is for notify-api and pg for notify-api-pg.
FAQ
This is not well tested.
PR plz.
Is this safe to use in production?
For small scale, yes. I'm using it in production for few months, about few thousands of notifications per day, and few dozens per minute at peak.
Not tested in larger scale.
Can you add xxxx driver?
PR of driver that depends on external service (like mail driver with mailgun) will not be accepted, since I have no chance/spare time to test/maintain. Create your own repo and notify me via issue, I'll add a link in readme.
PR of DB driver is welcome if it can be tested using docker. See ./model/mysqldrv/mysql_test.go for example.
License
MPL version 2.0