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 3w 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 47% 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

4157d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/578458?v=4)[Glynn Forrest](/maintainers/glynnforrest)[@glynnforrest](https://github.com/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

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.5k](/packages/symfony-framework-bundle)[symfony/security-bundle

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

2.5k185.6M2.3k](/packages/symfony-security-bundle)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[sylius/sylius

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

8.5k5.9M733](/packages/sylius-sylius)

PHPackages © 2026

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