InitPHP Escaper
OWASP-aligned, context-aware output escaper for PHP 8.2+ covering HTML, attribute, JavaScript, CSS and URL contexts.
Installation
terminal
$ composer require initphp/escaper
Requires PHP 8.2+. The package is published on
Packagist as
initphp/escaper.
What Escaper does
Context-aware output escaper for PHP (HTML, attribute, JavaScript, CSS, URL) — OWASP-aligned, dependency-free, PHP 8.2+.
Package details
- Composer package
- initphp/escaper
- Latest version
- 3.0.0
- Released
- 2026-11-22
- Requires
- PHP 8.2+ (^8.2)
- License
- MIT
- PHP extensions
- ext-ctype, ext-mbstring