Download the PHP package glynnforrest/blockade without Composer
On this page you can find all versions of the php package glynnforrest/blockade. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download glynnforrest/blockade
More information about glynnforrest/blockade
Files in glynnforrest/blockade
Package blockade
Short Description An easy to use firewall and security library for PHP and the Symfony HttpKernel.
License MIT
Informations about the package blockade
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
Blockade is installed via Composer. To add it to your project, simply add it to your composer.json file:
And run composer to update your dependencies:
License
MIT, see LICENSE for details.
Copyright 2014 Glynn Forrest
All versions of blockade with dependencies
symfony/http-foundation Version 2.4.*
symfony/http-kernel Version 2.4.*
symfony/event-dispatcher Version 2.4.*