clonalejandro / ClonaStatus-Client

Api in php for get a status for any service 🖥️

Home Page:https://server.clonalejandro.me/api/status/?domain=github.com&port=80

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ClonaStatus 🖥️

API - Usage

• Usage PHP:

<?php
  include ('StatusApi.php'); //Include php file
  use io\clonalejandro\StatusApi; // Import a StatusApi class

  $req = new StatusApi('domaintosearch.com');

  if ($req->isOnline()) echo "Online";
  else echo "Offline";
?>

• Usage HTML:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>StatusApi</title>
</head>
<body>

<script src="StatusApi.js"></script>
<script>
    const api = new StatusApi({
        domain: "domaintosearch.com",
        port: 80
    });
    
    api.getRequest((err, data) => {
        if (err) console.error(err);
        else alert(data);
    })
</script>
</body>
</html>

picture

Copyright ©

Developed by clonalejandro

About

Api in php for get a status for any service 🖥️

https://server.clonalejandro.me/api/status/?domain=github.com&port=80

License:MIT License


Languages

Language:PHP 63.9%Language:JavaScript 36.1%