seven.io/craft 问题修复 & 功能扩展

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

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

seven.io/craft

最新稳定版本:v1.0.0

Composer 安装命令:

composer require seven.io/craft

包简介

Send SMS and make text-to-speech calls via seven

README 文档

README

seven logo

seven SMS & Voice for Craft CMS

Send SMS and text-to-speech messages from Craft CMS and Craft Commerce via the seven gateway.

MIT License Craft 3.1.5+ PHP 7.2+ Packagist

Features

  • SMS Messaging - Send single messages via control panel or programmatically; bulk-send to Craft Commerce customers
  • Voice Messaging - Place text-to-speech calls, with XML mode and JSON-response toggle
  • Craft Commerce Integration - Bulk messaging with country-based filtering and automatic phone-number extraction
  • Advanced Options - Delay, flash SMS, performance tracking, custom labels, foreign IDs

Prerequisites

Installation

Composer

cd /path/to/craft-project
composer require seven.io/craft
./craft install/plugin seven

Plugin Store

Install seven from the Craft Plugin Store.

Configuration

Open Settings > seven in the Craft control panel:

Field Description
API Key Your seven API key (required)
From Default sender ID. Up to 16 characters

Usage

Control Panel

  • seven SMS - Send single or bulk SMS
  • seven Voice - Place single or bulk voice calls

For bulk Commerce messaging, leave the recipient field empty and pick countries to filter.

Programmatic SMS

use Seven\Craft\Plugin;

$sms = Plugin::getInstance()->getSms();
$sms->params
    ->setTo('+4901234567890')
    ->setText('Your message')
    ->setFrom('YourCompany')
    ->setDelay('2024-12-31 23:59')
    ->setFlash(true)
    ->setLabel('campaign-2024')
    ->setPerformanceTracking(true);

$success = $sms->send();

Programmatic Voice

use Seven\Craft\Plugin;

$voice = Plugin::getInstance()->getVoice();
$voice->params
    ->setTo('+4901234567890')
    ->setText('Hello there')
    ->setFrom('YourCompany')
    ->setXml(false)
    ->setJson(true);

$success = $voice->send();

Available parameters

SMS (SmsParams): setTo, setText, setFrom, setDelay, setFlash, setForeignId, setJson, setLabel, setPerformanceTracking

Voice (VoiceParams): setTo, setText, setFrom, setXml, setJson

Error handling

send() returns true for success (API response 100) or false on failure. Detailed errors are logged via Craft's error handler.

Support

Need help? Feel free to contact us or open an issue.

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固