<commit_before>PHPNessusNG
===========
[![Latest Stable Version](https://poser.pugx.org/leonjza/php-nessus-ng/v/stable.svg)](https://packagist.org/packages/leonjza/php-nessus-ng) [![Total Downloads](https://poser.pugx.org/leonjza/php-nessus-ng/downloads.svg)](https://packagist.org/packages/leonjza/php-nessus-ng) [![Latest Unstable Version](https://poser.pugx.org/leonjza/php-nessus-ng/v/unstable.svg)](https://packagist.org/packages/leonjza/php-nessus-ng) [![License](https://poser.pugx.org/leonjza/php-nessus-ng/license.svg)](https://packagist.org/packages/leonjza/php-nessus-ng)

PHP wrapper functions for interfacing with the Nessus **V6.x** API.

If you are looking for the Nessus V5.x capable XMLRPC API Class, please see the `n5` branch [here](https://github.com/leonjza/PHPNessusNG/tree/n5)

Information:
-----------
The Nessus 6 Vulnerability Scanner provides a RESTful API interface. This library aims to be a wrapper around this API, allowing you to query it directly, as detailed in the API documentation.

One major advantage of this library is that it does not necessarily have to update when new endpoints are made available. It is simply a wrapper. Calls to the API can be made exactly as it is documented in the API reference found at the `/api` resource of your local scanner. For eg. If a API endpoint is defined as:

```text
DELETE /scans/{scan_id}
```

Then you can call it with:

```php
$client->scans($id)->via('delete');
```

The latest version of this wrapper has only been tested against a Nessus **6.0.0** scanner.

Concepts:
---------
There are a fair number of ways to use this library. All methods start the same way though; Instantiating a new instance. The library will handle the authentication cookie automatically internally.

Some examples of calling the API:

```php
<?php

include 'vendor/autoload.php';
<commit_msg>Bump tested version<commit_after>PHPNessusNG
===========
[![Latest Stable Version](https://poser.pugx.org/leonjza/php-nessus-ng/v/stable.svg)](https://packagist.org/packages/leonjza/php-nessus-ng) [![Total Downloads](https://poser.pugx.org/leonjza/php-nessus-ng/downloads.svg)](https://packagist.org/packages/leonjza/php-nessus-ng) [![Latest Unstable Version](https://poser.pugx.org/leonjza/php-nessus-ng/v/unstable.svg)](https://packagist.org/packages/leonjza/php-nessus-ng) [![License](https://poser.pugx.org/leonjza/php-nessus-ng/license.svg)](https://packagist.org/packages/leonjza/php-nessus-ng)

PHP wrapper functions for interfacing with the Nessus **V6.x** API.

If you are looking for the Nessus V5.x capable XMLRPC API Class, please see the `n5` branch [here](https://github.com/leonjza/PHPNessusNG/tree/n5)

Information:
-----------
The Nessus 6 Vulnerability Scanner provides a RESTful API interface. This library aims to be a wrapper around this API, allowing you to query it directly, as detailed in the API documentation.

One major advantage of this library is that it does not necessarily have to update when new endpoints are made available. It is simply a wrapper. Calls to the API can be made exactly as it is documented in the API reference found at the `/api` resource of your local scanner. For eg. If a API endpoint is defined as:

```text
DELETE /scans/{scan_id}
```

Then you can call it with:

```php
$client->scans($id)->via('delete');
```

The latest version of this wrapper has only been tested against a Nessus **6.0.2** scanner.

Concepts:
---------
There are a fair number of ways to use this library. All methods start the same way though; Instantiating a new instance. The library will handle the authentication cookie automatically internally.

Some examples of calling the API:

```php
<?php

include 'vendor/autoload.php';

{'fraction_non_alphanumeric': 0.12917115177610333, 'fraction_numerical': 0.004305705059203444, 'mean_word_length': 4.458149779735683, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3764216', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1159, 'n_words': 400}