2017 © Pedro Peláez
 

library checkstatus

Check the status of a website

image

checkstatus/checkstatus

Check the status of a website

  • Thursday, March 20, 2014
  • by piradoiv
  • Repository
  • 1 Watchers
  • 2 Stars
  • 41 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 21 Versions
  • 11 % Grown

The README.md

CheckStatus Library

Build Status, (*1)

This micro library aims just to connect to a URL and return the status of the response, like the status code, response milliseconds and a few more details., (*2)

Install it via Composer

On your composer.json…, (*3)

{
  "require": {
    "checkstatus/checkstatus": "dev-master"
  }
}

Example of usage

<?php
// Load Composer's autoload
require './vendor/autoload.php';

// Prepare some settings
$checkStatus = new CheckStatus\CheckStatus;
$url = 'http://www.example.com/';

// Need to use a proxy?, you're covered
$checkStatus->setProxy('111.111.111.111:80');
$checkStatus->setProxyAuth('username:password');

// Fetch the data
$status = $checkStatus->fetchUrl($url);

// Milliseconds
echo $status->getResponseTime();

// Status code
echo $status->getCode();

// URL used to generate the report
echo $status->getUrl();

// When did we fetch the URL?
echo $status->getTimestamp();

// All together
$summary = $status->getSummary();
print_r($summary);

Any question?

Follow me (@PiradoIV) at Twitter., (*4)

The Versions

20/03 2014

dev-master

9999999-dev http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

test curl

25/07 2013

2.1.3

2.1.3.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

test curl

25/07 2013

2.1.2

2.1.2.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

test curl

24/07 2013

2.1.1

2.1.1.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

test curl

24/07 2013

2.1.0

2.1.0.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

test curl

24/07 2013

2.0.0

2.0.0.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

test curl

24/07 2013

1.4.0

1.4.0.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

 

test curl

15/07 2013

1.3.2

1.3.2.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

 

test curl

15/07 2013

1.3.1

1.3.1.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

 

test curl

15/07 2013

1.3.0

1.3.0.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

 

test curl

07/07 2013

1.2.2

1.2.2.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

 

test curl

06/07 2013

1.2.1

1.2.1.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

 

test curl

05/07 2013

1.2.0

1.2.0.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

 

test curl

05/07 2013

1.1.1

1.1.1.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

 

test curl

05/07 2013

1.1.0

1.1.0.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

 

test curl

05/07 2013

1.0.0

1.0.0.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

 

test curl

05/07 2013

0.3.1

0.3.1.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

 

test curl

05/07 2013

0.3.0

0.3.0.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

 

test curl

04/07 2013

0.2.1

0.2.1.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

 

test curl

04/07 2013

0.2.0

0.2.0.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

 

test curl

04/07 2013

0.1.0

0.1.0.0 http://github.com/piradoiv/CheckStatus

Check the status of a website

  Sources   Download

MIT

The Requires

 

test curl