montross50/netsparker-cloud-sdk

dev-master / 1.0.x-dev 2019-02-11 15:11 UTC

This package is auto-updated.

Last update: 2022-09-12 00:18:33 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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.