minstersoft/activecampaign
Composer 安装命令:
composer require minstersoft/activecampaign
包简介
ActiveCampaign API connector for APIv3 For PHP 7.0
README 文档
README
This package provides a PHP SDK for the ActiveCampaign API (v3).
Forked from testmonitor/activecampaign
For more information on the ActiveCampaign API, refer to their developer documentation.
Table of Contents
Installation
This package can be installed through Composer:
$ composer require minstersoft/activecampaign
To install and dev locally:
1. Add version in composer.json.
{
"..": "...",
"version": "1.0.0",
"...": "..."
}
2. Replace the url with your local path and run the command.
$ composer config repositories.minstersoft/activecampaign '{"type": "path", "url": "/home/vagrant/activecampaign"}'
$ composer require minstersoft/activecampaign
Make sure to use Composer's autoload:
require __DIR__.'/../vendor/autoload.php';
Add 'use' before class name
use Minstersoft\ActiveCampaign\ActiveCampaign; class ClassName { //... }
Start by creating a new instance:
$activeCampaign = new ActiveCampaign(ACTIVE_CAMPAIGN_URL, ACTIVE_CAMPAIGN_KEY);
Your API key can be found in your account on the Settings page under the "Developer" tab.
Usage
Once instantiated, you can simply call one of the methods provided by the SDK:
$activeCampaign->contacts();
This will provide you with a list of available contacts.
To create a contact, you can use the createContact method:
$contact = $activeCampaign->createContact( 'email' => 'johndoe@example.com', 'firstName' => 'John', 'lastName' => 'Doe', );
When the request was successful, $contact will contain a Contact object with the contact details.
To retrieve an existing contact or create it when it is missing:
$contact = $activeCampaign->findOrCreateContact( 'email' => 'johndoe@example.com', 'firstName' => 'John', 'lastName' => 'Doe', );
When the request was successful, $contact will contain a Contact object with the contact details.
Tests
The package contains integration tests. You can run them using PHPUnit.
$ vendor/bin/phpunit
Changelog
Refer to CHANGELOG for more information.
- Thijs Kok
- Stephan Grootveld
- Frank Keulen
- Contributors from original package
- Contributors from Minstersoft
License
The MIT License (MIT). Refer to the License for more information.
minstersoft/activecampaign 适用场景与选型建议
minstersoft/activecampaign 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 45 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 10 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「campaign」 「active」 「activecampaign」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 minstersoft/activecampaign 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 minstersoft/activecampaign 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 minstersoft/activecampaign 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP library for interacting with the v2 MailChimp REST API
Propel2 is an open-source Object-Relational Mapping (ORM) for PHP 5.5 and up.
Symfony bundle for integrating the ZfrMailChimp library
A Symfony extension to get active class base on current bundle/controller/action
LDAP user provider bundle for Symfony 6.4
Zend Framework 2 module for interacting with the v2 MailChimp API, built on top of ZfrMailChimp
统计信息
- 总下载量: 45
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-10-16