Download the PHP package fazland/notifire without Composer
On this page you can find all versions of the php package fazland/notifire. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package notifire
Notifire
Notifire is a PHP library that centralizes the management of notifications (e-mails, sms, push notifications, etc.).
Requirements
php
>= 7.2symfony/event-dispatcher
>= 4.3symfony/options-resolver
>= 4.3
Installation
The suggested installation method is via composer:
Using Notifire
Every notification in Notifire triggers an Event (the NotifyEvent
) which will be handled by an instance of NotifyEventSubscriber
(later named by handlers
).
Those notifications must implement NotificationInterface
and registered with Notifire::addNotification()
in order to be read by Notifire.
Notifire provides 2 standard implementations (Email
and Sms
) and theirs handlers
(the defaults are SwiftMailerHandler
and TwilioHandler
).
Notifire is really simple to use:
Initialization
First of all Notifire has to be initialized. Two ways:
1) run in order to autoconfigure the e-mail with SwiftMailer as its Handler
2) custom configuration with NotifireBuilder
by registering the notifications and the desired instance of EventDispatcherInterface
Now you're ready!
To create an Email
just use Notifire::email()
, fill the fields like from
, to
, parts
etc. and then use Email::send()
:
Contributing
Contributions are welcome. Feel free to open a PR or file an issue here on GitHub!
License
Notifire is licensed under the MIT License - see the LICENSE file for details
All versions of notifire with dependencies
symfony/event-dispatcher Version ^2.7|^3.0|^4.0
symfony/options-resolver Version ^2.7|^3.0|^4.0
psr/log Version ^1.0