PHPackages                             kaihempel/identifier - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kaihempel/identifier

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kaihempel/identifier
====================

Id abstraction class

1.0.0(10y ago)218BSD-3-ClausePHPPHP &gt;=5.4.0

Since Apr 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/kaihempel/identifier)[ Packagist](https://packagist.org/packages/kaihempel/identifier)[ Docs](https://www.kuweh.de/)[ RSS](/packages/kaihempel-identifier/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

identifier
==========

[](#identifier)

PHP ID abstraction bundle

[![Build Status](https://camo.githubusercontent.com/41744c5497b152149ea3b6c8b9311cd9ceb79cf5fbfeb774034593c57aea0d32/68747470733a2f2f7472617669732d63692e6f72672f6b616968656d70656c2f6964656e7469666965722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kaihempel/identifier)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7b6104e561f8c00d74853548d60220949c1cd2fe75c605851cd0bd5e3eb94445/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b616968656d70656c2f6964656e7469666965722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kaihempel/identifier/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/0f63df2d7da80e0e28e89dc87bc6e4940a32d08e74f4c6c07f280182c5b9f90d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b616968656d70656c2f6964656e7469666965722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kaihempel/identifier/?branch=master)

For easy ID handling inside other projects.

Installing *Identifier* via Composer.

```
   "require": {
     "kaihempel/identifier": "1.0.*"
   }
```

Using the identifier object instead simple integer variables.

```
   $id = new Identifier(1);
   if($id->is(1)) // true
   if($id->is(2)) // false
```

Use type hinting on method or function signatures to avoid a huge number of numeric checks.

```
   ...
   public function load(Identifier $id)
   {
   ...
   }
   ...
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

3687d ago

Major Versions

0.0.1 → 1.0.02016-04-03

### Community

Maintainers

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

---

Top Contributors

[![kaihempel](https://avatars.githubusercontent.com/u/7288789?v=4)](https://github.com/kaihempel "kaihempel (18 commits)")

---

Tags

id handling

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kaihempel-identifier/health.svg)

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

###  Alternatives

[ozdemir/datatables

Simplify your Datatables server-side processing effortlessly using our lightning-fast PHP library, streamlining your workflow seamlessly.

273158.4k](/packages/ozdemir-datatables)[that0n3guy/transliteration

Transliteration provides one-way string transliteration (romanization) and cleans text by replacing unwanted characters.

1296.5k4](/packages/that0n3guy-transliteration)

PHPackages © 2026

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