Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tabuna/suspicion
https://github.com/tabuna/suspicion
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tabuna/suspicion
- Owner: tabuna
- License: mit
- Created: 2018-11-21T20:23:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-21T20:48:39.000Z (almost 6 years ago)
- Last Synced: 2023-10-20T23:19:23.566Z (about 1 year ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
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.