定制 alirezax5/check-host 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alirezax5/check-host

最新稳定版本:1.0.0

Composer 安装命令:

composer require alirezax5/check-host

包简介

check-host.net api php

README 文档

README

About

These repository are a php class for check-host.net and you can send ping, http, tcp, dns requests through it.

How to install by composer

composer require alirezax5/check-host

How to work:

1 - Create an object from the CheckHost class and write the desired host as a parameter inside it

<?php
require 'vendor/autoload.php';

$CheckHost = new \Alirezax5\CheckHost\CheckHost('1.1.1.1');

2 - Choose the method you want based on the type of request and write it in your code.

print_r($CheckHost->ping());
print_r($CheckHost->http());
print_r($CheckHost->dns());
print_r($CheckHost->tcp());

3 - If you want to receive a specific node, send the name of that node as below:

$CheckHost->node('ir1')->node('ir4');

You can send from the method as a chain

Code in full:

<?php
require 'vendor/autoload.php';

$CheckHost = new \Alirezax5\CheckHost\CheckHost('1.1.1.1');
print_r($CheckHost->ping());
print_r($CheckHost->http());
print_r($CheckHost->dns());
print_r($CheckHost->tcp());

//some node
$CheckHost->node('ir1')->node('ir4');
print_r($CheckHost->ping());

Donate

To support me, you can star this repository or donate via the following currencies

  • TON
UQBnlnOGefCkwgtO7IZdOBFuoojkpKgK3mI1GmH3MH_gG0A9

统计信息

  • 总下载量: 141
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-05-02