PHPackages                             soluciones-ypunto/cake-enum - 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. soluciones-ypunto/cake-enum

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

soluciones-ypunto/cake-enum
===========================

Librería básica para implementar enums en CakePHP

1.0.0(7y ago)0151GPL-3.0-or-laterPHP

Since Jan 22Pushed 7y ago2 watchersCompare

[ Source](https://github.com/soluciones-ypunto/cake-enum)[ Packagist](https://packagist.org/packages/soluciones-ypunto/cake-enum)[ RSS](/packages/soluciones-ypunto-cake-enum/feed)WikiDiscussions master Synced 2mo ago

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

Enum plugin for CakePHP
=======================

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

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](https://getcomposer.org).

The recommended way to install composer packages is:

```
composer require soluciones-ypunto/cake-enum

```

Usage
-----

[](#usage)

Define your enum lists as follow:

```
// file Model/Enum/SomeList.php

namespace App\Model\Enum;

use Ypunto\EnumType\Enum\Enum;

class SomeList extends Enum
{
    const VALUE_1 = 1;
    const VALUE_2 = 2;
    const SOME_VALUE = 'any-val';

    /**
     * @return string[]
     */
    public static function getOptions()
    {
        return [
            self::VALUE_1 => __('First'),
            self::VALUE_2 => __('Second'),
            self::SOME_VALUE => __('Some Value'),
        ];
    }
}
```

Then use them in forms, to display values or to compare then, without using plain strings.

```
// in templates
// to create select controls
echo $this->Form->control('value', ['options' => \App\Model\Enum\SomeList::getOptions()]);

// to display
echo \App\Model\Enum\SomeList::getOption($entity->value);

// to compare
if ($entity->value === \App\Model\Enum\SomeList::VALUE_1) {
    // do something
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

Unknown

Total

1

Last Release

2664d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1458700?v=4)[Javier](/maintainers/xavier83ar)[@xavier83ar](https://github.com/xavier83ar)

---

Top Contributors

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

---

Tags

cakephpcakephp-plugincakephp3enums

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/soluciones-ypunto-cake-enum/health.svg)

```
[![Health](https://phpackages.com/badges/soluciones-ypunto-cake-enum/health.svg)](https://phpackages.com/packages/soluciones-ypunto-cake-enum)
```

###  Alternatives

[markstory/asset_compress

An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification.

3761.0M11](/packages/markstory-asset-compress)[cakedc/cakephp-phpstan

CakePHP plugin extension for PHPStan.

40676.6k31](/packages/cakedc-cakephp-phpstan)[dereuromark/cakephp-dto

A CakePHP plugin for generating immutable Data Transfer Objects with full type safety

2988.9k3](/packages/dereuromark-cakephp-dto)[dereuromark/cakephp-geo

A CakePHP plugin around geocoding tools and helpers.

51174.9k4](/packages/dereuromark-cakephp-geo)[cakedc/enum

Enumeration list Plugin for CakePHP 5

30222.5k2](/packages/cakedc-enum)[josegonzalez/cakephp-environments

CakePHP plugin to handle environments-level configuration

4785.9k](/packages/josegonzalez-cakephp-environments)

PHPackages © 2026

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