Oh Dear is the all-in-one monitoring tool for your entire website. We monitor uptime, SSL certificates, broken links, scheduled tasks and more. You'll get a notifications for us when something's wrong. All that paired with a developer friendly API and kick-ass documentation. O, and you'll also be able to create a public status page under a minute. Start monitoring using our free trial now.

Manage newsletters in Laravel 5

Original – by Freek Van der Herten – 1 minute read

A few hours ago I tagged version 1.0.0 of a my new package: laravel-newsletter. It provides a very easy way to interact with email marketing services. Or maybe I should simply say MailChimp, as it is currently the only supported supported service.

After you install the package (un)subscribing an e-mail is as easy as


Newsletter::subscribe('obi-wan.kenobi@stewjon.com')
Newsletter::unsubscribe('palpatine@empire.com')

There are a few more methods provided and you can also access the underlying MailChimp API. Read all about it in the readme of the package.

I was going to add more functionality but the recent release of the new version of MailChimp's API made me rethink my plan. As soon as there is a php wrapper available for the new version of API I'll put some more work in the package.

Stay up to date with all things Laravel, PHP, and JavaScript.

You can follow me on these platforms:

On all these platforms, regularly share programming tips, and what I myself have learned in ongoing projects.

Every month I send out a newsletter containing lots of interesting stuff for the modern PHP developer.

Expect quick tips & tricks, interesting tutorials, opinions and packages. Because I work with Laravel every day there is an emphasis on that framework.

Rest assured that I will only use your email address to send you the newsletter and will not use it for any other purposes.

Comments

What are your thoughts on "Manage newsletters in Laravel 5"?

Comments powered by Laravel Comments
Want to join the conversation? Log in or create an account to post a comment.