PHPackages                             luminar-organization/google-authenticator - 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. luminar-organization/google-authenticator

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

luminar-organization/google-authenticator
=========================================

Google Authenticator Library for PHP

01PHP

Since Nov 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/luminar-organization/google-authenticator)[ Packagist](https://packagist.org/packages/luminar-organization/google-authenticator)[ RSS](/packages/luminar-organization-google-authenticator/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Luminar Google Authenticator
============================

[](#luminar-google-authenticator)

[![Tests Status](https://camo.githubusercontent.com/7859f3ab67cc931eea2a399e66b1d1af30033d39533fdc1af6601e5e3e48309f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c756d696e61722d6f7267616e697a6174696f6e2f676f6f676c652d61757468656e74696361746f722f74657374732e796d6c3f6c6162656c3d5465737473)](https://camo.githubusercontent.com/7859f3ab67cc931eea2a399e66b1d1af30033d39533fdc1af6601e5e3e48309f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c756d696e61722d6f7267616e697a6174696f6e2f676f6f676c652d61757468656e74696361746f722f74657374732e796d6c3f6c6162656c3d5465737473)

**Luminar Google Authenticator** is a simple library for 2FA using [authenticatorapi.com](https://authenticatorapi.com/)

Installing
----------

[](#installing)

```
composer require luminar-organization/google-authenticator
```

Functions
---------

[](#functions)

### Pairing Devices

[](#pairing-devices)

```
$authenticator = new \Luminar\GoogleAuthenticator\Authenticator();

// APP_NAME -> Name of your project
// APP_INFO -> Example user email
// SECRET_CODE -> Static variable same for every user
$authenticator->pair("APP_NAME", "APP_INFO", "SECRET_CODE")
```

### Validating

[](#validating)

```
$authenticator = new \Luminar\GoogleAuthenticator\Authenticator();

// PIN -> Combination of 6 numbers provided by user to verify them self
// SECRET_CODE -> Static variable same for every user
$authenticator->validate("PIN", "SECRET_CODE")
```

Testing
-------

[](#testing)

To run the tests, ensure you have installed all development requirements:

```
composer install
```

After that run all tests:

```
composer run test
```

License
-------

[](#license)

Luminar Google Authenticator is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/90420828?v=4)[Patryk](/maintainers/PatrykMolenda)[@PatrykMolenda](https://github.com/PatrykMolenda)

---

Top Contributors

[![PatrykMolenda](https://avatars.githubusercontent.com/u/90420828?v=4)](https://github.com/PatrykMolenda "PatrykMolenda (2 commits)")

### Embed Badge

![Health badge](/badges/luminar-organization-google-authenticator/health.svg)

```
[![Health](https://phpackages.com/badges/luminar-organization-google-authenticator/health.svg)](https://phpackages.com/packages/luminar-organization-google-authenticator)
```

###  Alternatives

[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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