Download the PHP package clash82/cachedhttpbl without Composer
On this page you can find all versions of the php package clash82/cachedhttpbl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download clash82/cachedhttpbl
More information about clash82/cachedhttpbl
Files in clash82/cachedhttpbl
Package cachedhttpbl
Short Description Cached http:BL is a PHP >=8.3 library that allows to check IPv4 address with `Project HoneyPot's http:BL service` to determine if it's located on the blacklist.
License GPL-3.0-or-later
Homepage https://github.com/clash82/cachedhttpbl
Informations about the package cachedhttpbl
Cached http:BL PHP library
Author: Rafał Toborek
Cached http:BL is a PHP (>= v8.3) library that allows you to check an IPv4 address using Project HoneyPot's http:BL service to determine whether it is listed on the blacklist.
Note: If you still need to support PHP 5.x or PHP < 7.2, install version 2.x. For PHP >= 7.2, install version 3.x.
Why use the http:BL service?
Http:BL provides data about the IP addresses of visitors to your website. The data is exchanged via the DNS system. You can query DNS server and receive a response indicating the type of visitor to your site, the level of threat they pose, and how long it has been since they were last seen within the Project Honey Pot trap network.
More details on how the service works can be found on the official webpage.
Why use the Cached http:BL library?
One of the biggest advantages of using the CachedHttpBL library is the ability to cache http:BL responses using cache adapters. You can use one of the available cache adapters (CSV, Memory, BlackHole) or create a new one by implementing a dedicated cache interface. The library is built in an elegant, object-oriented style, allowing you to extend its functionality.
Try it!
Stable version:
Here is an example (CLI script) of how to use library with CSV cache adapter:
Launch the Test Suite
In the CachedHttpBL directory:
Change log
- added support for PHP v8.4, v8.5 thanks to matteotrubini.
- dropped support for PHP < v8.3.
- dropped support for PHP < v8.1 (use v3.x instead),
- Travis-CI integration was replaced with GitHub Actions,
- added logical operator
isforTranslatorclass type meanings (eg.isHarversterType(),isUnknownType(), etc.), - code refactor and upgrades.
- dropped support for PHP v5.x and PHP < v7.2 (use v2.x instead),
- added full support for PHP v7.2 and PHP v7.3 (enabled strict_types),
- enabled Travis-CI integration for phpstan, php-cs-fixer, phpmd and phpcs,
- fixed minor issues and adjusted coding standards.
- added PSR-2 coding standards,
- added lot of improvements and bug fixes,
- completely refactored code (added more abstract class model, interfaces, cache adapters etc.),
- added tests.
- some stupid errors were fixed.
v1.0.0:
- initial release.
Jezus żyje! 🧡