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)

4.0.2(3mo ago)059[1 issues](https://github.com/sunnysideup/silverstripe-one-time-code-authentication/issues)1BSD-3-ClausePHP

Since Jan 4Pushed 1mo 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 1mo ago

READMEChangelogDependencies (8)Versions (8)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

38

—

LowBetter than 85% of packages

Maintenance88

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 53.3% 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 ~5 days

Total

7

Last Release

92d ago

Major Versions

1.0.0 → 2.0.02026-01-05

2.0.0 → 3.0.02026-01-05

3.0.0 → 4.0.02026-01-05

4.0.2 → 5.x-dev2026-02-06

### Community

Maintainers

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

---

Top Contributors

[![S-GrabhamMadden](https://avatars.githubusercontent.com/u/27248899?v=4)](https://github.com/S-GrabhamMadden "S-GrabhamMadden (8 commits)")[![sunnysideup](https://avatars.githubusercontent.com/u/167154?v=4)](https://github.com/sunnysideup "sunnysideup (7 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

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

120220.7k1](/packages/ellaisys-aws-cognito)[maize-tech/laravel-magic-login

Laravel Magic Login

1808.1k](/packages/maize-tech-laravel-magic-login)

PHPackages © 2026

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