PHP Wrapper for Project Honey Pot
Find a file
2014-05-14 17:21:52 -04:00
src Added PHP compatibility 2014-05-14 15:36:58 -04:00
tests Added unit tests and configs 2014-05-14 15:34:09 -04:00
.coveralls.yml Added unit tests and configs 2014-05-14 15:34:09 -04:00
.travis.yml Added unit tests and configs 2014-05-14 15:34:09 -04:00
composer.json Added unit tests and configs 2014-05-14 15:34:09 -04:00
example.php Finished up query logic 2012-05-10 14:58:01 -04:00
LICENSE Project cleanup 2014-05-14 12:28:55 -04:00
README.md Updated badges 2014-05-14 17:21:52 -04:00

php-projecthoneypot

Build Status Coverage Status Downloads Gittip

PHP Wrapper for Project Honey Pot. Compatible with PHP 5.3+ and HHVM.

Installation

The preferred installation method is via composer. First add the following to your composer.json

"require": {
	"joshtronic/php-projecthoneypot": "dev-master"
}

Then run composer update

Usage

Getting Started

require_once 'joshtronic/ProjectHoneyPot.php';
$php = new joshtronic\ProjectHoneyPot();

Performing a Lookup

$results = $php->query('1.2.3.4');
print_r($results);

Results

Queries will return an array of information about the IP address. The array will contain last_activity, threat_score and an array of categories.

Contributing

Suggestions and bug reports are always welcome, but karma points are earned for pull requests.

Unit tests are required for all contributions. You can run the test suite from the tests directory simply by running phpunit .