LaravelPackages.net
Acme Inc.
Toggle sidebar
tailored/laravel-newsletter

A Laravel 5 Package for adding newsletter signup (and unsubscribe) functionality to a web site

11
0
v0.1.0
About tailored/laravel-newsletter

tailored/laravel-newsletter is a Laravel package for a laravel 5 package for adding newsletter signup (and unsubscribe) functionality to a web site. It currently has 0 GitHub stars and 11 downloads on Packagist (latest version v0.1.0). Install it with composer require tailored/laravel-newsletter. Discover more Laravel packages by tailored or browse all Laravel packages to compare alternatives.

Last updated

Laravel Newsletter Signup

A Laravel 4 Package for adding newsletter signup (and unsubscribe) functionality to a web site

Features

  • Partials for a signup and an unsubscribe form, that you can include in your own views
  • Controller actions to handle the submissions of the forms, which can handle normal (redirects to previous page), or AJAX requests (responds with JSON with status code and message)
  • Translation approach for customising labels, buttons, feedback messages and validation errors
  • Currently only supports saving to a database through a supplied Eloquent model (migration included), but will hopefully be extended to support mailing list API services in future
  • Includes a FrozenNode/Laravel-Administrator config file with Download Signups CSV and Download Unsubscribes CSV buttons. You can filter by dates on the created_at and deleted_at fields to get newly created and newly deleted emails to upload new subscriptions and unsubscriptions to your mailer
  • Twitter bootstrap compatible markup and class names for the forms
  • Unsubscribing has the affect of deleting (soft delete) the email address from the signups table
  • Re-subscribing has the affect of restoring (restore from soft delete) the email address in the signups table

Installation

Add the following to you composer.json file

"fbf/laravel-newsletter-signup": "dev-master"

Run

composer update

Add the following to app/config/app.php

'Fbf\LaravelNewsletterSignup\LaravelNewsletterSignupServiceProvider'

Publish the config

php artisan config:publish fbf/laravel-newsletter-signup

Run the migration

php artisan migrate --package="fbf/laravel-newsletter-signup"

Optionally copy the administrator config to your administrators model config directory, if you have one

Configuration

Coming soon

Usage

There is a route and a view supplied for rendering both the signup and unsubscribe forms, and you can configure the actual view and the actual uri in the config file.

However, you will most likely want to just @include one of the partials somewhere in your existing views, for example:

@include('laravel-newsletter-signup::signup')

or

@include('laravel-newsletter-signup::unsubscribe')

This will render the sign up or the unsubscribe form.

Administrator

You can use the excellent Laravel Administrator package by frozennode to view and download your signups and unsubscribes.

http://administrator.frozennode.com/docs/installation

A ready-to-use model config file for the Signup model (newsletter.php) is provided in the src/config/administrator directory of the package

Comments