PHPackages                             qumuinc/ulidtypes - 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. qumuinc/ulidtypes

ActiveCakephp-plugin[Database &amp; ORM](/categories/database)

qumuinc/ulidtypes
=================

UlidType plugin for CakePHP

v0.0.5(4y ago)01.4k↑50%MITPHP

Since Sep 26Pushed 4y agoCompare

[ Source](https://github.com/Muuq/ulidtype)[ Packagist](https://packagist.org/packages/qumuinc/ulidtypes)[ RSS](/packages/qumuinc-ulidtypes/feed)WikiDiscussions master Synced 1mo ago

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

UlidType plugin for CakePHP
===========================

[](#ulidtype-plugin-for-cakephp)

Setup
-----

[](#setup)

### Install

[](#install)

```
$ composer require qumuinc/ulidtypes
```

### Bootstrap

[](#bootstrap)

- add plugin load command in `config/bootstrap.php`

```
...
Plugin::load('qumuinc/UlidTypes', ['bootstrap' => true]);
...
```

### Model

[](#model)

- add `_initializeSchema()` method to `Model\Table` class to make id `ulid` type

```
...
use Cake\Database\Schema\TableSchemaInterface;
...
class XXXXXXXXTable extends Table
{
    protected function _initializeSchema(TableSchemaInterface $table): TableSchemaInterface
    {
        parent::_initializeSchema($table);
        $table->setColumnType('id', 'ulid'); // set ulid type for id

        return $table;
    }
}
...
```

Or, you can use a trait.

```
...
use PrefixUlidType\PrefixUlidTypeTrait;
...
class XXXXXXXXTable extends Table
{
    use PrefixUlidTypeTrait;
}
...
```

If you want to use `_initializeSchema` function in your model, you need to call the `_traitInitSchema` function.

```
...
use Cake\Database\Schema\TableSchemaInterface;
use PrefixUlidType\PrefixUlidTypeTrait;
...
class XXXXXXXXTable extends Table
{
    use PrefixUlidTypeTrait;

    protected function _initializeSchema(TableSchemaInterface $table): TableSchemaInterface
    {
        parent::_traitInitSchema($table);
        $table->setColumnType('code', 'char'); // set any type for property

        return $table;
    }
}
...
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Total

5

Last Release

1687d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8fbbb8a24814d4775cfe74acfb77f9d16e3815d3784fcf177abc9be6ddda9358?d=identicon)[muuq](/maintainers/muuq)

---

Top Contributors

[![mitakeck](https://avatars.githubusercontent.com/u/3163492?v=4)](https://github.com/mitakeck "mitakeck (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/qumuinc-ulidtypes/health.svg)

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

###  Alternatives

[dereuromark/cakephp-databaselog

A CakePHP plugin for storing and viewing application logs in the database

44165.0k2](/packages/dereuromark-cakephp-databaselog)[pgbi/cakephp3-soft-delete

SoftDelete plugin for CakePHP

87291.9k](/packages/pgbi-cakephp3-soft-delete)[liqueurdetoile/cakephp-orm-json

Cakephp plugin to provide easy control over JSON type fields in database

1461.1k](/packages/liqueurdetoile-cakephp-orm-json)[snelg/cakephp-3-oracle

Oracle datasource for CakePHP 3

111.5k](/packages/snelg-cakephp-3-oracle)

PHPackages © 2026

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