PHPackages                             scaytrase/symfony-sms-interface - 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. scaytrase/symfony-sms-interface

Abandoned → [scaytrase/symfony-sms-delivery-bundle](/?search=scaytrase%2Fsymfony-sms-delivery-bundle)Library

scaytrase/symfony-sms-interface
===============================

Symfony Bundle SMS sending service

2.1.5(9y ago)54963[2 issues](https://github.com/scaytrase/symfony-sms-interface/issues)1MITPHPPHP &gt;=5.3.3

Since Aug 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/scaytrase/symfony-sms-interface)[ Packagist](https://packagist.org/packages/scaytrase/symfony-sms-interface)[ RSS](/packages/scaytrase-symfony-sms-interface/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (6)Versions (15)Used By (1)

scaytrase/symfony-sms-delivery-bundle
=====================================

[](#scaytrasesymfony-sms-delivery-bundle)

[![Latest Stable Version](https://camo.githubusercontent.com/df5a1b0cc14b15f493e5c41a7eb7b255db9b6a93e7db1857f3ef0088bf0b2ba4/68747470733a2f2f706f7365722e707567782e6f72672f7363617974726173652f73796d666f6e792d736d732d696e746572666163652f762f737461626c652e737667)](https://packagist.org/packages/scaytrase/symfony-sms-interface)[![Total Downloads](https://camo.githubusercontent.com/30425f38bebf4a367673f5a4847bc93e712334877183715ae4a348b2aebad378/68747470733a2f2f706f7365722e707567782e6f72672f7363617974726173652f73796d666f6e792d736d732d696e746572666163652f646f776e6c6f6164732e737667)](https://packagist.org/packages/scaytrase/symfony-sms-interface)[![Latest Unstable Version](https://camo.githubusercontent.com/efb69f78c6e8d499f006033a50b88980e231d662be444f2771aa1f926534efcb/68747470733a2f2f706f7365722e707567782e6f72672f7363617974726173652f73796d666f6e792d736d732d696e746572666163652f762f756e737461626c652e737667)](https://packagist.org/packages/scaytrase/symfony-sms-interface)[![License](https://camo.githubusercontent.com/382442149233a1b89b79a034040583d018a14a814981195b26bc71d9114b5f8b/68747470733a2f2f706f7365722e707567782e6f72672f7363617974726173652f73796d666f6e792d736d732d696e746572666163652f6c6963656e73652e737667)](https://packagist.org/packages/scaytrase/symfony-sms-interface)

[![Monthly Downloads](https://camo.githubusercontent.com/478bfa02a7e68266b8e3f465a6761a4b86167a0dd46b4b44c65107dba2699935/68747470733a2f2f706f7365722e707567782e6f72672f7363617974726173652f73796d666f6e792d736d732d696e746572666163652f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/scaytrase/symfony-sms-interface)[![Daily Downloads](https://camo.githubusercontent.com/e14f1dc05f86209f5e39f582c5f8d3669cc0f9ad293e46f6490b79467287a47a/68747470733a2f2f706f7365722e707567782e6f72672f7363617974726173652f73796d666f6e792d736d732d696e746572666163652f642f6461696c792e706e67)](https://packagist.org/packages/scaytrase/symfony-sms-interface)

This Symfony bundle provides basic service for sending short messages. This bundle does not provide you any finished implementation for communicating the SMS gateway. To use it you have use some transport implementation or implement a transport on your own. See [usage section](#usage) for known implementations

Features
--------

[](#features)

### Current features

[](#current-features)

- Service and configurable transports
- Ability to disable delivery via config for testing purposes
- Ability to force redirect messages for testing purposes
- Profiling via Sf2 Toolbar
- Spooling and delayed sending

### Planned features

[](#planned-features)

- Bulk sending

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

[](#installation)

This bunde could be installed via Composer

```
composer require scaytrase/symfony-sms-delivery-bundle:~2.0

```

### app/AppKernel.php

[](#appappkernelphp)

update your kernel bundle requirements as follows:

```
$bundles = array(
    //....
    new ScayTrase\SmsDeliveryBundle\SmsDeliveryBundle(),
    //....
    );
```

Configuration
-------------

[](#configuration)

Below is the configuration example and their default values

```
sms_delivery:
    spool: sms_delivery.spool.instant
    transport: sms_delivery.dummy_sender # @id of the transport service
    disable_delivery: false # disable delivery overrides spool with disabled spool
    delivery_recipient: null # delivery recipient overrides recipient when sending
```

Usage
-----

[](#usage)

To use this interface you must create a message class implementing `ShortMessageInterface` and create the implementation of the `TransportInterface` that delivers your message to end point sms gateway. You can refer my [WebSMS](https://github.com/scaytrase/symfony-websms-bundle) gateway implementation as a reference.

### Example

[](#example)

```
class MyMessage implements ShortMessageInterface { /*...*/ }

class SmsController extends Controller {

  public function sendSmsAction()
  {
    $message = new MyMessage('5552368','Help!')
    $sender = $this->get('sms_delivery.sender');
    $sender->spoolMessage($message);
    $result = $sender->flush();
    return new Response('Delivery '. $result ? 'successful' : 'failed');
  }
}
```

### Standalone usage

[](#standalone-usage)

Despite of the fact that this library is designed as Symfony bundle it could be used as standalone library for sending short messages. You should just instantiate sender service on your own.

```
    class MyProviderSmsTransport implements TransportInterface { /*...*/ }

    class MyMessage implements ShortMessageInterface { /*...*/ }

    $transport = new MyProviderSmsTransport();
    $sender = new MessageDeliveryService($transport);
    $sender->spoolMessage(new MyMessage('Message body'));
    $sender->flush(); // Default InstantSpool does not actually needs flushing but you can use another spool instead
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~80 days

Recently: every ~70 days

Total

13

Last Release

3328d ago

Major Versions

0.2.1-beta22 → 1.0-alpha12015-07-21

1.0.1 → 2.0.0-alpha2015-08-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed906771163ff68cfb365bdd3b8278a3ce1b464f94051ff7ab50c03a30110efe?d=identicon)[scaytrase](/maintainers/scaytrase)

---

Top Contributors

[![scaytrase](https://avatars.githubusercontent.com/u/6578413?v=4)](https://github.com/scaytrase "scaytrase (57 commits)")

---

Tags

phpsmssymfony-bundlesymonytransport

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/scaytrase-symfony-sms-interface/health.svg)

```
[![Health](https://phpackages.com/badges/scaytrase-symfony-sms-interface/health.svg)](https://phpackages.com/packages/scaytrase-symfony-sms-interface)
```

###  Alternatives

[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k172.9M1.8k](/packages/symfony-security-bundle)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[shopware/storefront

Storefront for Shopware

684.2M148](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[sensiolabs/gotenberg-bundle

A Symfony bundle that provides seamless integration with Gotenberg for generating PDFs and screenshots from various sources (HTML, Markdown, Office documents, URLs) with a clean, builder-based API.

210210.4k2](/packages/sensiolabs-gotenberg-bundle)[sulu/article-bundle

Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system

66409.6k2](/packages/sulu-article-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
