TobyMaxham / kraut-newsletter by TobyMaxham

A package to manage newsletters in larave 5
12
6
2
Package Data
Maintainer Username: TobyMaxham
Maintainer Contact: git2015@maxham.de (TobyMaxham)
Package Create Date: 2015-07-16
Package Last Update: 2015-08-21
Language: PHP
License: MIT
Last Refreshed: 2024-03-23 03:03:34
Package Statistics
Total Downloads: 12
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 6
Total Watchers: 2
Total Forks: 2
Total Open Issues: 0

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('Heiko@nothing-on-website.net');

// Attach the subscriber on a NewsletterList.
Newsletter::subscribe('francis@clouding.net', 'Evil Mailing');

// Add some user informations
Newsletter::subscribe('Heiko@nothing-on-website.net', ['firstname' => 'Heiko'], 'The Simple List');

Also you can remove a subscriber.


// Remove from all Newsletter Lists and delete from subscriber
Newsletter::unsubscribe('francis@clouding.net');

// Only remove from a special list
Newsletter::unsubscribe('abraham@krauts.ru', '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).