PHPackages                             afrikpay/otp-bundle - 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. afrikpay/otp-bundle

ActiveSymfony-bundle

afrikpay/otp-bundle
===================

OTP SMS Bundle

11PHPCI failing

Since Jan 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/drchange/AfrikPay-OTPBundle)[ Packagist](https://packagist.org/packages/afrikpay/otp-bundle)[ RSS](/packages/afrikpay-otp-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

OTP Bundle
==========

[](#otp-bundle)

[![Packagist](https://camo.githubusercontent.com/177774c7e5f6e00df21a01894d0ce7d699dc2b1c938148bb146def6a327f554b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63726f6e2f63726f6e2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cron/cron-bundle)[![Build Status](https://camo.githubusercontent.com/886f22c61a6179a84eb391bb7fd2dd8ec4119c9b52ad47b9a9262b46d482e30e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f43726f6e2f53796d666f6e792d42756e646c652e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Cron/Symfony-Bundle)[![Packagist](https://camo.githubusercontent.com/767225113d0a1c157b91544a47a4e59849955214a1ffc1f1d94589fcfd6fcb62/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f43726f6e2f43726f6e2d42756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cron/cron-bundle)[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

[OTP](https://github.com/Cron/Cron) integration for symfony.

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

[](#installation)

Installing this bundle can be done through these simple steps:

1. Add the bundle to your project as a composer dependency:

```
composer require afrikpay/otp-bundle
```

2. Add the bundle to your application kernel:

```
// app/AppKernel.php
public function registerBundles()
{
    // ...
    $bundle = array(
        // ...
        new Afrikpay\OTPBundle\AfrikPayOTPBundle(),
    );
    // ...

    return $bundles;
}
```

3. Update your DB schema

```
bin/console make:migration
bin/console doctrine:migrations:migrate
```

4. Start using the bundle:

```
bin/console cron:list
bin/console cron:run
```

5. To run your cron jobs automatically, add the following line to your (or whomever's) crontab:

```
* * * * * /path/to/symfony/install/app/console cron:run 1>> /dev/null 2>&1

```

**OR**If you don't have a dedicated cron daemon (e.g. in Heroku), you can use:

```
bin/console cron:start # will run in background mode, use --blocking to run in foreground
bin/console cron:stop # will stop the background cron daemon
```

Available commands
------------------

[](#available-commands)

### list

[](#list)

```
bin/console cron:list
```

Show a list of all jobs. Job names are show with `[x]` if they are enabled and `[ ]` otherwise.

### create

[](#create)

```
bin/console cron:create
```

Create a new job.

### delete

[](#delete)

```
bin/console cron:delete _jobName_
```

Delete a job. For your own protection, the job must be disabled first.

### enable

[](#enable)

```
bin/console cron:enable _jobName_
```

Enable a job.

### disable

[](#disable)

```
bin/console cron:disable _jobName_
```

Disable a job.

### run

[](#run)

```
bin/console cron:run [--force] [job]
```

> which we borrowed from Symfony. Make sure to check out [php-cs-fixer](https://github.com/fabpot/PHP-CS-Fixer) as this will help you a lot.
> Please note that `--force` forces the job to be executed (even if disabled) based on the job schedule

### run now, independent of the job schedule

[](#run-now-independent-of-the-job-schedule)

```
bin/console cron:run --schedule_now [--force] job
```

### start

[](#start)

```
bin/console cron:start [--blocking]
```

Start the cron as a daemon. By default it forks itself to the background and suppresses any output. The `--blocking` option will keep it in the foreground and will display output. This is useful when you don't have a dedicated cron daemon (e.g. on Heroku).

### stop

[](#stop)

```
bin/console cron:stop
```

Stops the background cron daemon started with `cron:start`. This is not applicable when the daemon was started with `--blocking`.

If you would like to help, take a look at the [list of issues](http://github.com/Cron/CronBundle/issues).

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

[](#requirements)

PHP 5.5.9 or above

Author and contributors
-----------------------

[](#author-and-contributors)

Dries De Peuter -  -

See also the list of [contributors](https://github.com/Cron/CronBundle/contributors) who participated in this project.

License
-------

[](#license)

CronBundle is licensed under the MIT license.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c4cc83035a97a2f4dc46c5bfc54039b3d6517b65f801b672bcdf566d2e4fbbd9?d=identicon)[trsor.simo.dev](/maintainers/trsor.simo.dev)

### Embed Badge

![Health badge](/badges/afrikpay-otp-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/afrikpay-otp-bundle/health.svg)](https://phpackages.com/packages/afrikpay-otp-bundle)
```

PHPackages © 2026

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