承接 keltuo/php-smartemailing 相关项目开发

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

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

keltuo/php-smartemailing

Composer 安装命令:

composer require keltuo/php-smartemailing

包简介

Smart Emailing API v3 client for PHP

README 文档

README

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Smart Emailing PHP Client Library v3

The UnOfficial (maybe one day) PHP library for using the SmartEmailing v3 API.
Explore the docs »

Examples · Report Bug · Request Feature

Table of Contents
  1. Getting Started
  2. Usage
  3. Tests
  4. Api Coverage Tree
  5. ToDo - report bugs
  6. Contributing
  7. License
  8. Contact

Getting Started

Before using this library, you must have a valid API Key. To get an API Key, please log in to your SmartEmailing account.

Installation

This library requires PHP 8 and higher.

The recommended way to install the SmartEmailing PHP Library is through composer.

# Install Composer
curl -sS https://getcomposer.org/installer | php
composer require keltuo/php-smartemailing

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';
use SmartEmailing\SmartEmailing;

(back to top)

Usage

use SmartEmailing\SmartEmailing;
// Create an Api instance with your username and apiKey.
$sm = new SmartEmailing('username', 'api-key');

// Call shortcut method for request Contacts
$sm->contacts()
    ->getList()->getData();

For more examples, please refer to the Documentation

(back to top)

Tests

In project is Docker Compose file, which support PHP8-cli and composer image.

Basic usage

Download composer dependecy and run Unit Tests

docker-compose up

How to set up PHP storm for Run test via docker

[link]

(back to top)

Api coverage tree

SmartEmailing Doc API V3

https://app.smartemailing.cz/docs/api/v3/index.html

  • Tests Code Examples | doc api
    • Aliveness test
    • GET Login test
    • POST Login test
  • Contactlists Code Examples | doc api
    • Count of added contacts in list
    • Create new Contactlist
    • Distribution of Contactlist
    • Get Contactlists
    • Get single Contactlist
    • Truncate Contactlist
    • Update Contactlist
  • Customfields Code Examples | doc api
    • Create new Customfield
    • Delete Customfield
    • Get Customfield values
    • Get Customfields
    • Get single Customfield
  • Automation Code Examples | doc api
    • Trigger event
  • Contacts Code Examples | doc api
    • Change e-mail address of single contact
    • Forget contact
    • Get Contacts
    • Get single Contact
  • Contacts in lists Code Examples | doc api
    • Get all Contacts in list
    • Get confirmed Contacts in list
    • Get unsubscribed Contacts in list
  • Custom campaigns Code Examples | doc api
    • Send bulk custom SMS
    • Send bulk custom emails
    • Send transactional emails
  • Customfield Options Code Examples | doc api
    • Create new Customfield option
    • Delete Customfield option
    • Get Customfield options
    • Get single Customfield option
    • Update Customfield option
  • E shops Code Examples | doc api
    • Add Placed order
    • Import orders in bulk
  • Emails Code Examples | doc api
    • Create e-mail from template
    • Create new E-mail
    • Get E-mails
    • Get confirmation emails
    • Get single E-mail
  • Generic collections TODO
    • Bulk upsert items
    • Delete item
  • Exchange collections TODO
    • Get items
    • Get single item
  • Generic events TODO
    • Bulk upsert events
    • Delete event
    • Get events
    • Get single event
  • Import Code Examples | doc api
    • Import contacts
  • Newsletter Code Examples | doc api
    • Create newsletter
  • Processing purposes Code Examples | doc api
    • Create new Processing purpose
    • Get Processing purpose connections
    • Get Processing purposes
    • Revoke Processing purpose connection
  • Scoring Code Examples | doc api
    • Scoring result history for all contacts
  • Stats Code Examples | doc api
    • Get campaign sent stats
    • Get newsletter stats summaries
  • Transactional emails Code Examples | doc api
    • Get transactional email ids
  • Web Forms Code Examples | doc api
    • Get all Web Form ids and names
    • Get single Web Form structure
  • Webhooks Code Examples | doc api
    • Create new Webhook
    • Delete Webhook
    • Get Webhooks

(back to top)

ToDo

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

Lukas Paiskr - @keltuo - lukas@pasysdev.cz

Project Link: https://github.com/keltuo/php-smartemailing

(back to top)

keltuo/php-smartemailing 适用场景与选型建议

keltuo/php-smartemailing 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8.93k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2021 年 11 月 09 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「php」 「api」 「client」 「smart」 「emailing」 「smart emailing」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

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

围绕 keltuo/php-smartemailing 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 8.93k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 12
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-11-09