PHPackages                             josuecruz/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. josuecruz/aws-cognito

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

josuecruz/aws-cognito
=====================

A PHP client for AWS Cognito user pools

096PHP

Since Jan 19Pushed 3y agoCompare

[ Source](https://github.com/josuecruz/aws-cognito)[ Packagist](https://packagist.org/packages/josuecruz/aws-cognito)[ RSS](/packages/josuecruz-aws-cognito/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

pmill/aws-cognito
=================

[](#pmillaws-cognito)

[![Downloads](https://camo.githubusercontent.com/a75b4ccd46828dd0029c03eeb617a25bd6115f861268ed4be58519a985a6e264/68747470733a2f2f706f7365722e707567782e6f72672f706d696c6c2f6177732d636f676e69746f2f646f776e6c6f616473)](https://camo.githubusercontent.com/a75b4ccd46828dd0029c03eeb617a25bd6115f861268ed4be58519a985a6e264/68747470733a2f2f706f7365722e707567782e6f72672f706d696c6c2f6177732d636f676e69746f2f646f776e6c6f616473)[![Build Status](https://camo.githubusercontent.com/e76e1f227a4d5d50611d5d0e43cea9e56ee48e6b19fa7dcfebd26d247b07942d/68747470733a2f2f7472617669732d63692e636f6d2f706d696c6c2f6177732d636f676e69746f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/pmill/aws-cognito)

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

[](#introduction)

This library contains a PHP client for AWS Cognito user pools.

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

[](#requirements)

This library package requires PHP 7.1 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:

```
php composer.phar require pmill/aws-cognito
```

Usage
-----

[](#usage)

There are example usage scripts in the `examples/` folder, copy `examples/config.example.php` to `examples/config.php`before running them.

Version History
---------------

[](#version-history)

0.2.11 (06/01/2020)

Added method to get a user by an access token - bjoernHeneka

0.2.10 (21/10/2019)

- Added tests - [franjid](https://github.com/franjid)

0.2.9 (17/10/2019)

- Added method to all administrators to delete a user - [bjoernHeneka](https://github.com/bjoernHeneka)

0.2.8 (28/01/2019)

- Added method to get user groups - [abelland](https://github.com/abelland)

0.2.7 (17/08/2018)

- Added method to get user details - [brettmc](https://github.com/brettmc)

0.2.6 (27/06/2018)

- Added method to update a user's custom variables - [bjoernHeneka](https://github.com/bjoernHeneka)

0.2.5 (26/06/2018)

- Added method to add a user to a group - [bjoernHeneka](https://github.com/bjoernHeneka)

0.2.4 (22/04/2018)

- Bugfix - Cognito::signUp requires string attributes

0.2.3 (27/01/2018)

- Mapped additional error responses to exceptions

0.2.2 (27/01/2018)

- Added handling for password reset required responses

0.2.1 (25/01/2018)

- Added method to return full token payload

0.2.0 (25/01/2018)

- Replaced spomky-labs/jose library with web-token/jwt-signature
- Added handling for authentication challenges
- Removed jwt key set caching code, replaced with getter/setter

0.1.3 (12/11/2017)

- Returned generated cognito username when registering

0.1.2 (20/05/2017)

- Added method to refresh authentication tokens

0.1.1 (30/04/2017)

- Returned username when verifying access tokens

0.1.0 (28/04/2017)

- First public release of aws-cognito

Copyright
---------

[](#copyright)

pmill/aws-cognito Copyright (c) 2017 pmill () All rights reserved.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66% 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/b03d440d95a248107a256761e4fd97faad226d730a46960f576bef6004416d87?d=identicon)[josuecruz](/maintainers/josuecruz)

---

Top Contributors

[![pmill](https://avatars.githubusercontent.com/u/3912365?v=4)](https://github.com/pmill "pmill (33 commits)")[![josuecruz](https://avatars.githubusercontent.com/u/6546545?v=4)](https://github.com/josuecruz "josuecruz (8 commits)")[![franjid](https://avatars.githubusercontent.com/u/3618928?v=4)](https://github.com/franjid "franjid (4 commits)")[![bjoernHeneka](https://avatars.githubusercontent.com/u/10229990?v=4)](https://github.com/bjoernHeneka "bjoernHeneka (2 commits)")[![evgalak](https://avatars.githubusercontent.com/u/6259298?v=4)](https://github.com/evgalak "evgalak (1 commits)")[![brettmc](https://avatars.githubusercontent.com/u/4978962?v=4)](https://github.com/brettmc "brettmc (1 commits)")[![amanfrinati](https://avatars.githubusercontent.com/u/12152862?v=4)](https://github.com/amanfrinati "amanfrinati (1 commits)")

### Embed Badge

![Health badge](/badges/josuecruz-aws-cognito/health.svg)

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

###  Alternatives

[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)[illuminate/auth

The Illuminate Auth package.

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

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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