2017 © Pedro Peláez
 

project mailchimp

MailChimp subscription

image

jsdecena/mailchimp

MailChimp subscription

  • Friday, September 15, 2017
  • by jsdecena
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,435 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 20 Versions
  • 63 % Grown

The README.md

Build Status Latest Stable Version Total Downloads License, (*1)

MailChimp API v2.0 Laravel PHP Example

Installation

  • Step1: Add this to your root composer.json

"require": { "jsdecena/mailchimp": "^7.0" }

Or issue this command:, (*2)

composer require jsdecena/mailchimp, (*3)

  • Step2: Add this to your config/app.php in providers array

'providers' => [ Jsdecena\MailChimp\MailChimpServiceProvider::class, ]
  • Step3: Run this in your terminal

php artisan vendor:publish --provider="Jsdecena\MailChimp\MailChimpServiceProvider", (*4)

  • Step4: Include the template anywhere in your template @include('mailchimp::mailchimp'), (*5)

  • Step5: Set the variable in your .env file, (*6)

MAILCHIMP_API_KEY=YourMailChimpAPIKey, (*7)

MAILCHIMP_LIST_ID=YourMailChimpListId, (*8)

  • Step6: Enjoy!

Overriding the template file?

  • Yes you can. Override the file in /resources/views/vendor/mailchimp/mailchimp.blade.php

What is new with 1.6?

  • Recently, I learned the power of doing TDD (test driven development) on applications using PHPUnit. So now, I am already throwing exception messages whenever there is an issue on the request!

What are the exception messages we are returning?

  • Email that MailChimp does not allow
  {
    "error": "List_RoleEmailMember: test@test.com is an invalid email address and cannot be imported."
  }
  • Wrong API key provided
  {
    "error":"Invalid MailChimp API key: 1112e36f7f44ef4cc3c5a584747abb05be"
  }
  • Wrong List ID provided
  {
    "error":"Invalid MailChimp List ID: accf6b0a0e111"
  }

And if the subscription is successful, it will return the email, euid, leid on the data object

  {
    "data": {
      "email":"super@mario.com",
      "euid":"b0b8fdacbd",
      "leid":"430369209"
    }
  }

The Versions

15/09 2017

dev-master

9999999-dev

MailChimp subscription

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeff Simons Decena

laravel framework shop e-commerce ecommerce laravel5 package shopping-cart laracom laravel-ecommerce

15/09 2017

7.0.5

7.0.5.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeff Simons Decena

laravel framework shop e-commerce ecommerce laravel5 package shopping-cart laracom laravel-ecommerce

15/09 2017

7.0.4

7.0.4.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeff Simons Decena

laravel framework shop e-commerce ecommerce laravel5 package shopping-cart laracom laravel-ecommerce

15/09 2017

7.0.3

7.0.3.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeff Simons Decena

laravel framework shop e-commerce ecommerce laravel5 package shopping-cart laracom laravel-ecommerce

15/09 2017

7.0.2

7.0.2.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeff Simons Decena

laravel framework shop e-commerce ecommerce laravel5 package shopping-cart laracom laravel-ecommerce

15/09 2017

7.0.1

7.0.1.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeff Simons Decena

15/09 2017

1.7.0

1.7.0.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeff Simons Decena

03/09 2016

1.6.5

1.6.5.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeff Simons Decena

02/09 2016

1.6.4

1.6.4.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeff Simons Decena

02/09 2016

1.6.3

1.6.3.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeff Simons Decena

02/09 2016

dev-develop

dev-develop

MailChimp subscription

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jeff Simons Decena

12/06 2016

1.6.2

1.6.2.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

by Jeff Simons Decena

12/06 2016

1.6.1

1.6.1.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

by Jeff Simons Decena

12/06 2016

1.6.0

1.6.0.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

by Jeff Simons Decena

07/06 2016

1.5

1.5.0.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

by Jeff Simons Decena

07/06 2016

1.4

1.4.0.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

by Jeff Simons Decena

07/06 2016

1.3

1.3.0.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

by Jeff Simons Decena

07/06 2016

1.2

1.2.0.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

by Jeff Simons Decena

07/06 2016

1.1

1.1.0.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

by Jeff Simons Decena

07/06 2016

1.0

1.0.0.0

MailChimp subscription

  Sources   Download

MIT

The Requires

 

by Jeff Simons Decena