PHPackages                             internacionalweb/cognito-token-verifier - 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. internacionalweb/cognito-token-verifier

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

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.

v1.0.1(9mo ago)102.1k1GPL-3.0-or-laterPHPPHP &gt;=8.0CI failing

Since Mar 6Pushed 9mo ago2 watchersCompare

[ Source](https://github.com/Barymont/cognito-token-verifier)[ Packagist](https://packagist.org/packages/internacionalweb/cognito-token-verifier)[ Docs](https://github.com/Barymont/cognito-token-verifier)[ RSS](/packages/internacionalweb-cognito-token-verifier/feed)WikiDiscussions master Synced 1mo ago

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

[![PHP](https://camo.githubusercontent.com/d282cc3193faee11ee32307d0c4c9d809e8fafa4b3a8c12c6afbf35d4f7ec617/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d3737374242343f7374796c653d666f722d7468652d6261646765266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/d282cc3193faee11ee32307d0c4c9d809e8fafa4b3a8c12c6afbf35d4f7ec617/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d3737374242343f7374796c653d666f722d7468652d6261646765266c6f676f3d706870266c6f676f436f6c6f723d7768697465)[![AWS](https://camo.githubusercontent.com/05c3a25c9f7c6efb5bb1819b4e3523382860c117c251ebed5030b79d64c5a4a7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4157532d3233324633453f7374796c653d666f722d7468652d6261646765266c6f676f3d616d617a6f6e2d617773266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/05c3a25c9f7c6efb5bb1819b4e3523382860c117c251ebed5030b79d64c5a4a7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4157532d3233324633453f7374796c653d666f722d7468652d6261646765266c6f676f3d616d617a6f6e2d617773266c6f676f436f6c6f723d7768697465)

### Cognito Token Verifier for PHP

[](#cognito-token-verifier-for-php)

 [ ![](https://camo.githubusercontent.com/2334265424a787d66c84d2c68f4252431f7c2d589a56985bde0b1a96e40b735b/68747470733a2f2f636f6465636f762e696f2f6769746875622f426172796d6f6e742f636f676e69746f2d746f6b656e2d76657269666965722f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d4c425a34565258334854) ](https://app.codecov.io/github/Barymont/cognito-token-verifier)

About the Project
-----------------

[](#about-the-project)

Cognito is a service provided by Amazon Web Services (AWS) that allows users to authenticate and access AWS resources through credentials such as ClientID and Secret, or username and password. After a user successfully authenticates, Cognito returns a JSON Web Token (JWT), which contains the main information required to verify that the user has accessed our application.

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.

Getting Started
---------------

[](#getting-started)

([Go to top](#readme-top))

### Installation

[](#installation)

1. Install the library in your project using composer

    ```
      composer require barymont/cognito-token-verifier

    ```
2. Configure your project to use the library, check the [Usage examples](#usage-examples) section for more information.

### Usage examples:

[](#usage-examples)

- [PHP Native (No frameworks)](documents/php-native.md)
- [Symfony Custom Authenticator](documents/symfony-custom-authenticator.md)

### Contributors:

[](#contributors)

  [ ![Adrián](https://avatars.githubusercontent.com/u/8830376?v=4)
 **Adrián Martín** ](https://github.com/Pixelao)   [ ![Jhonatan](https://avatars.githubusercontent.com/u/36485771?v=4)
 **Jhonatan Matías** ](https://github.com/seon22break)

###  Health Score

40

—

FairBetter than 87% of packages

Maintenance58

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.2% 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 ~430 days

Total

3

Last Release

299d ago

### Community

Maintainers

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

---

Top Contributors

[![Pixelao](https://avatars.githubusercontent.com/u/8830376?v=4)](https://github.com/Pixelao "Pixelao (64 commits)")[![seon22break](https://avatars.githubusercontent.com/u/36485771?v=4)](https://github.com/seon22break "seon22break (19 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

jwtamazonawsAuthenticationtokenCognitoverifier

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/internacionalweb-cognito-token-verifier/health.svg)

```
[![Health](https://phpackages.com/badges/internacionalweb-cognito-token-verifier/health.svg)](https://phpackages.com/packages/internacionalweb-cognito-token-verifier)
```

###  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)[bizley/jwt

JWT integration for Yii 2

67425.3k2](/packages/bizley-jwt)[pmill/aws-cognito

A PHP client for AWS Cognito user pools

74266.0k3](/packages/pmill-aws-cognito)[miladrahimi/php-jwt

A PHP implementation of JWT (JSON Web Token) generator, parser, verifier, and validator

70263.2k2](/packages/miladrahimi-php-jwt)[tuupola/branca

Authenticated and encrypted API tokens using modern crypto.

52309.2k1](/packages/tuupola-branca)[customergauge/cognito

AWS Cognito provider for Laravel Authentication

2247.8k](/packages/customergauge-cognito)

PHPackages © 2026

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