This PHP library simplifies integrating with the Wazuh API, allowing developers to connect and utilize its features easily.
composer require persgeek/wazuh$wazuh = new Wazuh('https://test.com');
$wazuh->setUsername($username)
->setPassword($password);
$token = $wazuh->login()
->getToken();
$wazuh->setToken($token);
$agents = $wazuh->getAgents()
->getItems();$wazuh->setToken($token);
$message = $wazuh->assignGroup($agentId, $groupId)
->getMessage();