PHPackages                             flatline/authy-laravel - 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. flatline/authy-laravel

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

flatline/authy-laravel
======================

3573PHP

Since Jan 30Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Cosmicist/authy-laravel)[ Packagist](https://packagist.org/packages/flatline/authy-laravel)[ RSS](/packages/flatline-authy-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

AuthyLaravel
============

[](#authylaravel)

This is a really simple laravel package that wraps Authy\_Api.

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

[](#installation)

1. Install the `flatline/authy-laravel` package

    ```
    $ composer require "flatline/authy-laravel:dev-master"
    ```
2. Update `app/config/app.php` to activate Authy

    ```
    # Add `AuthyLaravelServiceProvider` to the `providers` array
    'providers' => array(
        ...
        'Flatline\AuthyLaravel\AuthyLaravelServiceProvider',
    )

    # Add the `Authy` facade to the `aliases` array
    'aliases' => array(
        ...
        'Authy' => 'Flatline\AuthyLaravel\Facades\Authy',
    )
    ```

The facade is not required, as you can request the Authy\_Api class through the container with any variation of the following:

```
$authy = app('authy');

// or:

$authy = App::make('Authy_Api');

// or even:

class Foo
{
    protected $authy;

    public function __construct(\Authy_Api $authy)
    {
        $this->authy = $authy;
    }
}
```

In all of the cases, the calss will be automatically initialized with your corresponding API key and url (production or sandbox) before injection.

Configuration
-------------

[](#configuration)

1. Generate a template Authy config file

    ```
    $ php artisan config:publish flatline/authy-laravel
    ```
2. Update `app/config/packages/flatline/authy-laravel/config.php` with your Authy API keys and turn on or off sandbox mode:

    ```
    return [
        /*
        |--------------------------------------------------------------------------
        | Sandbox Mode
        |--------------------------------------------------------------------------
        |
        | While you're developing your application you might want to work on the
        | sandbox environment. To do so, just set this variable to "true".
        |
        */
        'sandbox' => false,

        /*
        |--------------------------------------------------------------------------
        | API Keys
        |--------------------------------------------------------------------------
        |
        | First, you'll need to create your application on the Authy Dashboard.
        | Once you created your Authy App, copy the API keys and paste them here.
        |
        */
        'api_key' => 'your-api-key',
        'sandbox_api_key' => 'your-sandbox-api-key',
    ];
    ```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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://www.gravatar.com/avatar/019c54e641913619a9ac66163a02515fa8187062c7128d877903cbc4acfd5391?d=identicon)[Cosmicist](/maintainers/Cosmicist)

---

Top Contributors

[![Cosmicist](https://avatars.githubusercontent.com/u/1039580?v=4)](https://github.com/Cosmicist "Cosmicist (3 commits)")

### Embed Badge

![Health badge](/badges/flatline-authy-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/flatline-authy-laravel/health.svg)](https://phpackages.com/packages/flatline-authy-laravel)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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