Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Web Development Blog:
Add a MailChimp subscribe feature to your contact form
May 05, 2015 @ 12:14:13

The Web Development Blog has a tutorial posted showing how to add a Mailchimp "subscribe" feature to your current contact forms. They make use of the MailChimp API wrapper library to make the calls back to the service and subscribe the user at their request.

MailChimp is a great email marketing service provider with an easy to use control panel and features like: campaign management (RSS-driven, A/B Split, Plain-text and regular), statistics, auto-responder and a complete set of list management tools. They offer different ways to place a subscriber form on your website or blog. If you to like add the MailChimp subscribe feature to your existing contact form you need to add some custom code.

They start with a few things you'll need to do to prepare for the connection including the setup of an API key to make the request. He provides a simple "Contact Us" form for reference and the code needed on submit to validate the input and make the subscription call to the API with the email the user provided. He also includes a bit of response handling.

tagged: mailchimp tutorial subscribe contactus form api request

Link: http://www.web-development-blog.com/archives/mailchimp-subscribe-contact-form/

SitePoint PHP Blog:
Can Great Apps Be Written in PHP - An Interview Series
Apr 15, 2014 @ 13:05:34

Matthew Setter has started off a series of posts on the SitePoint PHP blog with the first post interviewing community members to answer one main question, "can great apps be written in PHP?"

I read an old post, circa 2010, on the MailChimp blog a little while ago, about their experience using PHP. It struck a chord with me, because the sentiments they shared I’ve felt myself, and heard echoed many times over the years. [...] Despite its successes, or people’s successes with it (a la Facebook, MailChimp, Hailo, Google, and others), it’s inferred we should use languages which had their foundations as pure languages; not ones which came to be a language, as PHP evolved into over time.

He references some of the other comments in the Mailchimp article about their experience with the language along with mentions of a few others. He wonders if these negative comments are true and, to get some answers, searches out other developers and their opinions. In this first interview he talks with Bobby Deveaux about his background in the language, what he'd like to see added and more.

tagged: application opinion mailchimp design language interview bobbydeveaux

Link: http://www.sitepoint.com/can-great-apps-written-php-interview-series

TrueLogic.org:
Integrate the Mailchimp API with your PHP application
Jul 30, 2012 @ 11:17:21

In this new tutorial to the TrueLogic.org site, they show you how to use the Mailchimp (using a library) from your application.

For those unfamiliar with Mailchimp it is an online service for handling subscribers and newsletters. It is mainly used to handle subscription lists and sending newsletters via its Mailchimp API which has wrappers and integration features for various languages/platforms. [...] In this article we will take a quick look at how to integrate this with your PHP application. If you want a detailed reference on integration then its better to look at the official API documentation. Here, we just want to give a simple and practical explanation on how to go about it.

Once you've gotten an API key, you can follow along with the tutorial. They show you how to subscribe to lists, create campaigns, unsubscribe from a list and delete a campaign.

tagged: mailchimp tutorial api integration

Link:

Web Development Blog:
Integrate your MailChimp Newsletter Subscription
Oct 26, 2009 @ 12:49:34

On the Web Development Blog there's a recent post looking at the integration of the MailChimp mailing list service with your current application for list management.

MailChimp is a great mailing list provider with a great control panel and many useful features like: campaign management, statistics, responders and complete set of List management tools. They offer also an small code snippet to place a subscription form on your website. This form powered by jQuery is good enough for most common cases, but what if you like to combine your newsletter subscription with a standard function like contact or registration form?

They show you how to create the front end - a HTML form pointing to your own PHP script - and the PHP code to make a cURL request over to the MailChimp servers to subscribe the given email address to your list.

tagged: mailchimp newseletter tutorial

Link: