PHPackages                             samuelelonghin/yii2-string-id-activerecord - 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. [Database &amp; ORM](/categories/database)
4. /
5. samuelelonghin/yii2-string-id-activerecord

ActiveYii2-extension[Database &amp; ORM](/categories/database)

samuelelonghin/yii2-string-id-activerecord
==========================================

new Yii2 String ID ActiveRecord

1.1.0(4y ago)010MITPHP

Since Jan 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/SamueleLonghin/yii2-string-id-activerecord)[ Packagist](https://packagist.org/packages/samuelelonghin/yii2-string-id-activerecord)[ RSS](/packages/samuelelonghin-yii2-string-id-activerecord/feed)WikiDiscussions master Synced 1mo ago

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

### Global Component

[](#global-component)

Per far configurare la lunghezza degli id in modo globale è necessario aggiungere il componente all'applicazione

```
// ...
'components' => [
    // altri componenti...

    'stringIdActiveRecord' => [
        'class' => samuelelonghin\db\assets\StringIdActiveRecord,
        'stringIdLenght' => function () {
                return 15;
        }
    ]
]
```

o in maniera statica:

```
// ...
'components' => [
    // altri componenti...

    'stringIdActiveRecord' => [
        'class' => samuelelonghin\db\assets\StringIdActiveRecord,
        'stringIdLenght' =>  15,
    ]
]
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

3

Last Release

1518d ago

Major Versions

0.0.1 → 1.0.02022-01-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/6cb42cdb67a5a8579fd35f06c5325927a7061531785fa66750dc60a17d5d4805?d=identicon)[samuelelonghin](/maintainers/samuelelonghin)

---

Top Contributors

[![SamueleLonghin](https://avatars.githubusercontent.com/u/46517478?v=4)](https://github.com/SamueleLonghin "SamueleLonghin (3 commits)")

---

Tags

stringdbyii2extensionactiverecordidstring-id

### Embed Badge

![Health badge](/badges/samuelelonghin-yii2-string-id-activerecord/health.svg)

```
[![Health](https://phpackages.com/badges/samuelelonghin-yii2-string-id-activerecord/health.svg)](https://phpackages.com/packages/samuelelonghin-yii2-string-id-activerecord)
```

###  Alternatives

[mg-code/yii2-helpers

A collection of useful helper classes for Yii framework 2.0

2022.5k5](/packages/mg-code-yii2-helpers)[dmstr/yii2-db

Database extensions

19618.8k6](/packages/dmstr-yii2-db)[sjaakp/yii2-spatial

Yii2 ActiveRecord supporting MySQL spatial data

1873.8k1](/packages/sjaakp-yii2-spatial)[nhkey/yii2-activerecord-history

Storage history of changes to ActiveRecord

46143.4k1](/packages/nhkey-yii2-activerecord-history)

PHPackages © 2026

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