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

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

abhi36/aws-cognito-php
======================

A PHP client for AWS Cognito user pools

v0.2.12(2y ago)08MITPHP

Since Apr 28Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (20)Used By (0)

abhi36/aws-cognito-php
======================

[](#abhi36aws-cognito-php)

[![Downloads](https://camo.githubusercontent.com/5074fd62a8dba372f7420608056eddf4ad73d498cc3eca5ff5fac5f92d6c37ae/68747470733a2f2f706f7365722e707567782e6f72672f6162686933362f6177732d636f676e69746f2d7068702f646f776e6c6f616473)](https://camo.githubusercontent.com/5074fd62a8dba372f7420608056eddf4ad73d498cc3eca5ff5fac5f92d6c37ae/68747470733a2f2f706f7365722e707567782e6f72672f6162686933362f6177732d636f676e69746f2d7068702f646f776e6c6f616473)[![Build Status](https://camo.githubusercontent.com/8ce05a6d0638da8635ed2f271ae9d5a161f47f508db8a5f5c33bdec30c17908a/68747470733a2f2f7472617669732d63692e636f6d2f6162686933362f6177732d636f676e69746f2d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/abhi36/aws-cognito-php)

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 abhi36/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 (01/04/2020)

- Added fresh repo with important changes from [abhi36](https://github.com/abhi36)

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)

abhi36/aws-cognito-php Copyright (c) 2023 Abhijeet () All rights reserved.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~151 days

Recently: every ~444 days

Total

17

Last Release

885d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/389e6a11549a5ee158c19b8b2fcab6f74c19457ed58b21fea3d80ad4b7b74aeb?d=identicon)[abhijeet](/maintainers/abhijeet)

---

Top Contributors

[![pmill](https://avatars.githubusercontent.com/u/3912365?v=4)](https://github.com/pmill "pmill (33 commits)")[![abhi36](https://avatars.githubusercontent.com/u/4282199?v=4)](https://github.com/abhi36 "abhi36 (24 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)")[![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)")[![evgalak](https://avatars.githubusercontent.com/u/6259298?v=4)](https://github.com/evgalak "evgalak (1 commits)")

---

Tags

phpapiawsAuthenticationCognito

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[pmill/aws-cognito

A PHP client for AWS Cognito user pools

74266.0k3](/packages/pmill-aws-cognito)[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)[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)[andalisolutions/oauth2-anaf

Anaf OAuth 2.0 support for the PHP League's OAuth 2.0 Client

194.1k](/packages/andalisolutions-oauth2-anaf)[internacionalweb/cognito-token-verifier

This library verifies that the signature of the JWT is valid, comes from a desired application, and that the token has not been tampered with or expired.

102.1k](/packages/internacionalweb-cognito-token-verifier)

PHPackages © 2026

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