keltuo/php-smartemailing
Composer 安装命令:
composer require keltuo/php-smartemailing
包简介
Smart Emailing API v3 client for PHP
README 文档
README
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
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;
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
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]
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
ToDo
See the open issues for a full list of proposed features (and known issues).
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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE for more information.
Contact
Lukas Paiskr - @keltuo - lukas@pasysdev.cz
Project Link: https://github.com/keltuo/php-smartemailing
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 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 keltuo/php-smartemailing 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Mock PSR-18 HTTP client
Asynchronous MQTT client built on React
Client for Google Directions API to add interpolated points to a route consisting of given coordinates.
Alfabank REST API integration
A Flickr wrapper to allow you to call the Flickr api with Guzzle as the backend.Goal is to have 100% Flickr api coverage rather than just upload/display photos (currently at 23%).
统计信息
- 总下载量: 8.93k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-11-09