, (*1)
This package can show a report of PHP configuration information., (*2)
It provides several classes that retrieve information of configuration of resources that can be used by PHP on the server side., (*3)
The class can compose a report and display it on a Web page, (*4)
Currently the classes provide information about:
* Database
support like MySQL configuration variables and speed of insertion and selection of records
* File system
support like disk space and access permissions, speed of creating files
* Resources needed for high load
applications like available memory, accessing shared memory, sending large email messages, upload large files
* HTTP
connection related resources like get the server IP address, HTTP comnnection protocol, HTTP authentication, session support
* Server platform
information like installed applications such as Wordpress, Drupal, etc., other programming languages
* Servers ISP
information like network, country, city, geographic coordinates
* PHP server
configuration like PHP version, cache extensions, available extensions, (*5)
Demonstration, (*6)
Example of use can be found in the file example.php., (*7)
Requirements
- PHP version 5.3 or higher.
Installation
1) Install composer, (*8)
2) Follow in the project folder:, (*9)
composer require dmamontov/benchmark-tools ~1.0.3
In config composer.json
your project will be added to the library dmamontov/benchmark-tools
, who settled in the folder vendor/
. In the absence of a config file or folder with vendors they will be created., (*10)
If before your project is not used composer
, connect the startup file vendors. To do this, enter the code in the project:, (*11)
require 'path/to/vendor/autoload.php';