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

https://github.com/leafsphp/anchor

🔐 Leaf PHP security module
https://github.com/leafsphp/anchor

Last synced: 6 months ago
JSON representation

🔐 Leaf PHP security module

Awesome Lists containing this project

README

          









# Leaf Anchor

[![Latest Stable Version](https://poser.pugx.org/leafs/anchor/v/stable)](https://packagist.org/packages/leafs/anchor)
[![Total Downloads](https://poser.pugx.org/leafs/anchor/downloads)](https://packagist.org/packages/leafs/anchor)
[![License](https://poser.pugx.org/leafs/anchor/license)](https://packagist.org/packages/leafs/anchor)

This package contains leaf's utils for deep sanitizing of data and basic security provided for your app data. It also serves as the base for security provided in other modules like CSRF.

## Installation

You can easily install Leaf using [Composer](https://getcomposer.org/).

```bash
composer require leafs/anchor
```

## Basic Usage

After [installing](#installation) anchor, create an _index.php_ file.

### Base XSS protection

```php