persgeek / wazuh
1.0.0
2024-05-23 09:44 UTC
Requires
- php: >=7.4
- persgeek/http: ^1.1
Requires (Dev)
- phpunit/phpunit: ^11.1
This package is not auto-updated.
Last update: 2025-04-25 12:21:16 UTC
README
This PHP library simplifies integrating with the Wazuh API, allowing developers to connect and utilize its features easily.
How to install
composer require persgeek/wazuh
How to login
$wazuh = new Wazuh('https://test.com');
$wazuh->setUsername($username)
->setPassword($password);
$token = $wazuh->login()
->getToken();
Get list of agents
$wazuh->setToken($token); $agents = $wazuh->getAgents() ->getItems();
Assign agent to group
$wazuh->setToken($token); $message = $wazuh->assignGroup($agentId, $groupId) ->getMessage();