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

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

malirobot/aws-cognito
=====================

A PHP client for AWS Cognito user pools, version of pmill/aws-cognito with added methods and some changes.

v1.0.2(1y ago)02511MITPHPPHP ^8.1

Since Apr 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MaliRobot/aws-cognito)[ Packagist](https://packagist.org/packages/malirobot/aws-cognito)[ Docs](https://github.com/malirobot/aws-cognito)[ RSS](/packages/malirobot-aws-cognito/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (4)Versions (16)Used By (0)

Extending pmill/aws-cognito with few more methods, and slightly modifying some existing ones.

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

[](#pmillaws-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:

```
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)

1.0.\* (12/06/2024)

- Upgrade library to works with PHP ^8.1 and new AWS Cognito functionalities - [MarcoDeFelice](https://github.com/mlabfactory/aws-cognito)

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

38

—

LowBetter than 85% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 51% 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 ~192 days

Recently: every ~566 days

Total

15

Last Release

612d ago

Major Versions

v0.2.7 → v1.02024-06-12

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7827458?v=4)[Milos Trifunovic](/maintainers/malirobot)[@MaliRobot](https://github.com/MaliRobot)

---

Top Contributors

[![marcodefelice](https://avatars.githubusercontent.com/u/10652966?v=4)](https://github.com/marcodefelice "marcodefelice (25 commits)")[![pmill](https://avatars.githubusercontent.com/u/3912365?v=4)](https://github.com/pmill "pmill (19 commits)")[![BudgetControl](https://avatars.githubusercontent.com/u/140796512?v=4)](https://github.com/BudgetControl "BudgetControl (3 commits)")[![brettmc](https://avatars.githubusercontent.com/u/4978962?v=4)](https://github.com/brettmc "brettmc (1 commits)")[![MaliRobot](https://avatars.githubusercontent.com/u/7827458?v=4)](https://github.com/MaliRobot "MaliRobot (1 commits)")

---

Tags

phpapiawsAuthenticationCognito

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/malirobot-aws-cognito/health.svg)](https://phpackages.com/packages/malirobot-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)[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)[benbjurstrom/cognito-jwt-guard

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

1113.1k](/packages/benbjurstrom-cognito-jwt-guard)[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)
