Preparing for a formal release
Converted tabs to spaces, did some cleanup and updated the composer file.
This commit is contained in:
parent
c840d5a36f
commit
c76fdf936d
5 changed files with 351 additions and 337 deletions
23
LICENSE
23
LICENSE
|
@ -2,20 +2,19 @@ The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2012-2014 Josh Sherman
|
Copyright (c) 2012-2014 Josh Sherman
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
in the Software without restriction, including without limitation the rights
|
the Software without restriction, including without limitation the rights to
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||||
furnished to do so, subject to the following conditions:
|
subject to the following conditions:
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
The above copyright notice and this permission notice shall be included in all
|
||||||
copies or substantial portions of the Software.
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
SOFTWARE.
|
|
||||||
|
|
34
README.md
34
README.md
|
@ -5,16 +5,12 @@
|
||||||
[][packagist]
|
[][packagist]
|
||||||
[][gittip]
|
[][gittip]
|
||||||
|
|
||||||
[travis]: http://travis-ci.org/joshtronic/php-projecthoneypot
|
|
||||||
[coveralls]: https://coveralls.io/r/joshtronic/php-projecthoneypot
|
|
||||||
[packagist]: https://packagist.org/packages/joshtronic/php-projecthoneypot
|
|
||||||
[gittip]: https://www.gittip.com/joshtronic/
|
|
||||||
|
|
||||||
PHP Wrapper for Project Honey Pot. Compatible with PHP 5.3+ and HHVM.
|
PHP Wrapper for Project Honey Pot. Compatible with PHP 5.3+ and HHVM.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
The preferred installation method is via `composer`. First add the following to your `composer.json`
|
The preferred installation method is via `composer`. First add the following
|
||||||
|
to your `composer.json`
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -42,11 +38,14 @@ print_r($results);
|
||||||
|
|
||||||
### 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`.
|
Queries will return an array of information about the IP address. The array
|
||||||
|
will contain `last_activity`, `threat_score` and an array of `categories`.
|
||||||
|
|
||||||
### Simulating Results
|
### Simulating Results
|
||||||
|
|
||||||
The folks at Project Honey Pot were kind enough to include a way to simulate results from their http:BL API. You can do so by performing queries against the following IP addresses.
|
The folks at Project Honey Pot were kind enough to include a way to simulate
|
||||||
|
results from their http:BL API. You can do so by performing queries against
|
||||||
|
the following IP addresses.
|
||||||
|
|
||||||
#### Visitor Types
|
#### Visitor Types
|
||||||
|
|
||||||
|
@ -75,10 +74,21 @@ The folks at Project Honey Pot were kind enough to include a way to simulate res
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Suggestions and bug reports are always welcome, but karma points are earned for pull requests.
|
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 .`
|
Unit tests are required for all contributions. You can run the test suite from
|
||||||
|
the `tests` directory simply by running `phpunit .`
|
||||||
|
|
||||||
I also urge you to install a honey pot and donate some MX records to Project Honey Pot. They are doing great work, they provide http:BL as a free service and your donations help make their service ever better!
|
I also urge you to install a honey pot and donate some MX records to Project
|
||||||
|
Honey Pot. They are doing great work, they provide http:BL as a free service
|
||||||
|
and your donations help make their service ever better!
|
||||||
|
|
||||||
If you’re not already a member, please sign up today with [my referral code](http://www.projecthoneypot.org?rf=123193).
|
If you’re not already a member, please sign up today with
|
||||||
|
[my referral code][referral].
|
||||||
|
|
||||||
|
[coveralls]: https://coveralls.io/r/joshtronic/php-projecthoneypot
|
||||||
|
[gittip]: https://www.gittip.com/joshtronic/
|
||||||
|
[packagist]: https://packagist.org/packages/joshtronic/php-projecthoneypot
|
||||||
|
[referral]: http://www.projecthoneypot.org?rf=123193
|
||||||
|
[travis]: http://travis-ci.org/joshtronic/php-projecthoneypot
|
||||||
|
|
|
@ -1,16 +1,23 @@
|
||||||
{
|
{
|
||||||
"name": "joshtronic/php-projecthoneypot",
|
"name": "joshtronic/php-projecthoneypot",
|
||||||
"description": "PHP Wrapper for Project Honey Pot",
|
"description": "PHP Wrapper for Project Honey Pot",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"type": "library",
|
||||||
|
"keywords": ["project", "honey", "pot", "api", "spam", "spammer"],
|
||||||
|
"homepage": "https://github.com/joshtronic/php-projecthoneypot",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"authors": [{
|
"authors": [{
|
||||||
"name": "Josh Sherman",
|
"name": "Josh Sherman",
|
||||||
"email": "josh@gravityblvd.com",
|
"email": "josh@gravityblvd.com",
|
||||||
"homepage": "https://github.com/joshtronic/php-projecthoneypot"
|
"homepage": "http://joshtronic.com"
|
||||||
}],
|
}],
|
||||||
"autoload": {
|
"require-dev": {
|
||||||
"classmap": ["src/"]
|
"php": ">=5.3.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"satooshi/php-coveralls": "dev-master"
|
"satooshi/php-coveralls": "dev-master"
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {"joshtronic\\": "src/"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -153,4 +153,3 @@ class ProjectHoneyPot
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
|
@ -233,4 +233,3 @@ class ProjectHoneyPotTest extends PHPUnit_Framework_TestCase
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue