PHPackages                             umanit/2fa-sms - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. umanit/2fa-sms

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

umanit/2fa-sms
==============

Extends scheb/2fa-bundle with two-factor authentication via SMS

1.0.0(1y ago)05.9k↓48%[1 issues](https://github.com/umanit/2fa-sms/issues)MITPHPPHP ^8.2CI passing

Since Mar 24Pushed 1y ago4 watchersCompare

[ Source](https://github.com/umanit/2fa-sms)[ Packagist](https://packagist.org/packages/umanit/2fa-sms)[ RSS](/packages/umanit-2fa-sms/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (9)Versions (2)Used By (0)

umanit/2fa-sms
==============

[](#umanit2fa-sms)

[![Build Status](https://github.com/umanit/2fa-sms/actions/workflows/ci.yaml/badge.svg)](https://github.com/umanit/2fa-sms/actions?query=workflow%3ACI)[![Latest Stable Version](https://camo.githubusercontent.com/490967e0ed9165f80b5ac3b0f6559bd91c03dd5cd292f12126245a4afb7c6c44/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f756d616e69742f3266612d736d73)](https://packagist.org/packages/umanit/2fa-sms)[![License](https://camo.githubusercontent.com/effeb77962203e7af97003d0648bce35987910991fc1566124badb9580102455/68747470733a2f2f706f7365722e707567782e6f72672f756d616e69742f3266612d736d732f6c6963656e73652e737667)](https://packagist.org/packages/umanit/2fa-sms)

This package extends [scheb/2fa-bundle](https://github.com/scheb/2fa-bundle) with two-factor authentication using SMS.

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

[](#installation)

```
composer require umanit/2fa-sms

```

```
// config/bundles.php
return [
    Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
    Scheb\TwoFactorBundle\SchebTwoFactorBundle::class => ['all' => true],
    Umanit\TwoFactorSms\UmanitTwoFactorSmsBundle::class => ['all' => true],
];
```

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

[](#configuration)

In order to work, the bundle uses Symfony's [Notifier](https://symfony.com/doc/current/notifier.html) component and the SMS channel managed by the `texter` service. You'll need to configure your application with an [SMS channel](https://symfony.com/doc/current/notifier.html#sms-channel) before you can use this bundle.

These are the default configuration values.

```
# Default configuration for extension with alias: "umanit_two_factor_sms"
umanit_two_factor_sms:
    enabled:              true

    # A custom form renderer service that must implement "Scheb\TwoFactorBundle\Security\TwoFactor\Provider\TwoFactorFormRendererInterface".
    form_renderer:        null

    # Twig template to pass to "Scheb\TwoFactorBundle\Security\TwoFactor\Provider\DefaultTwoFactorFormRenderer".
    template:             '@SchebTwoFactor/Authentication/form.html.twig'

    # Custom auth code generator service that must implement "Umanit\TwoFactorSms\Security\AuthCode\AuthCodeGeneratorInterface".
    code_generator:       null

    # The number of digits the generated auth code will have.
    digits:               6

    # Custom auth code sender service that must implement "Umanit\TwoFactorSms\Security\AuthCode\AuthCodeSenderInterface".
    code_sender:          null

    # A valid \DateInterval used to expire the auth code.
    expires_after:        PT15M

    # Custom auth code texter service that must implement "Umanit\TwoFactorSms\Texter\AuthCodeTexterInterface".
    code_texter:          null

    # Custom texter message generator service that must implement "Umanit\TwoFactorSms\Texter\SmsMessageGeneratorInterface".
    message_generator:    null

    # Message send by the texter. The template string [[auth_code]] will be replaced with the actual auth code.
    message:              '[[auth_code]]'

```

License
-------

[](#license)

This software is available under the [MIT](LICENSE) license.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance46

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

420d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/27f13221fde4957c93a4ed7293a6460272d626e53df227e3aae4f35aa9289e69?d=identicon)[DjLeChuck](/maintainers/DjLeChuck)

---

Top Contributors

[![DjLeChuck](https://avatars.githubusercontent.com/u/696780?v=4)](https://github.com/DjLeChuck "DjLeChuck (21 commits)")

---

Tags

symfonyAuthentication2fasmstwo-factortwo-step

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/umanit-2fa-sms/health.svg)

```
[![Health](https://phpackages.com/badges/umanit-2fa-sms/health.svg)](https://phpackages.com/packages/umanit-2fa-sms)
```

###  Alternatives

[scheb/2fa-bundle

A generic interface to implement two-factor authentication in Symfony applications

7014.0M62](/packages/scheb-2fa-bundle)[scheb/2fa-google-authenticator

Extends scheb/2fa-bundle with two-factor authentication using Google Authenticator

298.2M30](/packages/scheb-2fa-google-authenticator)[scheb/2fa-trusted-device

Extends scheb/2fa-bundle with trusted devices support

355.1M16](/packages/scheb-2fa-trusted-device)[scheb/2fa-email

Extends scheb/2fa-bundle with two-factor authentication via email

354.3M16](/packages/scheb-2fa-email)[scheb/2fa

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

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

Extends scheb/2fa-bundle with two-factor authentication using TOTP

292.7M22](/packages/scheb-2fa-totp)

PHPackages © 2026

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