Skip to content

TobyMaxham/kraut-newsletter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Kraut Newsletter package

Total Downloads Latest Stable Version Latest Unstable Version License

A package to manage newsletter in Laravel 5.

Installation

Register the Service Provider

// config/app.php
'providers' => [
    ...
    'TobyMaxham\Newsletter\NewsletterServiceProvider',
    ...
];

Documentation

We currently have essentially no documentation at the moment, but are working on it, and are open to pull requests.

How to use

Register a new subscriber

// Simply add a new subscriber.
Newsletter::subscribe('[email protected]');

// Attach the subscriber on a NewsletterList.
Newsletter::subscribe('[email protected]', 'Evil Mailing');

// Add some user informations
Newsletter::subscribe('[email protected]', ['firstname' => 'Heiko'], 'The Simple List');

Also you can remove a subscriber.

// Remove from all Newsletter Lists and delete from subscriber
Newsletter::unsubscribe('[email protected]');

// Only remove from a special list
Newsletter::unsubscribe('[email protected]', 'Free Tutorials');

The name

By using this package you'll get more time to eat kraut.

License

TobyMaxham'S Kraut Newsletter is licensed under The MIT License (MIT).

About

A package to manage newsletter in Laravel 5.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages