stefna / php-mailchimp-api-v3
Mailchimp v3 API client for PHP
2.0.1
2023-11-29 09:03 UTC
Requires
- php: ^8.0
- ext-json: *
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/log: ^1.0 || ^2.0 || ^3.0
Requires (Dev)
- guzzlehttp/psr7: ^2.6
- monolog/monolog: ^2.0
- nyholm/psr7: ^1.8
- php-http/curl-client: ^2.3
- php-http/message: ^1.0
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^9.0 || ^10.0
- roave/security-advisories: dev-latest
- stefna/codestyle: ^1.0
This package is auto-updated.
Last update: 2024-10-29 11:11:49 UTC
README
API Client for MailChimp v3 with a complete model
Uses MailChimp API v3.
Requirements
- PHP >= 7.4 with cURL extension
- Guzzle or any other "php-http/client-implementation
Installation
composer require stefna/php-mailchimp-api-v3
Basic usage
<?php // This file is generated by Composer require_once 'vendor/autoload.php'; $factory = new \Nyholm\Psr7\Factory\Psr17Factory(); $client = new \Stefna\MailChimp\Client( httpClient: $httpClient, apiKey: $apiKey, requestFactory: $factory, uriFactory: $factory, streamFactory: $factory, ); $allMembers = $client->lists()->members($listId)->all(); $email = $allMembers[0]->emailAddress;
License
The MIT License (MIT). Please see License File for more information.