PHPackages                             orken/select-behavior-cakephp3 - 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. orken/select-behavior-cakephp3

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

orken/select-behavior-cakephp3
==============================

Select Finder Behavior for CakePHP 3+

1.01(9y ago)016MITPHPPHP &gt;=5.5.9

Since Oct 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/DaoAndCo/select-behavior-cakephp3)[ Packagist](https://packagist.org/packages/orken/select-behavior-cakephp3)[ Docs](https://github.com/Orken/select-behavior-cakephp3)[ RSS](/packages/orken-select-behavior-cakephp3/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

select-behavior-cakephp3
========================

[](#select-behavior-cakephp3)

Create a key-value list with an optionnal group key, compatible with the method *find('list')*.

When you want to use 'list' results in javascript, it can be a little tricky because of the lack of fixed key. So, this behavior helps you to get a JS-friendly format for your lists.

With normal *find('list')* you'll get your results as :

```
$list = [
  "31555" => "Toulouse",
  "31075" => "Bonrepos sur aussonnelle",
  ...
]

```

or, with a groupField key :

```
$list = [
  "Midi-Pyrénées" => [
    "31555" => "Toulouse",
    "31075" => "Bonrepos sur aussonnelle",
    ...
  ],
  ...
]

```

With the behavior 'select', with *find('select')* you'll get results as :

```
$list = [
  [
    "items" => [
      [
        "key"   => "31555",
        "value" => "Toulouse"
      ],
      [
        "key"   => "31075",
        "value" => "Bonrepos sur Aussonnelle"
      ],
      ...
    ]
  ]
]

```

and with a groupField key :

```
$list = [
  [
    "group" => "Midi-Pyrénées",
    "items" => [
      [
        "key"   => "31555",
        "value" => "Toulouse"
      ],
      [
        "key"   => "31075",
        "value" => "Bonrepos sur Aussonnelle"
      ],
      ...
    ]
  ],
  ...
]

```

\##Installation

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

The recommended way to install composer packages is:

```
composer require orken/select-behavior-cakephp3

```

Setting up your CakePHP application
-----------------------------------

[](#setting-up-your-cakephp-application)

In your bootstrap.php

```
Plugin::load('SelectBehavior');

```

In each Model/Table file you want to use this behavior add

```
public function initialize(array $config)
{
  ...
  $this->addBehavior('SelectBehavior.Selectlist');
  ...
}

```

Usage
-----

[](#usage)

Syntax is fully complatible with *find('list')*. Use *find('select')* instead.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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

3557d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/99e95c8ecaf9095d7930e26ebc1818aeca51feadefead0ad5090c6655f154bf7?d=identicon)[Orken](/maintainers/Orken)

---

Top Contributors

[![subotm-lang](https://avatars.githubusercontent.com/u/244913096?v=4)](https://github.com/subotm-lang "subotm-lang (14 commits)")[![Orken](https://avatars.githubusercontent.com/u/2988240?v=4)](https://github.com/Orken "Orken (1 commits)")

---

Tags

cakephpBehaviorselectfind

### Embed Badge

![Health badge](/badges/orken-select-behavior-cakephp3/health.svg)

```
[![Health](https://phpackages.com/badges/orken-select-behavior-cakephp3/health.svg)](https://phpackages.com/packages/orken-select-behavior-cakephp3)
```

###  Alternatives

[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

3361.0M49](/packages/dereuromark-cakephp-tools)[cakephp/debug_kit

CakePHP Debug Kit

86314.7M162](/packages/cakephp-debug-kit)[cakephp/bake

Bake plugin for CakePHP

11212.0M192](/packages/cakephp-bake)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M40](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-dto

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

3096.0k5](/packages/dereuromark-cakephp-dto)[dereuromark/cakephp-setup

A CakePHP plugin containing lots of useful management tools

36199.6k2](/packages/dereuromark-cakephp-setup)

PHPackages © 2026

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