PHP Classes

PHP Down Watch: Notify when a site is down and stopped responding

Recommend this page to a friend!
  Info   View files Example   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 98 This week: 1All time: 9,810 This week: 560Up
Version License PHP version Categories
downwatch 1.0MIT/X Consortium ...5PHP 5, System information, Systems ad...
Description 

Author

This package can notify when a site is down and stopped responding.

It can send a HTTP request to the URL of a given site check if it is responding.

When the site is down, the class can notify the administrator by email.

Picture of Dawood Ikhlaq
  Performance   Level  
Name: Dawood Ikhlaq <contact>
Classes: 8 packages by
Country: Italy Italy
Age: 29
All time rank: 194776 in Italy Italy
Week rank: 106 Up3 in Italy Italy Up
Innovation award
Innovation award
Nominee: 4x

Example

<?php
/**
 * Created by PhpStorm.
 * User: dawood.ikhlaq
 * Date: 02/04/2019
 * Time: 15:29
 */



include 'vendor/autoload.php';
$dotenv = Dotenv\Dotenv::create(__DIR__);
$dotenv->load();



$watch = new \DownWatch\Watch();
try{
   
$watch->work();
}catch (
Exception $exception)
{
    echo
'Following error occured'.PHP_EOL;
    echo
$exception->getMessage().PHP_EOL;
}


  Files folder image Files  
File Role Description
Files folder imagesrc (2 files)
Accessible without login Plain text file .env.example Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file watch.php Example Example script

  Files folder image Files  /  src  
File Role Description
  Plain text file DownWatch.php Class Class source
  Accessible without login Plain text file helper.php Aux. Auxiliary script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:98
This week:1
All time:9,810
This week:560Up