montross50 / netsparker-cloud-sdk
Netsparker cloud php sdk
Requires
- php: ~7.1
- illuminate/support: 5.7.*
- jane-php/open-api-runtime: ^4.0
- php-http/client-implementation: ^1.0
- php-http/discovery: ^1.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.7.3
- guzzlehttp/guzzle: 6.3.*
- guzzlehttp/psr7: ^1.2
- jane-php/open-api: ^4.0
- orchestra/testbench: ~3.0
- php-http/guzzle6-adapter: ^1.1
- phpunit/phpunit: >=7.0
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2024-10-12 04:50:47 UTC
README
This package creates an SDK to integrate with Netsparker Cloud. It is intended to work with Laravel. Hence the service provider. If someone really needs a non laravel version I could do that but this is my use case. The package uses Jane Open Api to generate the raw SDK.
Install
Via Composer
$ composer require montross50/netsparker-cloud-sdk
Usage
$api = app(NetsparkerCloudInterface::class); $result = $api->scansResult('foobar');
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
The integration tests expect you to create a phpunit.xml.dist and place your credentials in the env.
<php> <env name="NETSPARKER_USERNAME" value="user"/> <env name="NETSPARKER_PASSWORD" value="pass"/> <env name="NETSPARKER_URL" value="url"/> <env name="INTEGRATION_TEST_USER_EMAIL" value="api user email"/> <env name="INTEGRATION_TEST_SCAN_ID" value="some scan id"/> </php>
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email sch43228@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.