- Install Composer. How to Use Composer?
- Execute
composer install
orcomposer update
. - Import pinpoint entry header into public/index.php as below
<?php ... // [ 应用入口文件 ] namespace think; // 加载基础文件 require __DIR__ . '/../thinkphp/base.php'; //################################################################### define('AOP_CACHE_DIR', __DIR__ . '/../Cache/'); define('PLUGINS_DIR', __DIR__ . '/../Plugins/'); define('APPLICATION_NAME','thinkphp5.1'); // your application name define('APPLICATION_ID','thinkphp5.1'); // your application id define('PINPOINT_USE_CACHE','YES'); require_once __DIR__ . '/../vendor/pinpoint-apm/pinpoint-php-aop/auto_pinpointed.php'; //################################################################### // 支持事先使用静态方法设置Request对象和Config对象 // 执行应用并响应 Container::get('app')->run()->send();
- Start testapp by executing
php think run
.
PHP
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||