承接 usn/newsletter-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

usn/newsletter-bundle

最新稳定版本:v0.2

Composer 安装命令:

composer require usn/newsletter-bundle

包简介

Newsletter bundle for symfony 2

README 文档

README

Newsletter bundle for Symfony 2.

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require usn/newsletter-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the Bundle

Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project:

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Usn\NewsletterBundle\UsnNewsletterBundle(),
        );

        // ...
    }

    // ...
}

Step 3: Update your database schema

php app/console doctrine:schema:update --force

Step 4: Include javascript

This bundle requires jquery. Include it in the layout template.

Run the command to install js assets

$ php app/console assets:install --symlink

Include the main.js file as below.

  <script src="{{ asset('bundles/usnnewsletter/js/main.js') }}"></script>

Step 5: update the routing file

#app/config/routing.yml

usn_newsletter:
    resource: "@UsnNewsletterBundle/Resources/config/routing.yml"

Step 6: setup confirmation email parameters

These parameters are used when sending the confirmation email after a user register it email address.

 #app/config/parameters.yml

 parameters:   
    
    confirmation_email_subject: Your auto-reply email subject
    newsletter_from_address: 'no-reply@yourdomain.com'
    newsletter_from_name: 'Sender name'

The confirmation email templates are located herer:

Resources/views/Default/comfirmation_email.html.twig
Resources/views/Default/comfirmation_email.txt.twig

How to include the newletter form into a template.

{{render(controller('UsnNewsletterBundle:Default:subscribe'))}}

Get a report on the number of subscribers by emails

The following command will send by email the number of subscribers:

php app/console usn:newsletter:report <recipient email>

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-11-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固