ebitkov / php-mailjet-api
OOP extension for the PHP Mailjet wrapper
Requires
- php: >=8.1
- doctrine/collections: ^2.1
- mailjet/mailjet-apiv3-php: ^1.6
- phpdocumentor/reflection-docblock: ^5.3
- symfony/expression-language: ^7.0
- symfony/options-resolver: ^7.0
- symfony/property-access: ^7.0
- symfony/serializer: ^7.0
- symfony/validator: ^7.0
Requires (Dev)
- dg/bypass-finals: ^1.5
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.5
- squizlabs/php_codesniffer: ^3.8
- symfony/console: ^7.0
- symfony/debug-bundle: ^7.0
- symfony/dotenv: ^7.0
- symfony/finder: ^7.0
- symfony/yaml: ^7.0
This package is auto-updated.
Last update: 2024-10-30 15:13:00 UTC
README
This project builds upon the official Mailjet PHP Wrapper and extends its functionality.
Installation
composer require ebitkov/php-mailjet-api
Features
This project is currently in development. Features might be not implemented yet or highly experimental.
Serialization
Leveraging the Symfony Serializer Component the response data is automatically serialized into PHP objects to provide an easier interface.
Methods for Accessing Endpoints
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.
Caching Results
Results from the API are getting cached, so already received data is not requested twice.