fredbradley / xirrusapi
PHP API for Xirrus XMS Managment
v1.1.4
2023-02-22 14:41 UTC
Requires
- php: ^7.4||^8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpunit/phpunit: ^8.0
- vimeo/psalm: ^3.12
README
A PHP Wrapper for the XMS API from Xirrus / Cambium Networks.
Installation
You can install the package via composer:
composer require fredbradley/xirrusapi
Usage
// Override default options $default_options = [ 'verify' => true, // set to false, if you are up against SSL verification issues /** * Please note: Setting this to false is not recommended * and weakens the security of your system, but * sometimes for testing purposes is nessecary */ ]; $api = new \FredBradley\XirrusApi\XirrusApi("https://xmsserver.tld:9443", "exampleusername", "examplepassword", $default_options); $api->request("GET", "stations.json"); // This will get you a php json object of your api result dataset
Further helper methods will be coded into this package in time.
API Documentation
Documentation can be found locally on your own XMS Hosted appliance, under "Settings -> XMS API -> API Documentation"
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email code@fredbradley.co.uk instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
PHP Package Boilerplate
This package was generated using the PHP Package Boilerplate.