Download the PHP package rezozero/subscribeme without Composer
On this page you can find all versions of the php package rezozero/subscribeme. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rezozero/subscribeme
More information about rezozero/subscribeme
Files in rezozero/subscribeme
Package subscribeme
Short Description Unified Email Service Library: A simple mailing list subscriber factory that includes a mailing list subscription feature and the ability to send transactional emails.
License MIT
Informations about the package subscribeme
Subscribe me
Unified Email Service Library: A simple mailing list subscriber factory that includes a mailing list subscription feature and the ability to send transactional emails.
Supported platforms
- Mailjet
- Mailchimp
- Brevo (ex SendInBlue)
- Brevo DOI (Double Opt-In) (ex SendInBlue)
- YMLP
Usage
Symfony usage
With Symfony, you don't have to use the Factory
,
you can directly make your code generic by depending on SubscriberInterface
,
which means that if you want to change platform later,
you will just have to change the registration.
GDPR consent support
Prepare your audience list with additional fields in order to store your users consent (https://www.mailjet.com/gdpr/consent/) :
Some platform already have special mechanism for GDPR consent such as Mailchimp :
You can add multiple UserConsent
objects when platform allows it.
Mailchimp
Mailchimp options subscriber
Mailchimp options sender transactional email
See https://mailchimp.com/developer/transactional/api/messages/send-using-message-template/
YMLP
YMLP options subscriber
See https://www.ymlp.com/app/api_command.php?command=Contacts.Add
For getting your additional fields ID: see https://www.ymlp.com/api/Fields.GetList?Key=api_key&Username=username
YMLP options sender transactional email
YMLP does not support transactional email, we throw an UnsupportedTransactionalEmailPlatformException
.
Brevo
Brevo subscriber options
See https://developers.brevo.com/reference#createcontact
For getting your additional fields ID: see https://my.brevo.com/lists/add-attributes
Brevo Double Opt-In options
See https://developers.brevo.com/reference/createdoicontact
Brevo sender transactional email options
See https://developers.brevo.com/reference/sendtransacemail
Mailjet
Mailjet subscriber options
Mailjet sender transactional email options
See https://dev.mailjet.com/email/guides/send-api-v31/#use-templating-language