ems-api / php-client
Email Marketing Software library for PHP
v2.0.0
2026-08-04 06:44 UTC
Requires
- php: >=8.2
- ext-curl: *
- ext-json: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.92
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.5
- rector/rector: ^2.1
Suggests
- ext-apcu: Required to use the EmsApi\Cache\Apc cache adapter.
README
This is the PHP Client for MailWizz's API.
Install
Get started by installing it via composer as follows:
composer require ems-api/php-client
Then follow the instructions from example/setup.php file.
Requirements
- PHP 8.2 or newer
ext-curlext-json
If you want to use the in-memory cache adapter, install ext-apcu. The legacy XCache adapter is no longer supported.
Test
Following environment variables have to be set, with their proper values:
EMS_API_URL
EMS_API_KEY
Then you can run the tests:
$ composer test
The API-backed endpoint tests are kept separately because they require a real MailWizz API URL and key:
$ composer test-integration
Development
The 2.x branch targets PHP 8.2+ and includes the following maintenance commands:
$ composer analyse $ composer refactor-dry-run $ composer refactor