PHPackages                             lstrojny/uffff - 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. [Security](/categories/security)
4. /
5. lstrojny/uffff

ActiveLibrary[Security](/categories/security)

lstrojny/uffff
==============

Unicode input processing made trivial

v0.2.0(2y ago)2071[25 PRs](https://github.com/lstrojny/uffff/pulls)MITPHPPHP &gt;=8.2

Since Mar 17Pushed 1y ago2 watchersCompare

[ Source](https://github.com/lstrojny/uffff)[ Packagist](https://packagist.org/packages/lstrojny/uffff)[ RSS](/packages/lstrojny-uffff/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (14)Versions (28)Used By (0)

Uffff - *Unicode input processing made trivial*!
================================================

[](#uffff---unicode-input-processing-made-trivial)

[![CI](https://github.com/lstrojny/uffff/actions/workflows/ci.yml/badge.svg)](https://github.com/lstrojny/uffff/actions/workflows/ci.yml) [![Documentation Status](https://camo.githubusercontent.com/f88e9bb303c94dc92641c5c029063b79023a5eeb6e66a4c0678b485201680b94/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f75666666662f62616467652f3f76657273696f6e3d6c6174657374)](https://uffff.readthedocs.io/en/latest/?badge=latest)

Properly processing unicode user input is surprisingly tricky:

- Ensuring bidirectional markers are balanced properly
- Trimming whitespaces and handling esoteric unicode whitespaces well
- Normalizing unicode equivalent characters to a well-known form
- Harmonizing newlines to a single format
- … and more

With **Uffff** the problem is reduced to:

```
$good = Uffff\unicode($bad);
```

[Read the docs](https://uffff.readthedocs.io/) to learn more.

Development
-----------

[](#development)

### Setting up the environment

[](#setting-up-the-environment)

*Uffff* uses [direnv](https://direnv.net/) to set up the development environment. Run `direnv allow` to initialize the development environment.

To switch to a different PHP version for development or if you prefer not to use direnv, you can use `nix develop` to initialize the environment:

- `nix develop github:loophp/nix-shell#env-php82 --impure` to select PHP 8.2
- `nix develop github:loophp/nix-shell#env-php83 --impure` to select PHP 8.3
- `nix develop github:loophp/nix-sphinx` to set up sphinx to build documentation

### Making changes

[](#making-changes)

Change the code and then run `composer check` to run tests, static inspection, everything and the kitchen sink. Once that succeeds, open a pull request.

Edit the documentation in `docs/` and run `composer docs` to build the documentation. Open `build/docs/html/index.html`in a browser to view the HTML version.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85% 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 ~311 days

Total

2

Last Release

846d ago

PHP version history (2 changes)v0.1.0PHP ^8.2

v0.2.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/79707?v=4)[Lars Strojny](/maintainers/lstrojny)[@lstrojny](https://github.com/lstrojny)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (294 commits)")[![lstrojny](https://avatars.githubusercontent.com/u/79707?v=4)](https://github.com/lstrojny "lstrojny (51 commits)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (1 commits)")

---

Tags

phpsecuritytextunicode

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lstrojny-uffff/health.svg)

```
[![Health](https://phpackages.com/badges/lstrojny-uffff/health.svg)](https://phpackages.com/packages/lstrojny-uffff)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)

PHPackages © 2026

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