2017 © Pedro Peláez
 

cakephp-plugin property-enum

Property based enum plugin for CakePHP 3

image

k1low/property-enum

Property based enum plugin for CakePHP 3

  • Wednesday, September 21, 2016
  • by k1LoW
  • Repository
  • 1 Watchers
  • 3 Stars
  • 11,750 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 12 % Grown

The README.md

Property based enum plugin for CakePHP 3 Travis

This plugin is PropertyStrategy of CakeDC/Enum, (*1)

Installation

You can install this plugin into your CakePHP application using composer., (*2)

The recommended way to install composer packages is:, (*3)

composer require k1low/property-enum

Property Example

class ArticlesTable extends Table
{
    public $enums = [
        'status' => [
            'public' = 'Published';
            'draft' = 'Drafted';
            'archive' = 'Archived';
        ],
    ];

    public function initialize(array $config)
    {
        $this->addBehavior('PropertyEnum.Enum', ['lists' => [
            'status' => [
                'strategy' => 'property',
            ]
        ]]);
    }
}

for CakePHP 2

see https://github.com/k1LoW/Enumm, (*4)

The Versions

21/09 2016

dev-master

9999999-dev https://github.com/k1low/property-enum

Property based enum plugin for CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp enum

21/09 2016

v1.2.0

1.2.0.0 https://github.com/k1low/property-enum

Property based enum plugin for CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp enum

30/04 2016

v1.1.0

1.1.0.0 https://github.com/k1low/property-enum

Property based enum plugin for CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp enum

05/04 2016

v1.0.0

1.0.0.0 https://github.com/k1low/property-enum

Property based enum plugin for CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp enum