PHPackages                             laminas/laminas-mvc-plugin-identity - 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. laminas/laminas-mvc-plugin-identity

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

laminas/laminas-mvc-plugin-identity
===================================

Plugin for retrieving the current authenticated identity within laminas-mvc controllers

1.7.0(1y ago)91.5M↑17.1%9[4 PRs](https://github.com/laminas/laminas-mvc-plugin-identity/pulls)4BSD-3-ClausePHPPHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0CI passing

Since Dec 31Pushed 2mo ago12 watchersCompare

[ Source](https://github.com/laminas/laminas-mvc-plugin-identity)[ Packagist](https://packagist.org/packages/laminas/laminas-mvc-plugin-identity)[ Docs](https://laminas.dev)[ Fund](https://funding.communitybridge.org/projects/laminas-project)[ RSS](/packages/laminas-laminas-mvc-plugin-identity/feed)WikiDiscussions 1.8.x Synced 1mo ago

READMEChangelog (7)Dependencies (7)Versions (24)Used By (4)

laminas-mvc-plugin-identity
===========================

[](#laminas-mvc-plugin-identity)

[![Build Status](https://github.com/laminas/laminas-mvc-plugin-identity/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/laminas/laminas-mvc-plugin-identity/actions/workflows/continuous-integration.yml)[![type-coverage](https://camo.githubusercontent.com/634800233d29f64d70eb3c44b8ed128e2b96e85d4ef78f4261670e7816325943/68747470733a2f2f73686570686572642e6465762f6769746875622f6c616d696e61732f6c616d696e61732d6d76632d706c7567696e2d6964656e746974792f636f7665726167652e737667)](https://shepherd.dev/github/laminas/laminas-mvc-plugin-identity)[![Psalm level](https://camo.githubusercontent.com/14c6c5d32e7e1953dab669905b9a86c97f2c94b0be75227977025e1022a27bb9/68747470733a2f2f73686570686572642e6465762f6769746875622f6c616d696e61732f6c616d696e61732d6d76632d706c7567696e2d6964656e746974792f6c6576656c2e737667)](https://shepherd.dev/github/laminas/laminas-mvc-plugin-identity)

> ## 🇷🇺 Русским гражданам
>
> [](#-русским-гражданам)
>
> Мы, участники Laminas, родились и живем в разных странах. У многих из нас есть друзья, родственники и коллеги как в России, так и в Украине. Некоторые из нас родились в России. Некоторые из нас живут в России. У некоторых бабушки и дедушки сражались с фашистами во Второй мировой войне. Здесь никто не поддерживает фашизм.
>
> У одного из нас есть украинская родственница, которая спаслась из дома вместе с сыном. Поезд задержался из-за бомбежки на дороге впереди. У нас есть друзья, которые прячутся в бомбоубежищах. Мы с тревогой ждем весточки от них после воздушных налетов, которые беспорядочно наносят удары и попадают по больницам, школам, детским садам и домам. Мы не берем это из каких-либо СМИ. Мы наблюдаем это напрямую.
>
> Вы доверяете нам достаточно, чтоб использовать наши программы, и мы просим вас довериться нам вновь. Мы нуждаемся в помощи. Выходите и протестуйте против этой бесполезной войны. Остановите кровопролитие. Скажите "Нет войне!"
>
> ## 🇺🇸 To Citizens of Russia
>
> [](#-to-citizens-of-russia)
>
> We at Laminas come from all over the world. Many of us have friends, family and colleagues in both Russia and Ukraine. Some of us were born in Russia. Some of us currently live in Russia. Some have grandparents who fought Nazis in World War II. Nobody here supports fascism.
>
> One team member has a Ukrainian relative who fled her home with her son. The train was delayed due to bombing on the road ahead. We have friends who are hiding in bomb shelters. We anxiously follow up on them after the air raids, which indiscriminately fire at hospitals, schools, kindergartens and houses. We're not taking this from any media. These are our actual experiences.
>
> You trust us enough to use our software. We ask that you trust us to say the truth on this. We need your help. Go out and protest this unnecessary war. Stop the bloodshed. Say "stop the war!"

Provides a [laminas-mvc](https://docs.laminas.dev/laminas-mvc/) plugin (for versions 3.0 and up) that allows retrieving the current identity as provided by [laminas-authentication](https://github.com/laminas/laminas-authentication).

Installation
------------

[](#installation)

Run the following to install this library:

```
$ composer require laminas/laminas-mvc-plugin-identity
```

If you are using the [laminas-component-installer](https://docs.laminas.dev/laminas-component-installer/), you're done!

If not, you will need to add the component as a module to your application. Add the entry `'Laminas\Mvc\Plugin\Identity'` to your list of modules in your application configuration (typically one of `config/application.config.php` or `config/modules.config.php`).

Documentation
-------------

[](#documentation)

Browse the documentation online at

Support
-------

[](#support)

- [Issues](https://github.com/laminas/laminas-mvc-plugin-identity/issues/)
- [Chat](https://laminas.dev/chat/)
- [Forum](https://discourse.laminas.dev/)

###  Health Score

61

—

FairBetter than 99% of packages

Maintenance68

Regular maintenance activity

Popularity48

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 52.7% 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 ~125 days

Recently: every ~207 days

Total

19

Last Release

71d ago

Major Versions

0.1.0 → 1.0.02019-12-31

PHP version history (8 changes)0.1.0PHP ^5.5 || ^7.0

1.0.0PHP ^5.6 || ^7.0

1.2.0PHP ^7.3 || ~8.0.0

1.3.0PHP ^7.3 || ~8.0.0 || ~8.1.0

1.4.0PHP ^7.4 || ~8.0.0 || ~8.1.0

1.5.0PHP ~8.0.0 || ~8.1.0 || ~8.2.0

1.6.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

1.7.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25943?v=4)[Matthew Weier O'Phinney](/maintainers/weierophinney)[@weierophinney](https://github.com/weierophinney)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (147 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (50 commits)")[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (31 commits)")[![Xerkus](https://avatars.githubusercontent.com/u/725842?v=4)](https://github.com/Xerkus "Xerkus (8 commits)")[![gsteel](https://avatars.githubusercontent.com/u/2803720?v=4)](https://github.com/gsteel "gsteel (8 commits)")[![Koopzington](https://avatars.githubusercontent.com/u/3015529?v=4)](https://github.com/Koopzington "Koopzington (7 commits)")[![geerteltink](https://avatars.githubusercontent.com/u/9497586?v=4)](https://github.com/geerteltink "geerteltink (7 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (5 commits)")[![FabianKoestring](https://avatars.githubusercontent.com/u/1252701?v=4)](https://github.com/FabianKoestring "FabianKoestring (4 commits)")[![ghostwriter](https://avatars.githubusercontent.com/u/9754361?v=4)](https://github.com/ghostwriter "ghostwriter (4 commits)")[![boesing](https://avatars.githubusercontent.com/u/2189546?v=4)](https://github.com/boesing "boesing (3 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (1 commits)")[![Slamdunk](https://avatars.githubusercontent.com/u/152236?v=4)](https://github.com/Slamdunk "Slamdunk (1 commits)")[![svycka](https://avatars.githubusercontent.com/u/1270782?v=4)](https://github.com/svycka "svycka (1 commits)")[![fezfez](https://avatars.githubusercontent.com/u/1162307?v=4)](https://github.com/fezfez "fezfez (1 commits)")[![gszy](https://avatars.githubusercontent.com/u/12767117?v=4)](https://github.com/gszy "gszy (1 commits)")

---

Tags

hacktoberfestlaminasmvc

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/laminas-laminas-mvc-plugin-identity/health.svg)

```
[![Health](https://phpackages.com/badges/laminas-laminas-mvc-plugin-identity/health.svg)](https://phpackages.com/packages/laminas-laminas-mvc-plugin-identity)
```

###  Alternatives

[kokspflanze/bjy-authorize

Laminas\\Acl based firewall system for Laminas dispatch protection

20178.2k4](/packages/kokspflanze-bjy-authorize)[lm-commons/lmc-rbac-mvc

Laminas Framework MVC Module that provides a layer of features of Laminas\\Permissions\\Rbac

12401.0k7](/packages/lm-commons-lmc-rbac-mvc)[laminas/laminas-mvc-middleware

Dispatch middleware pipelines in place of controllers in laminas-mvc.

22659.3k9](/packages/laminas-laminas-mvc-middleware)[saeven/zf3-circlical-user

Complete user entity, rights, and access module for Laminas

3718.7k](/packages/saeven-zf3-circlical-user)[saeven/zf3-circlical-autowire

Annotation based routing, and magic Controller creation for Laminas and ZF3.

1430.0k](/packages/saeven-zf3-circlical-autowire)

PHPackages © 2026

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