PHPackages                             zendframework/zend-escaper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. zendframework/zend-escaper

Abandoned → [laminas/laminas-escaper](/?search=laminas%2Flaminas-escaper)ArchivedLibrary[Validation &amp; Sanitization](/categories/validation)

zendframework/zend-escaper
==========================

Securely and safely escape HTML, HTML attributes, JavaScript, CSS, and URLs

2.6.1(6y ago)32848.6M↑11.2%28[6 issues](https://github.com/zendframework/zend-escaper/issues)20BSD-3-ClausePHPPHP ^5.6 || ^7.0

Since Oct 10Pushed 6y ago19 watchersCompare

[ Source](https://github.com/zendframework/zend-escaper)[ Packagist](https://packagist.org/packages/zendframework/zend-escaper)[ RSS](/packages/zendframework-zend-escaper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (66)Used By (20)

zend-escaper
============

[](#zend-escaper)

> ## Repository abandoned 2019-12-31
>
> [](#repository-abandoned-2019-12-31)
>
> This repository has moved to [laminas/laminas-escaper](https://github.com/laminas/laminas-escaper).

[![Build Status](https://camo.githubusercontent.com/8498916c73f233c1b70157f2b919e5745c9694048d4152282e5c1da4721c013b/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7a656e646672616d65776f726b2f7a656e642d657363617065722e7376673f6272616e63683d6d6173746572)](https://secure.travis-ci.org/zendframework/zend-escaper)[![Coverage Status](https://camo.githubusercontent.com/82c811d950bc47eb216fa292df8c310f0e1f17d1c8b42fe37214f552d11ae743/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a656e646672616d65776f726b2f7a656e642d657363617065722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/zendframework/zend-escaper?branch=master)

The OWASP Top 10 web security risks study lists Cross-Site Scripting (XSS) in second place. PHP’s sole functionality against XSS is limited to two functions of which one is commonly misapplied. Thus, the zend-escaper component was written. It offers developers a way to escape output and defend from XSS and related vulnerabilities by introducing contextual escaping based on peer-reviewed rules.

Installation
------------

[](#installation)

Run the following to install this library:

```
$ composer require zendframework/zend-escaper
```

Documentation
-------------

[](#documentation)

Browse the documentation online at

Support
-------

[](#support)

- [Issues](https://github.com/zendframework/zend-escaper/issues/)
- [Chat](https://zendframework-slack.herokuapp.com/)
- [Forum](https://discourse.zendframework.com/)

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity67

Solid adoption and visibility

Community46

Growing community involvement

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 72.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~41 days

Recently: every ~389 days

Total

63

Last Release

2447d ago

PHP version history (4 changes)2.0.3PHP &gt;=5.3.3

2.3.0PHP &gt;=5.3.23

2.5.2PHP &gt;=5.5

2.6.0PHP ^5.6 || ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/296074?v=4)[Zend Framework](/maintainers/zendframework)[@zendframework](https://github.com/zendframework)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (4191 commits)")[![Maks3w](https://avatars.githubusercontent.com/u/1301698?v=4)](https://github.com/Maks3w "Maks3w (535 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (348 commits)")[![EvanDotPro](https://avatars.githubusercontent.com/u/5607?v=4)](https://github.com/EvanDotPro "EvanDotPro (153 commits)")[![akrabat](https://avatars.githubusercontent.com/u/33135?v=4)](https://github.com/akrabat "akrabat (112 commits)")[![ezimuel](https://avatars.githubusercontent.com/u/475967?v=4)](https://github.com/ezimuel "ezimuel (80 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (40 commits)")[![marc-mabe](https://avatars.githubusercontent.com/u/302689?v=4)](https://github.com/marc-mabe "marc-mabe (38 commits)")[![ralphschindler](https://avatars.githubusercontent.com/u/76674?v=4)](https://github.com/ralphschindler "ralphschindler (35 commits)")[![sgehrig](https://avatars.githubusercontent.com/u/43394?v=4)](https://github.com/sgehrig "sgehrig (33 commits)")[![Freeaqingme](https://avatars.githubusercontent.com/u/33034?v=4)](https://github.com/Freeaqingme "Freeaqingme (24 commits)")[![DASPRiD](https://avatars.githubusercontent.com/u/233300?v=4)](https://github.com/DASPRiD "DASPRiD (23 commits)")[![mwillbanks](https://avatars.githubusercontent.com/u/38209?v=4)](https://github.com/mwillbanks "mwillbanks (16 commits)")[![padraic](https://avatars.githubusercontent.com/u/19780?v=4)](https://github.com/padraic "padraic (14 commits)")[![Thinkscape](https://avatars.githubusercontent.com/u/270528?v=4)](https://github.com/Thinkscape "Thinkscape (12 commits)")[![bakura10](https://avatars.githubusercontent.com/u/1198915?v=4)](https://github.com/bakura10 "bakura10 (11 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (11 commits)")[![Koopzington](https://avatars.githubusercontent.com/u/3015529?v=4)](https://github.com/Koopzington "Koopzington (10 commits)")[![veewee](https://avatars.githubusercontent.com/u/1618158?v=4)](https://github.com/veewee "veewee (9 commits)")[![mikaelkael](https://avatars.githubusercontent.com/u/212540?v=4)](https://github.com/mikaelkael "mikaelkael (9 commits)")

---

Tags

escaperZendFrameworkzf

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zendframework-zend-escaper/health.svg)

```
[![Health](https://phpackages.com/badges/zendframework-zend-escaper/health.svg)](https://phpackages.com/packages/zendframework-zend-escaper)
```

###  Alternatives

[laminas/laminas-escaper

Securely and safely escape HTML, HTML attributes, JavaScript, CSS, and URLs

22288.6M140](/packages/laminas-laminas-escaper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
