Skip to content
/ wazuh Public

This PHP library simplifies integrating with the Wazuh API, allowing developers to connect and utilize its features easily.

License

Notifications You must be signed in to change notification settings

persgeek/wazuh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Wazuh Library

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();

About

This PHP library simplifies integrating with the Wazuh API, allowing developers to connect and utilize its features easily.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages