PHPackages                             ray/identity-value-module - 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. ray/identity-value-module

ActiveLibrary

ray/identity-value-module
=========================

1.0.0(5y ago)0310.7k—4.1%1[1 PRs](https://github.com/ray-di/Ray.IdentityValueModule/pulls)MITPHPPHP ^7.3 || ^8.0CI passing

Since Aug 8Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/ray-di/Ray.IdentityValueModule)[ Packagist](https://packagist.org/packages/ray/identity-value-module)[ GitHub Sponsors](https://github.com/koriym)[ RSS](/packages/ray-identity-value-module/feed)WikiDiscussions 1.x Synced 1mo ago

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

Ray.IdentityValueModule
=======================

[](#rayidentityvaluemodule)

[![Build Status](https://camo.githubusercontent.com/4f424f1141599eefc39feb4024afb67203a84b1d1c29f601e1134bb3e5ab2a1f/68747470733a2f2f7472617669732d63692e6f72672f7261792d64692f5261792e4964656e7469747956616c75654d6f64756c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ray-di/Ray.IdentityValueModule)

Overview
--------

[](#overview)

`Ray.IdentityValueModule` injects identify value such as current time or UUID.

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

[](#installation)

### Composer install

[](#composer-install)

```
$ composer require ray/identity-value-module

```

### Module install

[](#module-install)

```
use Ray\Di\AbstractModule;
use Ray\IdentityValueModule\IdentityValueModule;

class AppModule extends AbstractModule
{
    protected function configure()
    {
        $this->install(new IdentityValueModule);
        // $this->install(new FakeIdentityValueModule); // for testing
    }
}
```

Usage
-----

[](#usage)

```
class Foo
{
    private $uuid;
    private $now;
    private $iso8601;

    public function __construct(
        UuidInterface $uuid,
        NowInterface $now,
        Iso8601Interface $iso8601
        DateTimeIntetface $dateTime)
    {
        $this->uuid = $uuid;
        $this->now = $now;
        $this->iso8601 = $iso8601;
        $this->dateTime = $dateTime; // Current time
    }

    public function foo()
    {
        (string) $this->>uuid; // 11111111-2222-3333-4444-4fdffa026136
        (string) $this->>now; // 1970-01-01 00:00:00
        $this->now->iso8601() // 2019-06-24T02:43:30+02:00

        $this->$iso8601->convertOne('1970-01-01 00:00:00');
        $list = [
            ['a' => 0, 'created' => '1970-01-01 00:00:00'],
            ['a' => 0, 'created' => '1970-01-01 00:00:00']
        ];
        $this->$iso8601->convertList($list, ['created');
        // [
        //     ['a' => 0, 'created' => '1970-01-01T00:00:00+01:00'],
        //     ['a' => 0, 'created' => '1970-01-01T00:00:00+01:00'],
        // ]
    }
}
```

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance53

Moderate activity, may be stable

Popularity35

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 95.8% 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 ~535 days

Total

4

Last Release

1234d ago

Major Versions

0.2.0 → 1.0.02021-02-20

PHP version history (2 changes)0.1.0PHP &gt;=7.0.0

1.0.0PHP ^7.3 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![koriym](https://avatars.githubusercontent.com/u/529021?v=4)](https://github.com/koriym "koriym (46 commits)")[![piotzkhider](https://avatars.githubusercontent.com/u/7950487?v=4)](https://github.com/piotzkhider "piotzkhider (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ray-identity-value-module/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.7k509.9M17.0k](/packages/laravel-framework)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.1k84.2M225](/packages/laravel-horizon)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[stancl/tenancy

Automatic multi-tenancy for your Laravel application.

4.3k6.6M40](/packages/stancl-tenancy)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)

PHPackages © 2026

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