Installation
Install from your application's root:
composer require dereuromark/cakephp-setupComposer checks the supported PHP and CakePHP versions from the package constraints. Maintenance middleware and healthchecks in production require a production dependency. For development-only use, install with --dev and load using bin/cake plugin load Setup --no-routes --only-debug; do not register a development-only package unconditionally.
Load the plugin
For CLI tools and middleware, load Setup with its web routes disabled:
bin/cake plugin load Setup --no-routesThis keeps its administration endpoints out of your application's route table. The plugin does not automatically add middleware; Getting started shows where to add it.
If Setup is already registered, edit its existing entry in config/plugins.php instead of adding it twice. Enable routes only when you need the web backend or web healthcheck and have configured access.
Optional dependencies
| Feature | Additional package |
|---|---|
| Web administration, Tools helpers, default enhanced bake base classes | dereuromark/cakephp-tools |
| Template customization in the administration backend | dereuromark/cakephp-templating |
| Generate application classes or healthchecks | cakephp/bake |
| Run generated database migrations | cakephp/migrations |
| L10n panel | cakephp/debug_kit |
| Healthcheck Queue task | Community dereuromark/cakephp-queue |
Install the packages for the features you use, then load their plugins. For the administration tools:
composer require dereuromark/cakephp-tools
bin/cake plugin load ToolsThe core maintenance middleware needs no Tools dependency. The development dependencies in this repository are not automatically installed in applications consuming the package.
Follow CakePHP's plugin loading documentation for registration through Application::bootstrap().