jwdr / zyxel
Allows remote reading of statistics of ZyXEL VMG8324-B10A
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jwdr/zyxel
Requires
- php: >=5.6
- ext-ssh2: *
- nicolopignatelli/valueobjects: ~3.0
Requires (Dev)
- phpunit/phpunit: ~5.0.8
This package is not auto-updated.
Last update: 2022-07-09 07:14:03 UTC
README
Installation
The best way to add the library to your project is using composer.
{ "require": { "jwdr/zyxel": "*" } }
How it works
Create the needed parameter value objects:
$ipAddress = new \ValueObjects\Web\IPAddress('your-router-ip-address'); $portNumber = new \ValueObjects\Web\PortNumber(22); $userName = new \ValueObjects\String\String('your-user-name'); $passWord = new \ValueObjects\String\String('your-password');
Instantiate the config object, and use it to create the connection
$ZyXELConfig = new \jwdr\ZyXEL\Config($ipAddress, $portNumber, $userName, $passWord); $ZyXELConnection = new \jwdr\ZyXEL\Connection($ZyXELConfig);
Instantiate the ZyXEL object
$ZyXEL = new \jwdr\ZyXEL\ZyXEL($ZyXELConnection);
Finally ready to start reading information from the router!
Get the list of current known lan host devices
$lanHosts = $ZyXEL->lanHosts();
More to follow