zirak/silverstripe-mailchimp
Composer 安装命令:
composer require zirak/silverstripe-mailchimp
包简介
Adds mailchimp integration to SilverStripe, eventually inside a widget
README 文档
README
MailChimp subscription form
The form could be injected into a widget, or used inside a page through the MailChimp extension
Maintainer Contact
Gabriele Brosulo [gabriele.brosulo (at) zirak (dot) it]
Features
- Subscription widget form
- Static function callable from outside
Requirements
- Silverstripe framework 3.1.*
- Silverstripe cms 3.1.*
Suggestions
- silverstripe/widget
- zirak/widget-pages-extension
Install
Install it through composer:
composer require zirak/silverstripe-mailchimp
Using in a page
Extend the Page class (or whatever class you want to use) whit the MailChimp extension:
--- Name: mailchimp-extensions --- Page: extensions: - MailChimp
Then render the $McSubscribeForm variable inside your template:
<% include SideBar %>
<div class="content-container unit size3of4 lastUnit">
<article>
<h1>$Title</h1>
<div class="content">$Content</div>
</article>
$Form
$PageComments
$McSubscribeForm
</div>
Using inside a widget
Simply use the MailChimpSubscribe widget as usual documentation here
Using inside a widget with widget-pages-extension
Define the widgetareas in your pages, like stated in widget-pages-extension module After that define which widget are allowed for your pages, in particular MailChimpSubscribe.
For example your Page.php will become
class Page extends SiteTree { private static $db = array( ); private static $has_one = array( 'SideBar' => 'WidgetArea' ); private static $allowed_widgets = array( 'MailChimpSubscribe' ); }
Run a /dev/build?flush=all and enjoy your widgets. Due to a known issue in widget-pages-extension you have to save each page you will need to put the widgets on. For more information about how to use the widgets please see the widget-pages-extension module documentations
Usage
- Configure your MailChimp APIKEY and ListID
- Enable the widget
- Play with the mailchimp.yml config file in your mysite folder, in conjunction with the MailChimp configurations. Follow a sample mailchimp.yml
--- Name: mailchimp --- MailChimpController: #apikey - see http://admin.mailchimp.com/account/api apikey: 'afe564e2dbbeb74f392de68f927ac326ef4-us6' # A List Id to run examples against. use lists() to view all # Also, login to MC account, go to List, then List Tools, and look for the List ID entry listid: '8e5f26f915' redirect: true redirect_ok: 'reg-ok/' redirect_ko: 'reg-ko/' country: true topics: true topicsArr: ['Web development', 'Sysadmin', 'PHP', 'Javascript', 'HTML & CSS'] otherTopic: true
zirak/silverstripe-mailchimp 适用场景与选型建议
zirak/silverstripe-mailchimp 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 88 次下载、GitHub Stars 达 2, 最近一次更新时间为 2014 年 11 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「mailchimp」 「newsletter」 「silverstripe」 「widget」 「mailinglist」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 zirak/silverstripe-mailchimp 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 zirak/silverstripe-mailchimp 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 zirak/silverstripe-mailchimp 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
MailChimp OAuth 2.0 Client Provider for The PHP League OAuth2-Client
Analytics chooser extensions for site settings.
Manage newsletters in Laravel
The Automated Provision of Email Services (APES) module will allow you to set up an automated sync mechanism between the SilverStripe Member DataObject and MailChimp.
Sendrill DB
统计信息
- 总下载量: 88
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2014-11-12