https://github.com/php-client/keenetic
PHP client for Keenetic Routers API
https://github.com/php-client/keenetic
api client keenetic php router saloon sdk
Last synced: 4 months ago
JSON representation
PHP client for Keenetic Routers API
- Host: GitHub
- URL: https://github.com/php-client/keenetic
- Owner: php-client
- License: mit
- Created: 2024-05-04T21:33:55.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-03-02T15:29:55.000Z (over 1 year ago)
- Last Synced: 2025-05-18T04:16:08.260Z (about 1 year ago)
- Topics: api, client, keenetic, php, router, saloon, sdk
- Language: PHP
- Homepage:
- Size: 36.1 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PHP client for Keenetic Routers API.
This is a PHP client for the [Keenetic Routers API](https://help.keenetic.com/hc/en-us).
## Installation
Install the package via composer:
```bash
composer require php-client/keenetic
```
## Usage
Simple example:
```php
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](LICENSE.md).