项目作者: zunnu

项目描述 :
Association Debugger is a simple association diagram drawer for CakePHP 3
高级语言: JavaScript
项目地址: git://github.com/zunnu/associations-debugger.git
创建时间: 2021-02-06T19:53:32Z
项目社区:https://github.com/zunnu/associations-debugger

开源协议:MIT License

下载


AssociationsDebugger plugin for CakePHP

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
CakePHP 4.x version can be found here

Example

Requirements

  • CakePHP 5.x
  • PHP 8.1 >

Installing Using Composer

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

  1. composer require --dev zunnu/associations-debugger

Then load the plugin by using CakePHP’s console. This plugin is not needed in production environment, so it’s recommended to be loaded using:

  1. ./bin/cake plugin load AssociationsDebugger --only-debug

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.