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
- Host: GitHub
- URL: https://github.com/leafsphp/anchor
- Owner: leafsphp
- Created: 2021-09-19T10:39:26.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-10T17:09:50.000Z (over 1 year ago)
- Last Synced: 2025-06-18T10:24:58.313Z (7 months ago)
- Language: PHP
- Homepage: https://leafphp.dev/modules/anchor/
- Size: 26.4 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Leaf Anchor
[](https://packagist.org/packages/leafs/anchor)
[](https://packagist.org/packages/leafs/anchor)
[](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