eugenevdm/network
Composer 安装命令:
composer require eugenevdm/network
包简介
A basic networking library.
README 文档
README
##Description
A PHP network library that provides various common network functions.
List of all commands for Linux
- DNS
- memory
- ping
- traceroute
- uptime
- version
- whois
Installation
composer require eugenevdm/network
Example Commands
$result = Network::whois('snowball.co.za'); die(print_r($result, 1));
echo Network::ping('196.25.1.1');
echo Network::traceroute('196.25.1.1');
See tests.php in the root folder for more examples.
SSH
SSH Installation
sudo apt-get install php-ssh2 && sudo /etc/init.d/apache2 restart
SSH Usage
$config = \Helpers\Helpers::Config('ssh'); $host = new Linux($config['host'], $config['username'], $config['password']); var_dump ($host->dns());; echo $host->version() . "\n"; echo $host->uptime() . "\n"; echo $host->ping() . "\n";
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-14