php-client/keenetic
最新稳定版本:v0.1.1
Composer 安装命令:
composer require php-client/keenetic
包简介
PHP Client for Keenetic Router API
关键字:
README 文档
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.
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-11