PHP Classes

PHPInfo Compare Online: Parse and compare PHP configuration versions

Recommend this page to a friend!
  Info   Example   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 185 All time: 8,656 This week: 43Up
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: 19 packages by
Country: Germany Germany
Age: 57
All time rank: 71946 in Germany Germany
Week rank: 13 Up2 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 (1)  
  • PHPSysInfoParser.png
  Files folder image Files (4)  
File Role Description
Files folder imagelib (1 directory)
Accessible without login Plain text file PHPInfoParserTest.php Example Example php-script

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

  Files folder image Files (4)  /  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()

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:185
This week:0
All time:8,656
This week:43Up