InitPHP Escaper

OWASP-aligned, context-aware output escaper for PHP 8.2+ covering HTML, attribute, JavaScript, CSS and URL contexts.

PHP 8.2+ MIT v3.0.0

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