fredbradley / imcapi
PHP JSON API wrapper for the HPE IMC software to manage network switches
v1.0.9
2024-07-15 10:57 UTC
Requires
- php: ^8.0
- ext-json: *
- illuminate/support: ^8.0||^9.0||^10.0||^11.0
Requires (Dev)
- laravel/pint: ^1.10
- mockery/mockery: ^1.6
- nunomaduro/larastan: ^2.6
- pestphp/pest: ^2.12
README
You can find more information about the HPE IMC here: https://support.hpe.com/hpesc/public/docDisplay?docId=emr_na-c05367573
Installation
You can install the package via composer:
composer require fredbradley/imcapi
Usage
This project is still very much a work in progress. The intention is that more default methods will be added.
$imc = new \FredBradley\IMCAPI\Imcapi("http://mydomain.tld:8080/imcrs/", "username", "pa55w0rd"); $listDevices = $imc->getDevices(); $anyOtherRequest = $imc->request('/endpoint');
You can see a list of valid endpoints on your device: http://mydomain.tld:8080/imcrs
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.uk instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.