PHPackages                             wearesho-team/alphasms-message-delivery - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. wearesho-team/alphasms-message-delivery

ActiveLibrary

wearesho-team/alphasms-message-delivery
=======================================

Message Delivery AlphaSMS integration

3.2.0(5mo ago)01552[4 PRs](https://github.com/wearesho-team/alphasms-message-delivery/pulls)MITPHPPHP ^8.4CI failing

Since May 15Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/wearesho-team/alphasms-message-delivery)[ Packagist](https://packagist.org/packages/wearesho-team/alphasms-message-delivery)[ RSS](/packages/wearesho-team-alphasms-message-delivery/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (9)Dependencies (8)Versions (19)Used By (0)

AlphaSMS Integration
====================

[](#alphasms-integration)

[![Test & Lint](https://github.com/wearesho-team/alphasms-message-delivery/actions/workflows/php.yml/badge.svg?branch=master)](https://github.com/wearesho-team/alphasms-message-delivery/actions/workflows/php.yml)[![Latest Stable Version](https://camo.githubusercontent.com/9707f7a02edab4b1540e1cecee8cec7ad937666c67cfdfe02eff4a166fe5d32e/68747470733a2f2f706f7365722e707567782e6f72672f776561726573686f2d7465616d2f616c706861736d732d6d6573736167652d64656c69766572792f762f737461626c652e706e67)](https://packagist.org/packages/wearesho-team/alphasms-message-delivery)[![Total Downloads](https://camo.githubusercontent.com/a7397c38c642b152be79e16be0d0e233a200172a025d6b1cfc6ba06a5e1efb4f/68747470733a2f2f706f7365722e707567782e6f72672f776561726573686f2d7465616d2f616c706861736d732d6d6573736167652d64656c69766572792f646f776e6c6f6164732e706e67)](https://packagist.org/packages/wearesho-team/alphasms-message-delivery)[![codecov](https://camo.githubusercontent.com/e8481f9b4434f23d23159f036970af6217896c93cb38abfbbd014feeb7f97e01/68747470733a2f2f636f6465636f762e696f2f67682f776561726573686f2d7465616d2f616c706861736d732d6d6573736167652d64656c69766572792f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/wearesho-team/alphasms-message-delivery)

[wearesho-team/message-delivery](https://github.com/wearesho-team/message-delivery) implementation of [Delivery\\ServiceInterface](https://github.com/wearesho-team/message-delivery/blob/1.3.4/src/ServiceInterface.php)

Installation
------------

[](#installation)

```
composer require wearsho-team/alphasms-message-delivery:^3.0
```

Cli Usage
---------

[](#cli-usage)

You can use simple CLI tool to send messages and check balance:

```
# Check balance
./alphasms balance
# Send messages interactively
./alphasms send
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

- [ConfigInterface](./src/ConfigInterface.php) have to be used to configure requests. Available implementations:
- [Config](./src/Config.php) - simple implementation using class properties
- [EnvironmentConfig](./src/EnvironmentConfig.php) - loads configuration values from environment using [getenv](http://php.net/manual/ru/function.getenv.php)

VariableRequiredDescriptionALPHASMS\_SENDER\_NAMEyesSender Name for SMS (alpha-name)ALPHASMS\_API\_KEYyesCan be received on [AlphaSMS Panel](https://alphasms.ua/panel/)ALPHASMS\_WEBHOOK\_URLnoURL for Webhooks with SMS statusesVoiceOTP Service
----------------

[](#voiceotp-service)

This section describes how to use the Voice OTP functionality of the AlphaSMS service.

### Usage

[](#usage-1)

The AlphaSMS service provides a method to send one-time passwords (OTP) via voice calls. This is useful for two-factor authentication or verification processes.

```
