This project builds upon the official Mailjet PHP Wrapper and extends its functionality.
composer require ebitkov/php-mailjet-api
This project is currently in development. Features might be not implemented yet or highly experimental.
Leveraging the Symfony Serializer Component the response data is automatically serialized into PHP objects to provide an easier interface.
The Mailjet PHP Wrapper only provides a basic client with methods for sending GET
, POST
, PUT
and DELETE
request.
This projects provides methods for the individuals endpoints (e.g. /contact
or /contactslist
), making sending
requests easier.
Those methods return serialized objects with the returned data and provide 'intermediate' methods for convenience, where Mailjet hasn't a dedicated interface.
Results from the API are getting cached, so already received data is not requested twice.