This repository was archived by the owner on Jul 20, 2023. It is now read-only.
Releases: floriangaerber/Magnesium-PHP
Releases · floriangaerber/Magnesium-PHP
v0.4.0-alpha4
- Fixes targeting
masterbranch inv0.4.0-alpha3
v0.4.0-alpha2
- Fixed not using
Magnesium\Message\BatchMessageinMagnesium\Magnesium - This is why I need to add unit tests (Or do any testing at all)
v0.4.0-alpha1
- Reworked/Reorganized everything
- Warning: Not fully unit tested yet!
v0.3.1
Changes:
- Added missing typehint to
Magnesium\Message\Base::setText($text)- Now requires
stringas documented
- Now requires
- Fixed error for undefined index in
Magnesium\Message\Base::getCustomHeader($name)- Now returns
nullif header with name isn't set
- Now returns
- Fixed missing call to
Magnesium\Message\BatchMessage::getRecipients()inMagnesium\Message\BatchMessage::addRecipientsToConfig()- I forgot to re-add it after making local changes
- Internally split up
Magnesium\Message\BatchMessage::getConfig() - Fixed potential exploit in
Magnesium\Message\Base::formatEmailString($config)where names containing either of<>@,may break theTostring inMagnesium\Message\BatchMessage::addRecipientsToConfig(). Refer to the DocBlock for details - Began adding unit tests
- Because many of these errors could've been avoided if there were any
v0.3.0
Changes:
- Rewritten classes for extensibility
Magnesium\Messages\Bulkcan now be found atMagensium\Message\BatchMessage- Renamed some functions and changed some behavior
- Added a new base class,
Magnesium\Message\Base - Errors can now be caught with
Magnesium\Error\Base- There currently are no more elaborate errors
- Began adding documentation
This should be the last major external changes, though I may add some more features in the future, such as a class with CC/BCC support, and attachment/inline support on Magnesium\Messages\Base.
I'll at least need to add unit tests before 1.0.0 though.
v0.2.0
Changes:
- Added HTML-escaping to recipient variables
- Previously this was only done for messages to 1 recipient.
- Default:
true(enabled) - Set with
setEscapeHtmlInRecipientVariables($bool) - When escaping in messages to 2+ recipients, recipient variables will always be escaped, even in the text-body.
- When sending to only 1 recipient, only the HTML-body will be escaped.
Magnesium\Messages\Bulknow requires a domain at construction- Previously this was optional
- You can still set and get the domain afterwards
- Fixed Mailgun not actually being able to make API calls because of missing
php-http/messageandphp-http/guzzle6-adapterdependencies
v0.1.0 Initial Release
Features:
- Mailgun Webhook Validation
- Bulk messages with
%recipient.variables%