PHPackages                             socieboy/newsletter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. socieboy/newsletter

ActivePackage[Mail &amp; Notifications](/categories/mail)

socieboy/newsletter
===================

MailChimp Subscribers Manager.

338PHP

Since Jul 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/socieboy/newsletter)[ Packagist](https://packagist.org/packages/socieboy/newsletter)[ RSS](/packages/socieboy-newsletter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Newsletter
==================

[](#laravel-newsletter)

Mailchimp manager.

Configuration
-------------

[](#configuration)

Add the service provider to the provider array on the app.php config file

```
Socieboy\Newsletter\NewsletterServiceProvider

```

Execute the command to publish on the config folder the newsletter.php file

```
php artisan vendor:publish

```

```
return [
    'lists' => [
        'test' => '123123123'
    ]
];

```

On the lists key set a name for each list id on mailchimp.

Don't forget to add to your .env file the mailchimp api key.

```
MAILCHIMP_APIKEY = 00000000000

```

Usage
-----

[](#usage)

### Subscribe an email to lists.

[](#subscribe-an-email-to-lists)

On your controller or whatever place where you need to subscribe an email to a list on mailchimp.

```
