PHP Class for interaction with Huawei E8372 (throught Hi-Link API)
- Clone this repository into your project.
- Perform a
composer update
to load requirements. - Include
modem.class.php
into your project.
Create a class instance:
$modem1 = new Manoaratefy\NetworkTools\Modem('192.168.8.1', 'admin', '***********');
Check if the modem is reacheable:
if (!$modem1->online()) {
echo "The modem is not online. Check network connection.\n";
}
Use the class:
echo 'Software version: ' . $modem1->SoftwareVersion() . "\n";
Look at the project wiki.