PHPackages                             glynnforrest/blockade - 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. glynnforrest/blockade

AbandonedArchivedLibrary[Security](/categories/security)

glynnforrest/blockade
=====================

An easy to use firewall and security library for PHP and the Symfony HttpKernel.

0.2.1(11y ago)11.1k1MITPHPPHP &gt;=5.3.0

Since Apr 28Pushed 11y ago1 watchersCompare

[ Source](https://github.com/glynnforrest/blockade)[ Packagist](https://packagist.org/packages/glynnforrest/blockade)[ RSS](/packages/glynnforrest-blockade/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (6)Used By (1)

Blockade
========

[](#blockade)

[![Build Status](https://camo.githubusercontent.com/98f990a71fd1443ac697e7a119d1c81a7df708ef19f2e476170d1547d829b2f2/68747470733a2f2f7472617669732d63692e6f72672f676c796e6e666f72726573742f626c6f636b6164652e706e67)](https://travis-ci.org/glynnforrest/blockade)

Blockade is an easy to use firewall and security library for PHP and the Symfony HttpKernel.

It uses the `kernel.exception` event to listen for instances of `BlockadeException` and return a response, depending on the type of exception thrown. These exceptions can be thrown at any point in the request, and it's straightforward to create custom exceptions.

Resolvers are responsible for converting an exception to a response, such as an access denied page or a redirect to a login form. A single resolver doesn't have to support every exception or return a response. For example, a resolver that logs unauthorized requests would only listens for `AuthorizationException`, leaving another resolver to create a response.

A `FirewallListener` can be set up to check incoming requests and throw `AuthenticationException`, `AuthorizationException` and `AnonymousException` for you.

Installation
------------

[](#installation)

Blockade is installed via Composer. To add it to your project, simply add it to your composer.json file:

```
{
    "require": {
        "glynnforrest/blockade": "0.2.*"
    }
}
```

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
```

License
-------

[](#license)

MIT, see LICENSE for details.

Copyright 2014 Glynn Forrest

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~72 days

Total

5

Last Release

4108d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a62b0a9c3d62d2776536f8c2d385594c7916f4f3f77834fbb3efa4e71f7d7f68?d=identicon)[glynnforrest](/maintainers/glynnforrest)

---

Top Contributors

[![glynnforrest](https://avatars.githubusercontent.com/u/578458?v=4)](https://github.com/glynnforrest "glynnforrest (47 commits)")

### Embed Badge

![Health badge](/badges/glynnforrest-blockade/health.svg)

```
[![Health](https://phpackages.com/badges/glynnforrest-blockade/health.svg)](https://phpackages.com/packages/glynnforrest-blockade)
```

###  Alternatives

[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k172.9M1.8k](/packages/symfony-security-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
