Official PHP wrapper for MailerLite Classic HTTP API v2
PHP 8 support
Added missing methods for woocommerce plugin
PSR-7
and PSR-18
addContent
method updated to provide more information about expected dataget($fields = ['*'])
updated to get($fields = ['*'], $type = null)
to allow getting subscribers by type
Fixed an issue associated with usage of Guzzle client when sending PUT & POST requests.
Added new endpoint:
Read more here: http://developers.mailerlite.com/docs/campaigns-by-type
There is no need to provide campaign settings when you want to send it immediately so default value (empty array) is provided.
importSubscribers($groupId, $subscribers, $options)
in MailerliteApi\Api\Groups
class has additional parameter $options
to define resubscribe
and autoresponders
boolean parameters.