Download the PHP package mocean/mailchimp without Composer
On this page you can find all versions of the php package mocean/mailchimp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package mailchimp
Mocean Mailchimp
Mailchimp integration with Mocean Api
Try for FREE now. 20 trial SMS credits will be given upon registration. Additional SMS credits can be requested and is subject to approval by MoceanAPI.
Installation
To install the library, run this command in terminal.
Configuration
default config list
Usage
If you're using composer, make sure the autoloader is included in your project's bootstrap file:
Setup your configuration
Create a Mailchimp object
Broadcast message through campaign
Broadcast message through lists
Broadcast by passing in custom text parameter (default using text in config)
Sometime, you would not using all campaign or list, this library provide a convenient method which you can set it in config
Use get()
if you wish to get the response data from mailchimp
Dynamically set configuration (always override current config)
API Errors
In the event of any api errors occured, the object you request will return false and you can get the specific error msg from the api class
Exceptions
A Mocean\Mailchimp\exceptions\CampaignNotFoundException
is thrown if the account dont have any campaign or unable to search the campaign in config
A Mocean\Mailchimp\exceptions\ListNotFoundException
is thrown if the account dont have any list or unable to search the list in config
A Mocean\Mailchimp\exceptions\MemberNotFoundException
is thrown if the list dont have any member
A Mocean\Mailchimp\exceptions\InvalidKeyException
is thrown if there's key credential error
A Mocean\Mailchimp\exceptions\ConfigKeyNotFoundException
is thrown if there's error in config key name
Example
there's an example on usage in folder example/example.php
License
This library is released under the MIT License
All versions of mailchimp with dependencies
ext-json Version *
ext-curl Version *