https://github.com/tabuna/suspicion
https://github.com/tabuna/suspicion
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/tabuna/suspicion
- Owner: tabuna
- License: mit
- Created: 2018-11-21T20:23:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-21T20:48:39.000Z (over 7 years ago)
- Last Synced: 2025-01-22T21:30:24.044Z (over 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 bliz48rus@gmail.com instead of using the issue tracker.
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.