|
1 | 1 | Outputs information about PHP's configuration |
2 | 2 | ====== |
3 | 3 |
|
4 | | -`phpinfo()`函数的laravel-admin版本, Inspired by [nova-phpinfo](https://github.com/davidpiesse/nova-phpinfo) |
| 4 | +The laravel-admin version of the `phpinfo()` function,, Inspired by [nova-phpinfo](https://github.com/davidpiesse/nova-phpinfo) |
5 | 5 |
|
6 | | -## 截图 |
| 6 | +## Screenshot |
7 | 7 |
|
8 | 8 |  |
9 | 9 |
|
10 | | -## 安装 |
| 10 | +## Installation |
11 | 11 |
|
12 | 12 | ```bash |
13 | 13 | composer require laravel-admin-ext/phpinfo |
14 | 14 | ``` |
15 | 15 |
|
16 | | -如果要在左侧菜单添加一个链接入口,用下面的命令导入 |
| 16 | +If you want to add a link entry in the left menu, use the following command to import |
17 | 17 | ```bash |
18 | 18 | php artisan admin:import phpinfo |
19 | 19 | ``` |
20 | 20 |
|
21 | | -## 配置 |
| 21 | +## Configuration |
22 | 22 |
|
23 | | -在`config/admin.php`文件的`extensions`,加上属于这个扩展的配置 |
| 23 | +In the `extensions` section of the `config/admin.php` file, add configurations |
24 | 24 | ```php |
25 | 25 |
|
26 | 26 | 'extensions' => [ |
27 | 27 |
|
28 | 28 | 'phpinfo' => [ |
29 | 29 |
|
30 | | - // 如果要关掉这个扩展,设置为false |
| 30 | + // Set this to false if you want to disable this extension |
31 | 31 | 'enable' => true, |
32 | 32 |
|
33 | | - // 设置要显示的内容,参考 http://php.net/manual/en/function.phpinfo.php#refsect1-function.phpinfo-parameters |
| 33 | + // What information to show,see http://php.net/manual/en/function.phpinfo.php#refsect1-function.phpinfo-parameters |
34 | 34 | 'what' => INFO_ALL, |
35 | 35 |
|
36 | | - // 设置访问路径,默认为phpinfo |
| 36 | + // Set access path,defaults to `phpinfo` |
37 | 37 | //'path' => '~phpinfo', |
38 | 38 | ] |
39 | 39 | ] |
40 | 40 |
|
41 | 41 | ``` |
42 | 42 |
|
43 | | -## 使用 |
| 43 | +## Usage |
44 | 44 |
|
45 | | -安装完成之后打开`http://localhost/admin/phpinfo` |
| 45 | +Open `http://localhost/admin/phpinfo` in your broswer after install |
46 | 46 |
|
47 | | -## 支持 |
| 47 | +## Donate |
48 | 48 |
|
49 | | -如果觉得这个项目帮你节约了时间,不妨支持一下;) |
| 49 | +> Help keeping the project development going, by donating a little. Thanks in advance. |
| 50 | +
|
| 51 | +[](https://www.paypal.me/zousong) |
50 | 52 |
|
51 | 53 |  |
52 | 54 |
|
53 | 55 | License |
54 | 56 | ------------ |
55 | | -Licensed under [The MIT License (MIT)](LICENSE). |
| 57 | +Licensed under [The MIT License (MIT)](LICENSE). |
0 commit comments