PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   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: 99 All time: 9,818 This week: 146Up
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: 30
All time rank: 194576 in Italy Italy
Week rank: 215 Up14 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 (6)  
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 (6)  /  src  
File Role Description
  Plain text file DownWatch.php Class Class source
  Accessible without login Plain text file helper.php Aux. Auxiliary script

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  
 100%
Total:99
This week:0
All time:9,818
This week:146Up