https://github.com/ngmy/phpinfocmp
PhpinfoComparator is compare two phpinfo() files.
https://github.com/ngmy/phpinfocmp
comparison diff php php-ini phpinfo tool
Last synced: about 1 month ago
JSON representation
PhpinfoComparator is compare two phpinfo() files.
- Host: GitHub
- URL: https://github.com/ngmy/phpinfocmp
- Owner: ngmy
- License: mit
- Created: 2018-11-25T09:41:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-25T17:34:06.000Z (over 6 years ago)
- Last Synced: 2025-03-29T05:33:51.835Z (2 months ago)
- Topics: comparison, diff, php, php-ini, phpinfo, tool
- Language: HTML
- Size: 61.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PhpinfoComparator
[](https://travis-ci.org/ngmy/phpinfocmp)
[](https://coveralls.io/github/ngmy/phpinfocmp?branch=master)PhpinfoComparator is compare two `phpinfo()` files.
## Requirements
PhpinfoComparator has the following requirements:
* PHP >= 7.1.0
## Installation
Install PhpinfoComparator globally as a system wide by using the Composer:
```sh
composer global require ngmy/phpinfocmp
```Or alternatively, install PhpinfoComparator locally as part of your project by using the Composer:
```sh
composer require ngmy/phpinfocmp
```## Usage
Compare two `phpinfo()` files on two remote servers:
```sh
phpinfocmp http://server1/phpinfo http://server2/phpinfo > phpinfo_diff.html
```Compare two html `phpinfo()` files on one local machine:
```sh
phpinfocmp --fetch-mode1=file --fetch-mode2=file phpinfo1.html phpinfo2.html > phpinfo_diff.html
```Compare two text `phpinfo()` files on one local machine:
```sh
phpinfocmp --fetch-mode1=file --fetch-mode2=file --file-format1=text --file-format2=text phpinfo1.txt phpinfo2.txt > phpinfo_diff.html
```You can combine different fetch modes and file formats:
```sh
phpinfocmp --fetch-mode2=file http://server1/phpinfo phpinfo.html > phpinfo_diff.html
``````sh
phpinfocmp --fetch-mode1=file --fetch-mode2=file --file-format2=text phpinfo.html phpinfo.txt > phpinfo_diff.html
```You can read fetch options from a specified PHP file:
```sh
phpinfocmp --fetch-options1=fetch_options.php --fetch-options2=fetch_options.php https://server1/phpinfo https://server2/phpinfo > phpinfo_diff.html
```The PHP file must be an array format that can be passed to `curl_setopt_array()` as following:
```php
false,
];
```## License
PhpinfoComparator is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).