Skip to content

CakePHP Setup Plugin - containing useful management and debugging tools for CakePHP apps

Notifications You must be signed in to change notification settings

chrissPony/setup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CakePHP Setup Plugin

This plugin provides useful tools for managing a cakephp app.

Installation

  • Clone/Copy the files in this directory into app/Plugin/Setup
  • Don't forget to include the plugin in your bootstrap's CakePlugin::load() statement or use CakePlugin::loadAll()

Tip: You can also use packagist now @ https://packagist.org/packages/dereuromark/setup-cakephp

Documentation

Currently this plugin contains only the parts I managed to open source yet:

Possible dependencies: Tools Plugin (for bake templates for instance)

SetupComponent

Just enable it via

public $components = array('Setup.Setup');

Features:

  • Auto create missing tmp folders etc in debug mode (already in core since 2.4 now)
  • Catch redirect loops with meaningful exception (will also be logged then)
  • Quick-Switch: layout, maintenance, debug, clearcache (password protected in productive mode)
  • Notify Admin via Email about self-inflicted 404s or loops (configurable)

and more.

Maintenance mode

If you have to move, update or just fix the application, an easy way to put the site into maintenance mode is to use the shell for it. Example on how to use it. Contains of:

  • Shell (cake Setup.Maintenance [command])
  • Lib
  • (Optional) Setup component to display a flash message for admins in overwrite mode

DB Maintenance tools

  • CurrentConfig shell
  • DbDump shell
  • DbMaintenance shell

Disclaimer

Use at your own risk. Please provide any fixes or enhancements via issue or better pull request.

Status

Build Status

Branching strategy

The master branch is the currently active and maintained one and works with the current 2.x stable version. Older versions might be found in their respective branches (1.3, 2.0, 2.3, ...). Please provide PRs mainly against master branch then.

License

Licensed under The MIT License

Coming Up

  • One Click Baking
  • Complete Configuration and Maintenance Backend
  • Coding help / guidelines
  • Cleanup and Correction shells
  • Testing stuff
  • Backup stuff

About

CakePHP Setup Plugin - containing useful management and debugging tools for CakePHP apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 96.7%
  • JavaScript 2.5%
  • CSS 0.8%