定制 fbf/laravel-newsletter-signup 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fbf/laravel-newsletter-signup

Composer 安装命令:

composer require fbf/laravel-newsletter-signup

包简介

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

README 文档

README

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

统计信息

  • 总下载量: 574
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-11-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固