PHPackages                             sunnysideup/one-time-code-authentication - 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. sunnysideup/one-time-code-authentication

ActiveSilverstripe-vendormodule[Authentication &amp; Authorization](/categories/authentication)

sunnysideup/one-time-code-authentication
========================================

Allows the user to login with a code sent to their email or phone (SMS requires BYO SMS gateway)

6.0.0(2w ago)01.1k1[1 issues](https://github.com/sunnysideup/silverstripe-one-time-code-authentication/issues)[1 PRs](https://github.com/sunnysideup/silverstripe-one-time-code-authentication/pulls)1BSD-3-ClausePHP

Since Jan 4Pushed 2w agoCompare

[ Source](https://github.com/sunnysideup/silverstripe-one-time-code-authentication)[ Packagist](https://packagist.org/packages/sunnysideup/one-time-code-authentication)[ RSS](/packages/sunnysideup-one-time-code-authentication/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (18)Versions (12)Used By (1)

Silverstripe One Time Code Authentication
=========================================

[](#silverstripe-one-time-code-authentication)

[![Build Status](https://camo.githubusercontent.com/2f52ae7562426aaa0064e6e7344e4b20077ac7721963e8b8e18d4b4e3f8f2ea7/68747470733a2f2f7472617669732d63692e6f72672f73756e6e797369646575702f73696c7665727374726970652d6f6e652d74696d652d636f64652d61757468656e7469636174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sunnysideup/silverstripe-one-time-code-authentication)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2cabc8a317275a538f4032e0ddb5839cd05d16015bc6a18cdbb159f844bab391/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73756e6e797369646575702f73696c7665727374726970652d6f6e652d74696d652d636f64652d61757468656e7469636174696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sunnysideup/silverstripe-one-time-code-authentication/?branch=master)[![codecov.io](https://camo.githubusercontent.com/cd57f0972a889a3d5f6b1aa2d6b21c14dd10ce2b82f6c9956acf14c7d080d17f/68747470733a2f2f636f6465636f762e696f2f6769746875622f73756e6e797369646575702f73696c7665727374726970652d6f6e652d74696d652d636f64652d61757468656e7469636174696f6e2f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/sunnysideup/silverstripe-one-time-code-authentication?branch=master)

[![Latest Stable Version](https://camo.githubusercontent.com/78e5321782abe57bbdde4aec1523e36b4c952fb91a37f4bd8897a438e734232a/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f6f6e652d74696d652d636f64652d61757468656e7469636174696f6e2f76657273696f6e)](https://packagist.org/packages/sunnysideup/one-time-code-authentication)[![License](https://camo.githubusercontent.com/b8590b95a7c37f2815b0c017fd7f3b3e5beb2bf2fee64e8772b2475e35c17fd0/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f6f6e652d74696d652d636f64652d61757468656e7469636174696f6e2f6c6963656e7365)](https://packagist.org/packages/sunnysideup/one-time-code-authentication)[![Monthly Downloads](https://camo.githubusercontent.com/2e0e12660fd2ccc88b5fab7dca6114b62ff5349f84c9a95a82fcbdb011f8c7a5/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f6f6e652d74696d652d636f64652d61757468656e7469636174696f6e2f642f6d6f6e74686c79)](https://packagist.org/packages/sunnysideup/one-time-code-authentication)

Documentation
-------------

[](#documentation)

- [Developer Docs](docs/en/INDEX.md)
- [User Guide](docs/en/userguide.md)
- [API Docs](http://docs.ssmods.com/sunnysideup/one-time-code-authentication/classes.xhtml)

Requirements
------------

[](#requirements)

See [composer.json](composer.json) for details.

### Suggested modules

[](#suggested-modules)

See [composer.json](composer.json) for details.

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

[](#installation)

```
composer require sunnysideup/one-time-code-authentication
```

### Configuration

[](#configuration)

In the `_config` folder you will find the `one-time-code-authentication.yml.example`file that shows options for the configuration of this module.

We recommend that you:

1. copy these `one-time-code-authentication.yml.example` files into your `app/_config` folder (where available - otherwise search for `private static $` in the module to see what can be configured)
2. remove the .example extension,
3. delete the lines you do not care about, and
4. adjust the configurations that you would like to use.

Contributing
------------

[](#contributing)

We welcome any contributions. See [CONTRIBUTING.md](CONTRIBUTING.md) for more details.

Paid assistance
---------------

[](#paid-assistance)

You can pay us to create an improved / adapted version of this module for your own projects. Please contact us if you like to find out more: [www.sunnysideup.co.nz](https://www.sunnysideup.co.nz). For example, we can write tests for this module.

Author
------

[](#author)

Sunny Side Up Ltd.

Looking for Silverstripe Modules?
---------------------------------

[](#looking-for-silverstripe-modules)

To find other modules, please visit [ssmods.com](https://ssmods.com/).

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance91

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.9% 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 ~17 days

Recently: every ~32 days

Total

10

Last Release

18d ago

Major Versions

2.0.0 → 3.0.02026-01-05

3.0.0 → 4.0.02026-01-05

4.0.2 → 5.x-dev2026-04-06

5.x-dev → 6.x-dev2026-04-16

5.0.0 → 6.0.02026-06-15

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/167154?v=4)[Sunny Side Up](/maintainers/sunnysideup)[@sunnysideup](https://github.com/sunnysideup)

---

Top Contributors

[![sunnysideup](https://avatars.githubusercontent.com/u/167154?v=4)](https://github.com/sunnysideup "sunnysideup (9 commits)")[![S-GrabhamMadden](https://avatars.githubusercontent.com/u/27248899?v=4)](https://github.com/S-GrabhamMadden "S-GrabhamMadden (8 commits)")

---

Tags

Authenticationemailpasswordsmsloginuxone-time codelog-in

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sunnysideup-one-time-code-authentication/health.svg)

```
[![Health](https://phpackages.com/badges/sunnysideup-one-time-code-authentication/health.svg)](https://phpackages.com/packages/sunnysideup-one-time-code-authentication)
```

###  Alternatives

[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

123256.9k1](/packages/ellaisys-aws-cognito)[silverstripe/cms

The SilverStripe Content Management System

5253.6M1.4k](/packages/silverstripe-cms)[maize-tech/laravel-magic-login

Laravel Magic Login

18210.6k](/packages/maize-tech-laravel-magic-login)[silverstripe/mfa

Enable multi-factor authentication with fallback codes

11364.7k11](/packages/silverstripe-mfa)

PHPackages © 2026

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