ossbrownie/esputnik
Composer 安装命令:
composer require ossbrownie/esputnik
包简介
Marketing automation system ESputnik.
README 文档
README
Marketing automation system ESputnik.
curl
A basic CURL wrapper for PHP (see http://php.net/curl for more information about the libcurl extension for PHP)
Requirements
- PHP >= 5.4
- EXT-CURL = *
Installation
Add a line to your "require" section in your composer configuration:
{
"require": {
"ossbrownie/esputnik": "0.1.3"
}
}
Usage
$eSputnik = new ESputnik( new HTTPClient( new CurlClient(), new Config([ 'login' => 'tester', 'password' => 'passwd' ]) ) ); { $version = $eSputnik->version(); } { $contact = new Contact(); $contact ->setFirstName('FName') ->setLastName('LName') ->setContactKey('contact@site.com'); $channelList = new ChannelList(); $channelList->add(new EmailChannel([ 'value' => 'tester@site.com' ])); $fieldList = new FieldList(); $fieldList ->add(new Field([ 'id' => 12345, 'value' => 'CustomValue1', ])) ->add(new Field([ 'id' => 12346, 'value' => 'CustomValue2', ])); $contact ->setFieldList($fieldList); $contact ->setChannelList($channelList); $subscribe = new Subscribe(); $subscribe ->setFormType('test_type') ->getGroups()->add(new Group([ 'name' => 'Test group' ])); $response = $eSputnik->contactSubscribe($contact, $subscribe); } { $addressbooks = $eSputnik->addressbooks(); } { $groups = $eSputnik->groups(); } { $params = new ParamList(); $params ->add(new Parameter([ 'name' => 'EmailAddress', 'value' => 'tester@site.com', ])); $eSputnik->event(new Event([ 'eventTypeKey' => 'test-test', 'keyValue' => 'test-' . time(), 'params' => $params ])) }
Tests
To run the test suite, you need install the dependencies via composer, then run PHPUnit.
$> composer.phar install $> ./vendor/bin/phpunit --colors=always --bootstrap ./tests/bootstrap.php ./tests
License
HttpClient is licensed under the MIT License
Contact
Problems, comments, and suggestions all welcome: oss.brownie@gmail.com
ossbrownie/esputnik 适用场景与选型建议
ossbrownie/esputnik 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 73.57k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2017 年 06 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「esputnik」 「brownie」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ossbrownie/esputnik 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ossbrownie/esputnik 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ossbrownie/esputnik 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A collection of general utilities for simplifying common tasks that are solved by various Brownie packages.
A simple HTTP client for sending HTTP requests and receiving responses based on CURL.
API access to a single marketing management platform 'CRM-system bpm’online'
Allows you to receive current exchange rates from various sources and convert them.
Recover Your Abandoned Carts and Turn Them into Sales.
Marketing automation system ESputnik.
统计信息
- 总下载量: 73.57k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-04