PHPackages                             codybuell/laravault-auth - 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. codybuell/laravault-auth

ActiveLaravel-package[Authentication &amp; Authorization](/categories/authentication)

codybuell/laravault-auth
========================

Package for authenticating Laravel against Hashicorp's Vault.

011PHP

Since Aug 18Pushed 8y ago2 watchersCompare

[ Source](https://github.com/codybuell/laravault-auth)[ Packagist](https://packagist.org/packages/codybuell/laravault-auth)[ RSS](/packages/codybuell-laravault-auth/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravault-Auth
==============

[](#laravault-auth)

Laravel package for using Hashicorp's Vault as an Authentication Provider. Authenticates users against an instance of Vault, stores user information in the session, and handles closing of the laravel session when the vault ttl expires. Built and tested with Laravel 5.4.

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

[](#installation)

1. Install the LaravaultAuth package manually or with composer:

    - Composer

        ```
        composer require codybuell/laravault-auth

        ```
    - Manually

        ```
        git clone https://github.com/codybuell/laravault-auth.git vendor/codybuell/laravault-auth

        # edit composer.json, under autoload -> psr-4 append:

        "CodyBuell\\LaravaultAuth\\": "vendor/codybuell/laravault-auth/src"

        ```
2. Add provider to `config/app.php` providers array:

    ```
     CodyBuell\LaravaultAuth\LaravaultAuthServiceProvider::class,

    ```
3. Publish config and configure `config/laravault-auth.php`:

    ```
     php artisan vendor:publish

    ```
4. Set 'vault' as your auth provider in `config/auth.php`:

    ```
     'providers' => [
         'users' => [
             'driver' => 'vault',
         ],
     ]

    ```
5. Set auth to use username rather than email. In `app/Http/Controllers/Auth/LoginController.php` add:

    ```
     /**
      * Use usernames instead of emails.
      */
     public function username() {
       return 'username';
     }

    ```

Usage
-----

[](#usage)

### Accessing Vault Client Token

[](#accessing-vault-client-token)

### Accessing User Attributes

[](#accessing-user-attributes)

Todo
----

[](#todo)

- write tests
- add option to not tie laravel session length to vault ttl

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

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/3d7286789464b1d3d2e8965ec4ada96deb5a5cf79edff4c045c2df4fee25a05f?d=identicon)[codybuell](/maintainers/codybuell)

---

Top Contributors

[![codybuell](https://avatars.githubusercontent.com/u/1231929?v=4)](https://github.com/codybuell "codybuell (9 commits)")

### Embed Badge

![Health badge](/badges/codybuell-laravault-auth/health.svg)

```
[![Health](https://phpackages.com/badges/codybuell-laravault-auth/health.svg)](https://phpackages.com/packages/codybuell-laravault-auth)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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