PHPixie

PHPixie is a micro-framework. The version 3 documentation lacks important articles, such as route settings, and I don't have time to watch their video. Hence, this guide provides an idea about how to implement Shieldon Firewall using the simplest way.

Firewall in PHPixie Framework

Installation

Use PHP Composer:

composer require shieldon/shieldon

This will also install dependencies required for Shieldon:

Implementing

Steps

1. Before Initializing PHPixie

In your web/index.php file, after this line:

require_once(__DIR__.'/../vendor/autoload.php');

Add the following code:

Example:

// Implement Shieldon Firewall.
$shieldon = new \Shieldon\Firewall\Integration\Bootstrap();
$shieldon->run();

So, your index.php will look like this:

Example:

<?php

require_once(__DIR__.'/../vendor/autoload.php');

// Implement Shieldon Firewall.
$shieldon = new \Shieldon\Firewall\Integration\Bootstrap();
$shieldon->run();

$framework = new Project\Framework();
$framework->registerDebugHandlers();
$framework->processHttpSapiRequest();

That's it!