2017 © Pedro PelĆ”ez
 

library serverup

Server Uptime Checker Tool

image

kaankilic/serverup

Server Uptime Checker Tool

  • Monday, November 7, 2016
  • by kaankilic
  • Repository
  • 1 Watchers
  • 2 Stars
  • 50 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

ServerUp Tool

Basic useful Server Uptime and connection checker tool., (*1)

Build Status Total Downloads Latest Stable Version Latest Unstable Version License, (*2)

Installation

You can install the package via composer:, (*3)

composer require kaankilic/serverup

or require the tool in your composer.json file., (*4)

"kaankilic/serverup": "^2.0"

then run composer install command from your command line., (*5)

Once ServerUp is installed you need to register the service provider.Open up config/app.php and add the provider key of tool., (*6)

'providers' => array(
    ...
    Kaankilic\ServerUp\Providers\ServerUpServiceProvider::class,
)

After that, you need to register the facade in the aliases key of your config/app.php file., (*7)

'aliases' => array(
    ... aliases
    'ServerUp'=> Kaankilic\ServerUp\Facades\ServerUp::class,
)

Finally, from the command line again, publish the default configuration file:, (*8)

php artisan vendor:publish --provider="Kaankilic\ServerUp\Providers\ServerUpServiceProvider"

Usage

Simple Usage, (*9)

    ServerUp::ping("http://facebook.com",80);
    ServerUp::getIsTotalyAvail(); //returns boolean value

Advanced Usage, (*10)

You must define Hostname and Port values for the ping values.Then, you can get availibility of ip or domain with ping() facades. Example code is on the below:, (*11)

    ServerUp::setHostname("http://facebook.com");
    ServerUp::setPort(80);
    ServerUp::setSampleAmount(50);
    ServerUp::setTimeoutDuration(10); // unit is integer based milliseconds
    ServerUp::getIsTotalyAvail(); //returns boolean value
    var_dump(ServerUp::ping()); //returns the SocketResponses for each ping request

The Versions

07/11 2016

dev-master

9999999-dev

Server Uptime Checker Tool

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by Kaan KılıƧ

07/11 2016

2.3

2.3.0.0

Server Uptime Checker Tool

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by Kaan KılıƧ

04/11 2016

2.2

2.2.0.0

Server Uptime Checker Tool

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by Kaan KılıƧ

20/09 2016

2.1

2.1.0.0

Server Uptime Checker Tool

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by Kaan KılıƧ

19/09 2016

2.0

2.0.0.0

Server Uptime Checker Tool

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by Kaan KılıƧ

10/09 2016

1.0

1.0.0.0

Server Uptime Checker Tool

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Kaan KılıƧ