persgeek/wazuh

1.0.0 2024-05-23 09:44 UTC

This package is not auto-updated.

Last update: 2024-06-07 08:13:29 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();