php-client / keenetic
PHP Client for Keenetic Router API
v0.1.1
2025-03-02 15:28 UTC
Requires
- php: ^8.3
- php-client/support: ^0.1
- saloonphp/saloon: ^3.9
Requires (Dev)
- pestphp/pest: ^2.34
- symfony/var-dumper: ^7.1
- vlucas/phpdotenv: ^5.6
This package is auto-updated.
Last update: 2025-05-30 16:01:03 UTC
README
This is a PHP client for the Keenetic Routers API.
Installation
Install the package via composer:
composer require php-client/keenetic
Usage
Simple example:
use PhpClient\Keenetic\Keenetic; $keenetic = new Keenetic( // Replace with real values for your router: baseUrl: 'http://192.168.1.1', login: 'admin', password: 'admin', ); $keenetic->auth(); $response = $keenetic->api->devices()->listDevices(); foreach ($response->json('host') as $device) { echo $device['name']; }
List of available API methods
API client is currently under development. Presently, the following methods are available:
- Devices
- List devices
- Register device
- Unregister device
- Set device IP
- Unset device IP
- System
- Get default config
- Get running config
- Get startup config
- Get log
More methods will be added in the future.
License
This package is released under the MIT License.