An open API service indexing awesome lists of open source software.

https://github.com/devitools/arceau


https://github.com/devitools/arceau

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

# Arceau Firewall

## How to install

`composer require devitools/arceau`

## Get started

Create a PHP file as below

```php
setDefaultMode(FIREWALL_DENY)
->addItem('10.0.0.*', FIREWALL_ALLOW)
->addItems($allowed, FIREWALL_ALLOW)
->handle();
};
```

Then use it anywhere

```php
$firewall = require __DIR__ . '/../../firewall.php';
$firewall();
```