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.1 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.1 library which allows you to check IPv4 address with Project HoneyPot's http:BL service
to determine if it's located on the blacklist.
Note: If you still need to support PHP 5.x or PHP <7.2 then install version 2.x. For PHP >=7.2 install version 3.x.
Why use http:BL service?
Http:BL provides data back about the IP addresses of visitors to your website. Data is exchanged over the DNS system. You may query your local DNS server and receive a response back that indicates the type of visitor to your site, how threatening that visitor is, and how long it has been since the visitor has last been seen within the Project Honey Pot trap network.
More details on how service works can be found on an official webpage.
Why use Cached http:BL library?
One of the biggest advantages of using CachedHttpBL library is a possibility to cache http:BL responses by using cache adapters. You can use one of the available cache adapters (CSV, Memory, BlackHole) or create a new one by implementing dedicated cache interface. Library is built in an elegant objective style allowing you to extend it's 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
- dropped support for PHP <8.1 (use v3.x instead),
- Travis-CI integration was replaced with GitHub Actions,
- added logical operator
is
forTranslator
class type meanings (eg.isHarversterType()
,isUnknownType()
, etc.), - code refactor and upgrades.
- dropped support for PHP 5.x and PHP <7.2 (use v2.x instead),
- added full support for PHP 7.2 and PHP 7.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! 🧡