Skip to content

zoopcommerce/pyro

Repository files navigation

Pyro

Build Status

Pyro is a simple ZF2 firewall module.

Usage

Module init

Just add the following to your application.config.php modules

return [
    'modules' => [
        'Zoop\Pyro',
        ...
    ],
    ...
];

Config

return [
    'zoop' => [
        'pyro' => [
            'enable'  => true, // turns the firewall on or off.
            'adapter' => 'zoop.pyro.adapter.doctrine', //set active adapter, see below.
        ],
    ],
    ...
];

Adapters

Pyro consumes firewall "adapters", which are services that store, retrieve and test IP addresses against. You can create your own adapters by implementing Zoop\Pyro\Adapter\AdapterInterface.

About

ZF2 firewall module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published