christianezeani/mailchimp 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

christianezeani/mailchimp

Composer 安装命令:

composer require christianezeani/mailchimp

包简介

MailChimp API wrapper

README 文档

README

Latest Stable Version Build Status Total Downloads Latest Unstable Version License

Mailchimp PHP wrapper provides a model based implementation for MailChimp API.

Installation

Package available on Packagist, and can be installed via Composer

If you're using Composer to manage dependencies, you can use

composer require christianezeani/mailchimp

Using on Laravel

For Laravel 5.5 and later, a service is automatically registered. For lower versions, manually register the service provider in config/app.php as shown below:

<?php

return [
  ...
  
  "providers" => [
    ...
    MailChimp\Framework\Laravel\MailChimpServiceProvider::class
  ]

  ...
];

Add your MailChimp API key environment variable to the projects's .env file (for development only):

MAILCHIMP_API_KEY=[Your API Key]

You can then inject MailChimp into your services and controllers.

Note that the vendor folder and the vendor/autoload.php script are generated by Composer; they are not part of MailChimp PHP Wrapper.

Alternatively, if you're not using Composer, load /path/to/mailchimp/autoload.php file manually:

<?php
require_once '/path/to/mailchimp/autoload.php';

A Simple Example

<?php
use MailChimp\Config;
use MailChimp\MailChimp;
use MailChimp\Models\Lists\Audience;

$config = new Config('_your_api_key_');
$mailChimp = new MailChimp($config);

$audience = $mailChimp->audience();

$audience->create([
  'name' => 'MailChimp Test',
  'contact' => [
    'company' => 'Demo Company Inc.',
    'address1' => 'Just a demo address',
    'city' => 'Nnewi South',
    'state' => 'Anambra',
    'zip' => '23401',
    'country' => 'Nigeria',
    'phone' => '+2347000000000'
  ],
  'permission_reminder' => 'Demo permission reminder',
  'campaign_defaults' => [
    'from_name' => 'Christian Ezeani',
    'from_email' => 'christian@example.com',
    'subject' => 'Demo Subject',
    'language' => 'en'
  ],
  'email_type_option' => false,
  'visibility' => 'prv'
]);

You'll find plenty more to play with in the examples page.

Documentation

Visit the Project site. If you're having trouble, this should be the first place you look as it's the most frequently updated.

Examples of how to use MailChimp PHP Wrapper for common scenarios can be found in the examples page.

A Complete generated API documentation is available online.

You can generate complete API-level documentation by running composer docs in the top-level folder, and documentation will appear in the docs/api folder, though you'll need to have PHPDocumentor installed. You may find the unit tests a good source of how to do various operations such as creating audience, subscribing and unsubscribing members, and many more.

christianezeani/mailchimp 适用场景与选型建议

christianezeani/mailchimp 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 259 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 05 月 31 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 christianezeani/mailchimp 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 christianezeani/mailchimp 我们能提供哪些服务?
定制开发 / 二次开发

基于 christianezeani/mailchimp 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-31