2017 © Pedro Peláez
 

cakephp-plugin common

Gourmet Common Plugin for rapid CakePHP application development.

image

gourmet/common

Gourmet Common Plugin for rapid CakePHP application development.

  • Thursday, September 4, 2014
  • by jadb
  • Repository
  • 1 Watchers
  • 1 Stars
  • 229 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 15 Versions
  • 0 % Grown

The README.md

CakePHP Common Plugin

Built to help quickly putting together CakePHP applications., (*1)

Apart from being the base to all other gourmet plugins, this plugin extends some of the CakePHP core functionality (i.e. full support of logging scopes, more complete base test case, better app configuration, etc.)., (*2)

Features

Behaviors

  • Authorizable: Controls access to records., (*7)

  • Commentable: Adds comments to records., (*8)

  • Computable: Computes total or average similarly to the CakePHP's counterCache., (*9)

  • Confirmable: Adds isConfirmed() validation rule., (*10)

  • Detailable: Extends any record with extra details., (*11)

  • Duplicatable: Duplicates any record to another model's table., (*12)

  • Encodable: Encodes array values in records for storing., (*13)

  • Filterable: Filters out any field from both, the find() resultset and save() result., (*14)

  • Stateable: Adds status type of field to records., (*15)

Components

Helpers

  • Asset: Controls asset inclusions (works well with AssetCompress)., (*18)

  • Navigation: Renders navigations., (*19)

  • Stateable: Adds status type of selection list., (*20)

  • Table: Creates table for displaying result sets, with pagination support., (*21)

Install

Composer package

First, add this plugin as a requirement to your composer.json:, (*22)

{
    "require": {
        "cakephp/common": "*"
    }
}

And then update:, (*23)

php composer.phar update

That's it! You should now be ready to start configuring your channels., (*24)

Submodule

$ cd /app
$ git submodule add git://github.com/gourmet/common.git Plugin/Common

Clone

$ cd /app/Plugin
$ git clone git://github.com/gourmet/common.git

Configuration

You need to enable the plugin your app/Config/bootstrap.php file:, (*25)

CakePlugin::load('Common', array('bootstrap' => true, 'routes' => true));

If you are already using CakePlugin::loadAll();, then this is not necessary., (*26)

Replace app/Console/Command/AppShell.php with the following:, (*27)

<?php
App::uses('CommonAppShell', 'Common.Console');
class AppShell extends CommonAppShell {}

Replace app/Controller/AppController.php with the following:, (*28)

<?php
App::uses('CommonAppController', 'Common.Controller');
class AppController extends CommonAppController {}

Replace app/Model/AppModel.php with the following:, (*29)

<?php
App::uses('CommonAppModel', 'Common.Model');
class AppModel extends CommonAppModel {}

Replace app/View/Helper/AppHelper.php with the following:, (*30)

<?php
App::uses('CommonAppHelper', 'Common.View/Helper');
class AppHelper extends CommonAppHelper {}

Patches & Features

  • Fork
  • Mod, fix
  • Test - this is important, so it's not unintentionally broken
  • Commit - do not mess with license, todo, version, etc. (if you do change any, bump them into commits of their own that I can ignore when I pull)
  • Pull request - bonus point for topic branches

Bugs & Feedback

http://github.com/gourmet/common/issues, (*31)

License

Copyright 2013, Jad Bitar, (*32)

Licensed under The MIT Licensebr/ Redistributions of files must retain the above copyright notice., (*33)

The Versions

04/09 2014

dev-master

9999999-dev https://github.com/gourmet/common

Gourmet Common Plugin for rapid CakePHP application development.

  Sources   Download

MIT

The Requires

 

plugin cakephp common gourmet

08/06 2014

0.3.2

0.3.2.0 https://github.com/gourmet/common

Gourmet Common Plugin for rapid CakePHP application development.

  Sources   Download

MIT

The Requires

 

plugin cakephp common gourmet

03/06 2014

0.3.1

0.3.1.0 https://github.com/gourmet/common

Gourmet Common Plugin for rapid CakePHP application development.

  Sources   Download

MIT

The Requires

 

plugin cakephp common gourmet

27/02 2014

dev-develop

dev-develop https://github.com/gourmet/common

Gourmet Common Plugin for rapid CakePHP application development.

  Sources   Download

MIT

The Requires

 

plugin cakephp common gourmet

27/02 2014

0.3

0.3.0.0 https://github.com/gourmet/common

Gourmet Common Plugin for rapid CakePHP application development.

  Sources   Download

MIT

The Requires

 

plugin cakephp common gourmet

09/02 2014

0.2.5

0.2.5.0 https://github.com/gourmet/common

Gourmet Common Plugin for rapid CakePHP application development.

  Sources   Download

MIT

The Requires

 

plugin cakephp common gourmet

08/02 2014

0.2.4

0.2.4.0 https://github.com/gourmet/common

Gourmet Common Plugin for rapid CakePHP application development.

  Sources   Download

MIT

The Requires

 

plugin cakephp common gourmet

05/02 2014

0.2.3

0.2.3.0 https://github.com/gourmet/common

Gourmet Common Plugin for rapid CakePHP application development.

  Sources   Download

MIT

The Requires

 

plugin cakephp common gourmet

05/02 2014

0.2.2

0.2.2.0 https://github.com/gourmet/common

Gourmet Common Plugin for rapid CakePHP application development.

  Sources   Download

MIT

The Requires

 

plugin cakephp common gourmet

05/02 2014

0.2.1

0.2.1.0 https://github.com/gourmet/common

Gourmet Common Plugin for rapid CakePHP application development.

  Sources   Download

MIT

The Requires

 

plugin cakephp common gourmet

05/02 2014

0.2.0

0.2.0.0 https://github.com/gourmet/common

Gourmet Common Plugin for rapid CakePHP application development.

  Sources   Download

MIT

The Requires

 

plugin cakephp common gourmet

31/01 2014

0.1.3

0.1.3.0 https://github.com/gourmet/common

Gourmet Common Plugin for rapid CakePHP application development.

  Sources   Download

MIT

The Requires

 

plugin cakephp common gourmet

28/01 2014

0.1.2

0.1.2.0 https://github.com/gourmet/common

Gourmet Common Plugin for rapid CakePHP application development.

  Sources   Download

MIT

The Requires

 

plugin cakephp common gourmet

27/01 2014

0.1.1

0.1.1.0 https://github.com/gourmet/common

Gourmet Common Plugin for rapid CakePHP application development.

  Sources   Download

MIT

The Requires

 

plugin cakephp common gourmet

25/01 2014

0.1.0

0.1.0.0 https://github.com/gourmet/common

CakePHP Common Plugin

  Sources   Download

MIT

The Requires

 

plugin cakephp common gourmet