Download the PHP package kanopi/firewall without Composer

On this page you can find all versions of the php package kanopi/firewall. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package firewall

Lite Firewall

Lite Firewall is a powerful, extensible request-evaluation library for PHP-based systems. It analyzes HTTP requests and applies configurable rules to allow, challenge, or block access based on IP addresses, geolocation, user agents, URLs, ASN (Autonomous System Numbers), rate limits, vulnerability scoring, and the OWASP Core Rule Set.

It is framework agnostic — it works with Drupal, WordPress, Symfony, Laravel, or any standalone PHP application.

📖 Documentation

Start at the documentation index.

This README is a short introduction. Everything else — the complete configuration reference, every plugin, the shipped presets, platform integration, and the contribution guide — is in docs/, and published at kanopi.github.io/firewall.

Getting Started Install, configure, and block your first request
Configuration Every YAML key, with defaults
Plugins The ten built-in request evaluators
Presets Ready-made rule sets you can include in one line
Guides Error handling, custom plugins, custom storage, GeoIP setup
Reference Rate-limit rules and the legacy config format
Contributing Development setup, tests, and the PR checklist

The docs source is the docs/ directory in this repository. See Writing Documentation to contribute a change.

Features

Requirements

Installation

Quick Start

Place the following in your application's entry point (index.php, wp-config.php, or Drupal's settings.php):

⚠️ Configure trusted proxies before calling Firewall::create()

Every plugin evaluates $request->getClientIp(). Symfony only honors X-Forwarded-For / Forwarded / X-Real-IP when you have called Request::setTrustedProxies(...). If your application sits behind a load balancer, CDN, or reverse proxy and you skip this, attackers can spoof their source IP and bypass IP allow-lists, block-lists, and per-IP rate limits.

See Trusted Proxies.

Create a config/firewall.yml:

Want a preset instead of writing rules by hand?

Continue with the Quick Start or the five-minute Test Drive.

Local Development

To preview the documentation site locally:

Contributing

We welcome contributions. See the Contributing Guide for development setup, branch and commit conventions, testing requirements, and the PR checklist.

Support

License

This project is licensed under the MIT License. See the LICENSE file for details.

Credits

Lite Firewall is developed and maintained by Kanopi Studios.

Special thanks to:


All versions of firewall with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
doctrine/dbal Version ^4.2
geoip2/geoip2 Version ~2 || ^3
jaybizzle/crawler-detect Version ^1.4
kanopi/crs-engine Version ^1.0
matomo/device-detector Version ^6.4
monolog/monolog Version ^3.9
psr/event-dispatcher Version ^1.0
symfony/cache Version ~6.4 || ~7.3 || ~8.1
symfony/http-foundation Version ~6.4 || ~7.3 || ~8.1
symfony/property-access Version ~6.4 || ~7.3 || ~8.1
symfony/yaml Version ~6.4 || ~7.3 || ~8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kanopi/firewall contains the following files

Loading the files please wait ...