PHPackages                             simbiat/filename-sanitizer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. simbiat/filename-sanitizer

Abandoned → [https://github.com/Simbiat/translit](/?search=https%3A%2F%2Fgithub.com%2FSimbiat%2Ftranslit)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

simbiat/filename-sanitizer
==========================

Small class to replace common characters that are restricted in filenames.

1.4.0+20250417(1y ago)137AGPL-3.0-or-laterPHPPHP ^8.4

Since Sep 6Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/Simbiat/filename-sanitizer)[ Packagist](https://packagist.org/packages/simbiat/filename-sanitizer)[ Docs](https://github.com/Simbiat/filename-sanitizer)[ RSS](/packages/simbiat-filename-sanitizer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (13)Used By (0)

Warning

This library has been replaced by [Translit](https://github.com/Simbiat/translit) and is no longer maintained, but latest release should still work.

Filename sanitizer
==================

[](#filename-sanitizer)

Small class to replace restricted characters or combinations in filenames. Based on rules for Windows  but will be useful for \*NIX systems as well.

This will also replace some characters that may be harmful depending on where and how the files are used. If you want to disable that behaviour, call the `sanitize` function with second argument as `false`.

If you want to remove the characters/combinations instead of replacing, send `true` as third argument.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance52

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity79

Established project with proven stability

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 ~153 days

Recently: every ~238 days

Total

12

Last Release

391d ago

PHP version history (4 changes)1.0.0+20200906PHP &gt;=7.4.0

1.1.1+20210310PHP ^7.4 ^8

1.1.3+20210517PHP &gt;=7.4

1.4.0+20250417PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6022665?v=4)[Dmitrii Kustov](/maintainers/Simbiat)[@Simbiat](https://github.com/Simbiat)

---

Tags

safecharacters

### Embed Badge

![Health badge](/badges/simbiat-filename-sanitizer/health.svg)

```
[![Health](https://phpackages.com/badges/simbiat-filename-sanitizer/health.svg)](https://phpackages.com/packages/simbiat-filename-sanitizer)
```

###  Alternatives

[spomky-labs/base64url

Base 64 URL Safe Encoding/Decoding PHP Library

15439.5M49](/packages/spomky-labs-base64url)

PHPackages © 2026

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