一个小的插件,可以在您的open-admin环境中直接显示phpinfo。

v1.0 2022-02-09 21:43 UTC

This package is auto-updated.

Last update: 2024-09-15 23:58:00 UTC


README

安装

composer require open-admin-ext/phpinfo

如果您想在左侧菜单中添加链接条目,请使用以下命令导入

php artisan admin:import phpinfo

配置

在config/admin.php文件的扩展部分中,添加配置

    'extensions' => [

        'phpinfo' => [

            // Set this to false if you want to disable this extension
            'enable' => true,

            // What information to show,see https://php.ac.cn/manual/en/function.phpinfo.php#refsect1-function.phpinfo-parameters
            'what' => INFO_ALL,

            // Set access path,defaults to `phpinfo`
            //'path' => '~phpinfo',
        ]
    ]

使用方法

安装后,在浏览器中打开https:///admin/phpinfo

许可证

根据MIT许可证(MIT)授权。