PHPackages                             lamhuyvu92/valentin-laravel-aws-cognito - 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. lamhuyvu92/valentin-laravel-aws-cognito

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

lamhuyvu92/valentin-laravel-aws-cognito
=======================================

A Laravel guard for AWS Cognito user pools

1.0.7(7y ago)4112MITPHP

Since May 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/lamhuyvu92/valentin-laravel-aws-cognito)[ Packagist](https://packagist.org/packages/lamhuyvu92/valentin-laravel-aws-cognito)[ Docs](https://github.com/lamhuyvu92/valentin-laravel-aws-cognito)[ RSS](/packages/lamhuyvu92-valentin-laravel-aws-cognito/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (6)Dependencies (3)Versions (8)Used By (0)

lamhuyvu92/valentin-laravel-aws-cognito
=======================================

[](#lamhuyvu92valentin-laravel-aws-cognito)

Introduction
------------

[](#introduction)

This library contains a Laravel guard and authentication implementation for AWS Cognito user pools.

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

[](#requirements)

This library package requires PHP 7.0 or later

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

[](#installation)

### Installing via Composer

[](#installing-via-composer)

The recommended way to install is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest version:

```
composer global require lamhuyvu92/valentin-laravel-aws-cognito:dev-master
```

Usage
-----

[](#usage)

Add the service provider to the providers array in `config/app.php`.

```
'providers' => [
    ...
    lamhuyvu92\LaravelAwsCognito\ServiceProvider::class,
    ...
]
```

Add the middleware to either the middleware groups or the middleware array in `app/Http/Kernel.php`.

```
protected $middlewareGroups = [
    'api' => [
        ...
        lamhuyvu92\LaravelAwsCognito\Middleware\CognitoAuthenticationMiddleware,
        ...
    ],
];
```

```
protected $routeMiddleware = [
    ...
    'aws-cognito' => lamhuyvu92\LaravelAwsCognito\Middleware\CognitoAuthenticationMiddleware,
    ...
];
```

Publish then edit the config file.

```
php artisan vendor:publish --provider="lamhuyvu92\LaravelAwsCognito\ServiceProvider"

```

Edit the `config/auth.php` file:

```
'guards' => [
    'aws-cognito' => [
        'driver' => 'aws-cognito',
        'provider' => 'eloquent',
    ],
],
```

Copyright
---------

[](#copyright)

Reference from pmill/laravel-aws-cognito Copyright (c) 2018 valentin ()

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~14 days

Recently: every ~7 days

Total

7

Last Release

2836d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b2441f83e9ade313cfa84804b8745aec424131709731d3019506a0fb49b9b84?d=identicon)[lamhuyvu92](/maintainers/lamhuyvu92)

---

Top Contributors

[![cba-valentin](https://avatars.githubusercontent.com/u/152258102?v=4)](https://github.com/cba-valentin "cba-valentin (12 commits)")

---

Tags

phpapilaravelawsAuthenticationCognitoguard

### Embed Badge

![Health badge](/badges/lamhuyvu92-valentin-laravel-aws-cognito/health.svg)

```
[![Health](https://phpackages.com/badges/lamhuyvu92-valentin-laravel-aws-cognito/health.svg)](https://phpackages.com/packages/lamhuyvu92-valentin-laravel-aws-cognito)
```

###  Alternatives

[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

120220.7k1](/packages/ellaisys-aws-cognito)[pmill/aws-cognito

A PHP client for AWS Cognito user pools

74266.0k3](/packages/pmill-aws-cognito)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6712.1k2](/packages/hasinhayder-tyro)[benbjurstrom/cognito-jwt-guard

A laravel auth guard for JSON Web Tokens issued by Amazon AWS Cognito

1113.1k](/packages/benbjurstrom-cognito-jwt-guard)[pallant/laravel-aws-cognito-auth

An authentication driver for Laravel for authenticating users in AWS Cognito User Pools

777.7k](/packages/pallant-laravel-aws-cognito-auth)[acidjazz/humble

passwordless authentication and detailed sessioning for laravel

15136.5k](/packages/acidjazz-humble)

PHPackages © 2026

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