PHPackages                             ninjaphp/ninja - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. ninjaphp/ninja

ActiveLibrary[Security](/categories/security)

ninjaphp/ninja
==============

A simple but very effective PHP firewall. It enables you to easily block most SQL and XSS injections. It also includes a white-/blacklisting of IP's and throttling request using Leaky Bucket.

0.1.1(11y ago)10613MITPHPPHP &gt;=5.4.0

Since Jul 2Pushed 11y ago3 watchersCompare

[ Source](https://github.com/ninjaphp/ninja)[ Packagist](https://packagist.org/packages/ninjaphp/ninja)[ RSS](/packages/ninjaphp-ninja/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

What is Ninja
=============

[](#what-is-ninja)

Ninja is a very simple firewall which you can configure to do awesome things. It's still in development, but it may already be used.

How to configure
----------------

[](#how-to-configure)

Ninja uses [Leaky Bucket](http://en.wikipedia.org/wiki/Leaky_bucket) for throttling requests. You can teach your Ninja about hazards, and block them where needed.

```
