PHPackages                             lahthony/otp-auth-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. lahthony/otp-auth-bundle

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

lahthony/otp-auth-bundle
========================

TOTP authentification

1.2.4(8y ago)537MITPHPPHP ^5.5.9 || ^7.0

Since Dec 1Pushed 8y ago2 watchersCompare

[ Source](https://github.com/LopezAnthony/LahthonyOTPAuthBundle)[ Packagist](https://packagist.org/packages/lahthony/otp-auth-bundle)[ Docs](https://github.com/LopezAnthony/LahthonyOTPAuthBundle)[ RSS](/packages/lahthony-otp-auth-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (12)Versions (7)Used By (0)

LahthonyOTPAuthBundle
=====================

[](#lahthonyotpauthbundle)

[![Build Status](https://camo.githubusercontent.com/458dcc2ff66afa08718b32457ae53db00fa283add6f27acaff5e0098996a42b3/68747470733a2f2f7472617669732d63692e6f72672f4c6f70657a416e74686f6e792f4c616874686f6e794f54504175746842756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/LopezAnthony/LahthonyOTPAuthBundle)[![StyleCI](https://camo.githubusercontent.com/bd3b9f9ad59f70df613b74f1dd670f3fe342bd97d54e4c315326036ae4d4f16d/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131323436313036322f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/112461062)[![Coverage Status](https://camo.githubusercontent.com/9069c380f0513608fc093415bcedb84861664f607afa5fc9dde6e04b79ba30aa/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4c6f70657a416e74686f6e792f4c616874686f6e794f54504175746842756e646c652f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/LopezAnthony/LahthonyOTPAuthBundle?branch=master)

[![SensioLabsInsight](https://camo.githubusercontent.com/84bc344c7d1a7e48849b5d425ad0c05853a6e06667a121d4a8b91e753720e79b/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64303062383437372d333536372d346333662d616432372d3934653666386531623936632f6269672e706e67)](https://insight.sensiolabs.com/projects/d00b8477-3567-4c3f-ad27-94e6f8e1b96c)

About :
-------

[](#about-)

This bundle permits to easy implements *2 factor authentication* in a symfony project.

**Users** will then get **TOTP** authentication by using apps like `Google Authenticator`

Let's get started. Just go through the following steps.

Step 1: Download the Bundle
---------------------------

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require lahthony/otp-auth-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Step 2: Enable the Bundle
-------------------------

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
