##Description
A PHP network library that provides various common network functions.
- DNS
- memory
- ping
- traceroute
- uptime
- version
- whois
composer require eugenevdm/network
$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.
sudo apt-get install php-ssh2 && sudo /etc/init.d/apache2 restart
$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";