zunnu/associations-debugger

AssociationsDebugger plugin for CakePHP

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 1

Forks: 1

Open Issues: 0

Language:JavaScript

Type:cakephp-plugin

2.0.2 2023-01-24 15:18 UTC

This package is auto-updated.

Last update: 2023-01-24 15:34:22 UTC


README

AssociationsDebugger is a plugin that is made for debugging associations. The point of this plugin is to quickly show different associations of your CakePHP application without you needing to browse through the model files.

CakePHP 3.x version can be found here

Example

Requirements

  • CakePHP 4.x
  • PHP 7.2 >

Installing Using Composer

cd to the root of your app folder (where the composer.json file is) and run the following command:

composer require --dev zunnu/associations-debugger

Then load the plugin by using CakePHP's console:

./bin/cake plugin load AssociationsDebugger

This plugin is not needed in production enviroment so it's recomended to be loaded using

$this->addOptionalPlugin('AssociationsDebugger');

To see the Associations panel in DebugKit this plugin needs to be loaded before DebugKit

Usage

You can see the tree by going to http://app-address/associations-debugger Here you can filter by association type and model. Tree

This same tree can be also viewed in the CakePHP debugKit. DebugKit tree

Association structure is explained here: Structure

License

Licensed under The MIT License.