PHP code example of purple / anbu

1. Go to this page and download the library: Download purple/anbu library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

purple / anbu example snippets


return [
    /**
     * 启用分析工具
     */
    'disable' => env('PURPLE_ENABLE', false),

    /**
     * 页面是否显示按钮
     */
    'display' => true,

    /**
     * 数据收集驱动类型
     */
    'repository' => 'Purple\Anbu\Repositories\DatabaseRepository',

    /**
     * 分析工具列表
     */
    'modules' => [
        'Purple\Anbu\Modules\Dashboard\Dashboard',
        'Purple\Anbu\Modules\RoutesBrowser\RoutesBrowser',
        'Purple\Anbu\Modules\Request\Request',
        'Purple\Anbu\Modules\QueryLogger\QueryLogger',
        'Purple\Anbu\Modules\Logger\Logger',
        'Purple\Anbu\Modules\Events\Events',
        'Purple\Anbu\Modules\Debug\Debug',
        'Purple\Anbu\Modules\Timers\Timers',
        'Purple\Anbu\Modules\Info\Info',
        'Purple\Anbu\Modules\History\History',
//        'Anbu\Modules\Container\Container',
    ],
    
];