InitPHP Escaper
OWASP-aligned, context-aware output escaper for PHP 7.4+ covering HTML, attribute, JavaScript, CSS and URL contexts.
Installation
terminal
$ composer require initphp/escaper
Requires PHP 7.4+. 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 7.4+.
Package details
- Composer package
- initphp/escaper
- Latest version
- 2.0.0
- Released
- 2026-05-25
- Requires
- PHP 7.4+ (>=7.4)
- License
- MIT
- PHP extensions
- ext-ctype, ext-mbstring