Skip to content

Pure PHP Project

Terry L edited this page Aug 24, 2020 · 3 revisions

Implementing Shieldon on a pure PHP project is easy. There is already a integation class for you to make it.

Installation

Use PHP Composer:

composer require shieldon/shieldon ^2

Make sure your project supports pretty URL, then you can use the following code, the position is just after Composer autoloader:

Example:

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

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

// ... your code.

That's it.

You can access the Firewall Panel by /firewall/panel/, to see the page, go to this URL in your browser.

https://yourwebsite.com/firewall/panel/

The default login is shieldon_user and password is shieldon_pass. After logging in the Firewall Panel, the first thing you need to do is to change the login and password.

Shieldon Firewall will start watching your website if it get enabled in Deamon setting section, make sure you have set up the settings correctly.

Clone this wiki locally