PHPackages                             zf-metal/security-jwt - 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. zf-metal/security-jwt

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

zf-metal/security-jwt
=====================

Modulo de autenticación por jwt para Zend Framework 3

1.0.4(7y ago)1892MITPHPPHP ^5.6 || ^7.0

Since Dec 9Pushed 7y ago3 watchersCompare

[ Source](https://github.com/zf-metal/security-jwt)[ Packagist](https://packagist.org/packages/zf-metal/security-jwt)[ Docs](https://github.com/cincarnato)[ RSS](/packages/zf-metal-security-jwt/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (6)Versions (7)Used By (2)

ZfMetal\\SecurityJwt
====================

[](#zfmetalsecurityjwt)

Modulo de Zend Framework 3 que permite la autenticacion por JWT

Dependencias
------------

[](#dependencias)

El modulo tiene una dependecia con **ZfMetal\\Security** y **Doctrine\\ORM**

Autenticacion
-------------

[](#autenticacion)

El modulo cuenta con una ruta/action que permite la autenticacion por jwt

`ruta: /auth`

`method: post`

`params: 'username' & 'password'`

#### Autenticación Exitosa

[](#autenticación-exitosa)

**StatusCode**: 200

`{ success: true, message: 'Authentication successful', token: 'The_Token' }`

#### Autenticacion Fallida (faltan de parametros)

[](#autenticacion-fallida-faltan-de-parametros)

**StatusCode**: 422

`{ success: false, message: "Missing Params. username and password required.", }`

#### Autenticacion Fallida (Credenciales Invalidas)

[](#autenticacion-fallida-credenciales-invalidas)

**StatusCode**: 401

`{ success: false, message: 'Invalid Credentials', }`

Identity
--------

[](#identity)

Es posible obtener el usuario almacenado en el token mediante el servicio **JwtDoctrineIdentity**. Ademas se encuentra disponible un plugin controller **getJwtIdentity()**.

En caso positivo se el usuario identificado en el token (\\ZfMetal\\Security\\Entity\\User)

Es posible consultar la identidad invocando la siguiente ruta/action

`ruta: /my-identity`

`method: get`

`header: Authorization Bearer xxTOKENxx`

Protected Controller
--------------------

[](#protected-controller)

Es posible proteger los controladores de invocaciones sin token, tokens invalidos o token expirados extendiendo de ZfMetal\\SecurityJwt\\Controller\\AbstractProtectedController.

Tambien es posible disponer de la misma protección utilizando el trait \\ZfMetal\\SecurityJwt\\Controller\\Traits\\TraitProtectedController

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~26 days

Total

5

Last Release

2605d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b93c6666f37f3ad901327f4e6f65f37f7d7e5c64e07ed7f0f246823bb142f5d4?d=identicon)[cincarnato](/maintainers/cincarnato)

---

Top Contributors

[![cincarnato](https://avatars.githubusercontent.com/u/7002030?v=4)](https://github.com/cincarnato "cincarnato (5 commits)")[![AlejoLespaul](https://avatars.githubusercontent.com/u/13680291?v=4)](https://github.com/AlejoLespaul "AlejoLespaul (1 commits)")

---

Tags

zf3

### Embed Badge

![Health badge](/badges/zf-metal-security-jwt/health.svg)

```
[![Health](https://phpackages.com/badges/zf-metal-security-jwt/health.svg)](https://phpackages.com/packages/zf-metal-security-jwt)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[robsontenorio/laravel-keycloak-guard

🔑 Simple Keycloak Guard for Laravel

5161.1M3](/packages/robsontenorio-laravel-keycloak-guard)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

326.1M13](/packages/socialiteproviders-microsoft)

PHPackages © 2026

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