定制 outcompute/phpinfo 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

outcompute/phpinfo

最新稳定版本:1.1.0

Composer 安装命令:

composer require outcompute/phpinfo

包简介

Get the output of phpinfo() as an array.

README 文档

README

A simple PHP library to get the output of phpinfo() as an array when invoked from a command line script. You can submit a PR if you adapt it to the HTML version. Although by now you can compile the information to a reasonable degree of completeness from other functions, so this will be of use only when you absolutely have to parse phpinfo().

  • Returns nested information for Configuration, modules in Configuration, Environment, PHP Variables & PHP License

Installation

Add this line to your composer.json file,

"outcompute/phpinfo": "1.0.0"

and run.

$ composer update

How to use

<?php
include_once('vendor/autoload.php');

ob_start();
phpinfo();
$phpinfoAsString = ob_get_contents();
ob_get_clean();

$phpInfo = new OutCompute\PHPInfo\PHPInfo();
$phpInfo->setText($phpinfoAsString);
var_export($phpInfo->get());
?>

TODO

(PRs are welcome)

  • Add support for parsing the HTML version (the _parseHTML() method)
  • Add test cases

License

GPL v2

统计信息

  • 总下载量: 49.81k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固