Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seven-io/craft
Official CraftCMS/CraftCommerce Plugin for the seven.io SMS Gateway.
https://github.com/seven-io/craft
craft-commerce craft-plugin craft3 craftcms sms
Last synced: about 2 months ago
JSON representation
Official CraftCMS/CraftCommerce Plugin for the seven.io SMS Gateway.
- Host: GitHub
- URL: https://github.com/seven-io/craft
- Owner: seven-io
- License: mit
- Created: 2021-04-16T18:59:00.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T13:16:45.000Z (about 1 year ago)
- Last Synced: 2024-04-15T18:21:04.936Z (9 months ago)
- Topics: craft-commerce, craft-plugin, craft3, craftcms, sms
- Language: PHP
- Homepage: https://plugins.craftcms.com/sms77
- Size: 318 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Official Craft [CMS](https://craftcms.com) + [Commerce](https://craftcms.com/commerce) Plugin
- Send SMS via control panel
- Send SMS via service
- Send Voice via control panel
- Send Voice via service
- Bulk SMS (Craft Commerce only)
- Bulk Voice (Craft Commerce only)## Prerequisites
- [Craft CMS](https://craftcms.com) 3.1.5 or later
- An API key from [seven](https://www.seven.io)
- (optionally) [Craft Commerce](https://craftcms.com/commerce) 2.x## Installation
This plugin is installable via [Composer](https://getcomposer.org).
Open a terminal and execute the following commands:
```bash
# navigate to your project root
cd /var/www/craft# retrieve the plugin source code via Composer
composer require seven.io/craft# install the plugin via Craft CLI
./craft install/plugin seven
```## Setup
After installing seven, go to `Settings → seven`, and enter your API key.
## Usage
How to send SMS:
```php
use Seven\Craft\Plugin; // Use the plugin$instance = Plugin::getInstance(); // init plugin
$sms = $instance->getSms(); // retrieve SMS service
$sms->params // provides a fluent interface for method chaining
->setTo('+4901234567890, +456789012345') // required (recipient(s))
->setText('HI2U!') // required (message)
->setFrom('Craft'); // optional (caller id)
$sms->send(); // dispatch$voice = $instance->getVoice(); // retrieve Voice service
$voice->params // provides a fluent interface for method chaining
->setTo('+4901234567890, +456789012345') // required (recipient(s))
->setText('HI2U!') // required (message)
->setFrom('Craft'); // optional (caller id)
$voice->send(); // dispatch
```### Support
Need help? Feel free to [contact us](https://www.seven.io/en/company/contact/).
[![MIT](https://img.shields.io/badge/License-MIT-teal.svg)](LICENSE.md)