Code Monkey home page Code Monkey logo

fuelphp-mailchimp's Introduction

fuel-mailchimp

Overview

We needed mailchimp for tweetstrap.com (not available) to handle our newsletter related stuff, so i have decided to create this fuel package and share it on github. The project will be based on a PHP 5.2+ API client for v2 of the MailChimp API. Installing the package

The fuel way

  • run php oil package install fuelphp-mailchimp (you will need to add my git to your sources in your package cofiguration file: make a copy of the package configuration file located @ \home\fuelphp\fuel\core\config\package.php into your \home\fuelphp\fuel\app\config\package.php, then add github.com/anis-marrouchi to sources
  • Rename fuelphp-mailchimp folder located @ fuel/packages/ to mailchimp

The github way

  1. Clone (git clone git://github.com/anis-marrouchi/fuelphp-mailchimp) / download
  2. Rename folder to mailchimp and place in fuel/packages/

Configuration

  1. Edit fuel/packages/mailchimp/config/mailchimp.php by adding your Mailchimp api
  2. Add 'mailchimp' to the 'always_load/packages' array in app/config/config.php. You can also call Fuel::add_package('mailchimp') whenever you need it).
  3. Have fun :)

Getting started

A basic example: Retrieving all of the lists defined for your user account

function action_welcome() { $mailchimp = new Mailchimp(); $lists = $mailchimp->lists->getList(); }

More examples

Read and follow the api documentation located in the docs folder.

Support us

Support us by giving a Star to our project: twittstrap.

A special thanks to the guys at fuelphp.

fuelphp-mailchimp's People

Contributors

anis-marrouchi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ranlt

fuelphp-mailchimp's Issues

Exception Class not found

Hello,

I was testing errors and I get the following exception :

ErrorException [ Fatal Error ]:
Class 'Mailchimp_ValidationError' not found

it seems that Mailchimp exception are not in the namespace.

Any help ?

thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.