PingPHP
A simple class that checks if a web application is up., (*1)
Usage
Get the script
Get the script via one of the following routes:, (*2)
Route #1: Download the source here on GitHub, (*3)
Option #1: Download the zip, (*4)
Option #2: Clone it (git clone https://github.com/marcotroisi/pingphp.git), (*5)
Route #2: Get it from Composer, (*6)
Create a composer.json file in your root folder with this text:, (*7)
{
"require": {
"marcotroisi/pingphp": "dev-master"
}
}
Download Composer by running this in your Command Line: curl -s http://getcomposer.org/installer | php, (*8)
Install the dependencies in your composer.json by running: php composer.phar install, (*9)
Then...
- Include in your project the class Ping.php
- Pratical usage of the class is in demo.php
Issues
Should you need any help, please write to hello AT marcotroisi DOT com., (*10)