An open API service indexing awesome lists of open source software.

https://github.com/zunnu/associations-debugger

Association Debugger is a association diagram drawer for CakePHP
https://github.com/zunnu/associations-debugger

associations cakephp cakephp-plugin php

Last synced: 5 months ago
JSON representation

Association Debugger is a association diagram drawer for CakePHP

Awesome Lists containing this project

README

          

# AssociationsDebugger plugin for [CakePHP][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](https://github.com/zunnu/associations-debugger/tree/3.x)
CakePHP 4.x version can be found [here](https://github.com/zunnu/associations-debugger/tree/4.x)

![Example](https://i.giphy.com/media/LylyHkulR8xTpDrapb/giphy.webp)

## Requirements
* CakePHP 5.x
* PHP 8.1 >

## Installing Using [Composer][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. This plugin is not needed in production environment, so it's recommended to be loaded using:

```
./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][mit].

[cakephp]:http://cakephp.org
[composer]:http://getcomposer.org
[mit]:http://www.opensource.org/licenses/mit-license.php