2017 © Pedro Peláez
 

symfony-bundle hype-mailchimp-bundle

Mailchimp V2.0 API Object Oriented wrapper

image

ahmedsamy/hype-mailchimp-bundle

Mailchimp V2.0 API Object Oriented wrapper

  • Friday, May 11, 2018
  • by ahmed.samy
  • Repository
  • 8 Watchers
  • 54 Stars
  • 261,601 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 28 Forks
  • 12 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

Hype MailchimpBundle for API V2.0

Latest Version on Packagist, (*1)

Symfony2.x bundle for MailChimp API V2 and Export API API V1 Wrapper bundle that makes accessing Mailchimp functions easily in object oriented using method chaining, (*2)

License, (*3)

HypeMailChimp bundle released under MIT LICENSE, (*4)

Supported API Methods

Campaigns related, (*5)

  1. campaigns/create
  2. campaigns/content
  3. campaigns/list
  4. campaigns/delete
  5. campaigns/pause
  6. campaigns/ready
  7. campaigns/replicate
  8. campaigns/ready
  9. campaigns/resume
  10. campaigns/send
  11. campaigns/send-test
  12. campaigns/segment-test
  13. campaigns/schedule
  14. campaigns/schedule-batch
  15. campaigns/unschedule
  16. campaigns/update

Lists related, (*6)

  1. lists/list
  2. lists/abuse-reports
  3. lists/activity
  4. lists/subscribe
  5. lists/unsubscribe
  6. lists/member-info
  7. lists/interest-groupings
  8. lists/interest-grouping-add
  9. lists/interest-grouping-del
  10. lists/interest-grouping-update
  11. lists/interest-group-add
  12. lists/interest-group-update
  13. lists/interest-group-del
  14. lists/segments
  15. lists/segment-test

Templates related, (*7)

  1. templates/add
  2. templates/list
  3. templates/del
  4. templates/info
  5. templates/undel

Export API, (*8)

  1. list
  2. campaignSubscriberActivity

Helper related, (*9)

  1. helper/ping
  2. helper/generate-text

Need support for a method not on the list submit an issue, (*10)

Setup

Step 1: Download HypeMailchimp using composer

Add HypeMailchimp in your composer.json:, (*11)

{
    "require": {
        "ahmedsamy/hype-mailchimp-bundle": "dev-master"
    }
}

Now tell composer to download the bundle by running the command:, (*12)

``` bash $ php composer.phar update "ahmedsamy/hype-mailchimp-bundle", (*13)


Composer will install the bundle to your project's `vendor/ahmedsamy/hype` directory. ### Step 2: Enable the bundle Enable the bundle in the kernel: ``` php get('hype_mailchimp'); ?>

Examples

Create new campaign

``` php get('hype_mailchimp'); $data = $mc->getCampaign()->create('regular', array( 'list_id' => '93419bbdc0', 'subject' => 'test created subject', 'from_email' => 'ahmed.samy.cs@gmail.com', 'from_name' => 'Ahmed Samy', 'to_name' => 'fans' ), array( 'html' => ', (*14)

Html content
', 'sections' => array(), 'text' => 'test', 'url' => 'http://www.example.com', 'archive' => 'test' )); var_dump($data); ?>
###Delete existing campaign
``` php
get('hype_mailchimp');
     $data = $mc->getCampaign()
                ->setCi('1088b4ed65')
                ->del();

        var_dump($data);
?>

Send campaign

``` php get('hype_mailchimp'); $data = $mc->getCampaign() ->setCi('1088b4ed65') ->send(); var_dump($data); ?>, (*15)


###Subscribe new user to list ``` php <?php $mc = $this->get('hype_mailchimp'); $data = $mc->getList() ->subscribe('moneky@suitMonkry.com'); var_dump($data); ?>

Note that the user will be subscribed to the default list set in config.yml. If you want to change the list for this time only, you can use php <?php $mc = $this->get('hype_mailchimp'); $data = $mc->getList() ->setListId('xxxxxxx') ->addMerge_vars( array( 'mc_notes' => 'test notes' )) ->subscribe('moneky@suitMonkry.com'); ?>, (*16)

The Versions

11/05 2018

dev-master

9999999-dev https://github.com/AhmedSamy/hype-mailchimp-api-2.0

Mailchimp V2.0 API Object Oriented wrapper

  Sources   Download

MIT

The Requires

 

api curl newsletter mailchimp http client

11/05 2018

v1.3

1.3.0.0 https://github.com/AhmedSamy/hype-mailchimp-api-2.0

Mailchimp V2.0 API Object Oriented wrapper

  Sources   Download

MIT

The Requires

 

api curl newsletter mailchimp http client

23/02 2015

v1.2

1.2.0.0 https://github.com/AhmedSamy/hype-mailchimp-api-2.0

Mailchimp V2.0 API Object Oriented wrapper

  Sources   Download

MIT

The Requires

 

api curl newsletter mailchimp http client

10/01 2015

v1.1

1.1.0.0 https://github.com/AhmedSamy/hype-mailchimp-api-2.0

Mailchimp V2.0 API Object Oriented wrapper

  Sources   Download

MIT

The Requires

 

api curl newsletter mailchimp http client

20/10 2014

v1.0

1.0.0.0 https://github.com/AhmedSamy/hype-mailchimp-api-2.0

Mailchimp V2.0 API Object Oriented wrapper

  Sources   Download

MIT

The Requires

 

api curl newsletter mailchimp http client

28/09 2013

dev-dev

dev-dev https://github.com/AhmedSamy/hype-mailchimp-api-2.0

Mailchimp V2.0 API Object Oriented wrapper

  Sources   Download

MIT

The Requires

 

api curl newsletter mailchimp http client