PHPackages                             star/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. star/identity

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

star/identity
=============

Library of classes that encapsulates identity concepts.

2.0.0(3y ago)12.7k[1 issues](https://github.com/yvoyer/identity/issues)MITPHPPHP ^7.4|^8.0

Since Mar 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/yvoyer/identity)[ Packagist](https://packagist.org/packages/star/identity)[ RSS](/packages/star-identity/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (5)Versions (5)Used By (0)

Identity package
================

[](#identity-package)

[![Build Status](https://github.com/yvoyer/identity/actions/workflows/php.yml/badge.svg)](https://github.com/yvoyer/identity/actions/workflows/php.yml/badge.svg)

Description
-----------

[](#description)

This package defines an interface `Star\Component\Identity\Identity` to mark your object as entity.

It also includes some default implementations.

Usage
-----

[](#usage)

### Installation

[](#installation)

Run `composer require star/identity` using [composer](https://getcomposer.org/).

### Identities

[](#identities)

```
$integer = new IntegerId(4);
$string = new StringId('something');
$composite = new CompositeIdentity($integer, $string);

$integer->toString(); // return '4'
$string->toString(); // return 'something'
$composite->toString(); // return '4 something'
```

### Exception

[](#exception)

We also provide exception that comes bundled with messages for your identity.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~679 days

Total

4

Last Release

1356d ago

Major Versions

1.2.0 → 2.0.02022-10-16

PHP version history (2 changes)1.0.0PHP &gt;=5.4

2.0.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/36116f724f1bd3ed808e54e2b2de6c17209c5c2c1954685fba18958ec8d055ee?d=identicon)[yvoyer](/maintainers/yvoyer)

---

Top Contributors

[![yvoyer](https://avatars.githubusercontent.com/u/1745744?v=4)](https://github.com/yvoyer "yvoyer (20 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/star-identity/health.svg)

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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