承接 prezent/ink-bundle 相关项目开发

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

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

prezent/ink-bundle

Composer 安装命令:

composer require prezent/ink-bundle

包简介

Easy responsive e-mails using Foundation and Inky

README 文档

README

Build Status

Easy responsive e-emails using Foundation and Inky

namespace AppBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller

class AppController extends Controller
{
    public function emailAction()
    {
        $message = $this->get('prezent_ink.factory')->getMessage('AppBundle:Mail:hello.eml.twig', [
            'user' => $this->getUser(),
        ]);

        $message
            ->setFrom('noreply@example.org')
            ->setTo('john.doe@example.org')
        ;

        $this->get('mailer')->send($message);
    }
}
{% extends 'PrezentInkBundle::base.eml.twig' %}

{% block stylesheets %}
    <link rel="stylesheet" href="@AppBundle/Resources/public/css/email.css" />
{% endblock %}

{% block subject %}Hello {{ user.username }}{% endblock %}

{% block body_text %}
Hello {{ user.username }},

Nice to meet you!
{% endblock %}

{% block body_html %}
<container>
    <h1>Hello {{ user.username }},</h1>
    <spacer size="16"></spacer>
    <callout>Nice to meet you!</callout>
</container>
{% endblock %}

The documentation can be found in Resources/doc

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固