Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tabuna/suspicion


https://github.com/tabuna/suspicion

Last synced: 25 days ago
JSON representation

Awesome Lists containing this project

README

        

# Suspicion

....

## Install

Via Composer

``` bash
$ composer require orchid/suspicion
```

## Usage

``` php
$history = new History();
$history->setUserAgent('Opera/9.80 (Windows NT 6.0; U; Distribution 00; ru) Presto/2.10.289 Version/12.02');
$history->setIp('82.254.254.196');
$history->setLastLogin('2018-11-21 23:19:18');

$suspicion = new Suspicion();
echo $suspicion->analyze($history); //The higher the value, the more suspicious the input.
```

## Testing

``` bash
$ composer test
```

## Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.