Gourmet Common Plugin for rapid CakePHP application development.

Installs: 254

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0


0.3.2 2014-06-08 12:32 UTC

This package is auto-updated.

Last update: 2023-02-27 22:11:22 UTC


Built to help quickly putting together CakePHP applications.

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.).



  • Authorizable: Controls access to records.

  • Commentable: Adds comments to records.

  • Computable: Computes total or average similarly to the CakePHP's counterCache.

  • Confirmable: Adds isConfirmed() validation rule.

  • Detailable: Extends any record with extra details.

  • Duplicatable: Duplicates any record to another model's table.

  • Encodable: Encodes array values in records for storing.

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

  • Stateable: Adds status type of field to records.



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

  • Navigation: Renders navigations.

  • Stateable: Adds status type of selection list.

  • Table: Creates table for displaying result sets, with pagination support.


Composer package

First, add this plugin as a requirement to your composer.json:

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

And then update:

php composer.phar update

That's it! You should now be ready to start configuring your channels.


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


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


You need to enable the plugin your app/Config/bootstrap.php file:

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

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

Replace app/Console/Command/AppShell.php with the following:

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

Replace app/Controller/AppController.php with the following:

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

Replace app/Model/AppModel.php with the following:

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

Replace app/View/Helper/AppHelper.php with the following:

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



Copyright 2013, Jad Bitar

Licensed under The MIT License
Redistributions of files must retain the above copyright notice.