A PHP library for AWS Cognito user pools
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples add getUser Aug 17, 2018
src add getUser Aug 17, 2018
.gitignore Initial commit Apr 28, 2017
LICENCE Initial commit Apr 28, 2017
README.md Update README.md Aug 17, 2018
composer.json Changed jwt libraries Jan 25, 2018
composer.lock Changed jwt libraries Jan 25, 2018

README.md

pmill/aws-cognito

Introduction

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

Requirements

This library package requires PHP 7.1 or later

Installation

Installing via Composer

The recommended way to install is through Composer.

# 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

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

Version History

0.2.7 (17/08/2018)

  • Added method to get user details - brettmc

0.2.6 (27/06/2018)

  • Added method to update a user's custom variables - bjoernHeneka

0.2.5 (26/06/2018)

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

pmill/aws-cognito Copyright (c) 2017 pmill (dev.pmill@gmail.com) All rights reserved.