fredbradley/aruba-central

A PHP wrapper for the Aruba Central API

v0.0.9 2025-04-11 08:24 UTC

This package is auto-updated.

Last update: 2025-04-11 08:24:36 UTC


README

For Laravel Applications

Latest Version on Packagist Total Downloads GitHub Actions

Installation & Requirements

This package requires PHP 8.3 and above.

You can install the package via composer:

composer require fredbradley/aruba-central

Usage

You will need to add the following to your .env file:

ARUBA_CLIENT_ID=""
ARUBA_CLIENT_SECRET=""
ARUBA_BASE_URL="" #EG: https://apigw-eucentral2.central.arubanetworks.com/
ARUBA_ACCESS_TOKEN=""
ARUBA_CREDENTIAL_ID=""
ARUBA_REFRESH_TOKEN=""

The config file is publishable, but you shouldn't need to change anything.

Usage

use FredBradley\ArubaCentral\ArubaCentral;

ArubaCentral::accessPoints()->all(); // Gets all access points
ArubaCentral::accessPoints()->findByMacAddress($mac); // Gets a specific access point by MAC address

ArubaCentral::wirelessClients()->all(); // Gets all wireless clients
ArubaCentral::wirelessClients()->findUser($username); // Gets all wireless client by username

This package uses the Saloon API package to make the HTTP requests. You can read more about that package here.

Testing

Not written yet

composer pest

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please either report here or if you don't have a Github account, email code@fredbradley.co.uk instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.