PHP Classes

PHPInfo Compare Online: Parse and compare PHP configuration versions

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 182 This week: 1All time: 8,690 This week: 560Up
Version License PHP version Categories
phpinfoparser 1.0.1Freely Distributable5XML, PHP 5, System information, Tools, C..., P...
Description 

Author

This package can be used to parse and compare PHP configuration versions.

It can capture the HTML output of the phpinfo() command to parse it and extract the values of the PHP configuration.

The package can export the extracted configuration values.

It can also compare two versions of the PHP configuration to display om a Web page the differences in terms of configuration values and available modules.

Innovation Award
PHP Programming Innovation award nominee
March 2020
Number 11
phpinfo() is a PHP function that allows users to see details of the current configuration of PHP.

This package can extract the information of the phpinfo() function, so it can be exported and compared with the configuration of other environments. That is useful to verify if two environments on which PHP is running are using the same configuration.

Manuel Lemos
Picture of Stefan Kientzler
  Performance   Level  
Name: Stefan Kientzler is available for providing paid consulting. Contact Stefan Kientzler .
Classes: 18 packages by
Country: Germany Germany
Age: 56
All time rank: 73147 in Germany Germany
Week rank: 17 Up1 in Germany Germany Up
Innovation award
Innovation award
Nominee: 11x

Winner: 6x

Example

<?php
require_once 'lib/Helper/PHPInfoParser.php';

use
lib\Helper\PHPInfoParser;

   
// create object
   
$oInfo = new PHPInfoParser();

   
// parse local info and save to XML-File
   
$oInfo->parse();
   
$oInfo->save('phpinfo.xml');

   
header('Content-Type: text/xml');
    echo
$oInfo->saveXML();
   
   
/*
    // compare local phpinfo with saved info-file
    $oInfo->compareWith('phpinfoFG.xml');
    echo $oInfo->reportDiff(PHPInfoParser::REPORT_HTML);
    */
   
    /*
    // compare two saved info-files
    $oInfo->compareFiles('phpinfoCompare1.xml', 'phpinfoCompare2.xml');
    echo $oInfo->reportDiff(PHPInfoParser::REPORT_HTML);
    */
   


Screenshots  
  • PHPSysInfoParser.png
  Files folder image Files  
File Role Description
Files folder imagelib (1 directory)
Accessible without login Plain text file PHPInfoParserTest.php Example Example php-script

  Files folder image Files  /  lib  
File Role Description
Files folder imageHelper (2 files)

  Files folder image Files  /  lib  /  Helper  
File Role Description
  Accessible without login Plain text file ExtDOMDocument.php Aux. Helper class for easier XML access
  Plain text file PHPInfoParser.php Class parse/compare phpinf()

 Version Control Unique User Downloads Download Rankings  
 0%
Total:182
This week:1
All time:8,690
This week:560Up