PHPackages                             aginev/wp-sanitize - 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. aginev/wp-sanitize

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

aginev/wp-sanitize
==================

WordPress transliterate post slugs and media file names

0.0.3(7y ago)1451MITPHPPHP ^7.0

Since Mar 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/aginev/wp-sanitize)[ Packagist](https://packagist.org/packages/aginev/wp-sanitize)[ Docs](https://aginev.com)[ RSS](/packages/aginev-wp-sanitize/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (3)Used By (0)

Transliterate WordPress post slugs and media file names
=======================================================

[](#transliterate-wordpress-post-slugs-and-media-file-names)

If you are dealing with content data have non Ascii character like Bulgarian, Russian, German etc. and want to have all characters transliterated in slugs and file names you can use this package.

Install
-------

[](#install)

```
composer require aginev/wp-sanitize
```

Usage
-----

[](#usage)

### Transliterate post slugs

[](#transliterate-post-slugs)

```
wp_sanitize_title();
// Имало едно време в Мексико -> imalo-edno-vreme-v-meksiko
```

### Transliterate media library file names

[](#transliterate-media-library-file-names)

```
wp_sanitize_filenames();
// Имало едно време в Мексико.jpg -> imalo-edno-vreme-v-meksiko.jpg
```

License
-------

[](#license)

Everything in this repository is MIT License unless otherwise specified.

MIT © 2018 Atanas Ginev

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~126 days

Total

3

Last Release

2718d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8341783?v=4)[Atanas Ginev](/maintainers/aginev)[@aginev](https://github.com/aginev)

---

Top Contributors

[![aginev](https://avatars.githubusercontent.com/u/8341783?v=4)](https://github.com/aginev "aginev (5 commits)")

---

Tags

postslugslugifytransliteratewordpressaginevtransliterate-wordpress-slugs-and-media-file-names

### Embed Badge

![Health badge](/badges/aginev-wp-sanitize/health.svg)

```
[![Health](https://phpackages.com/badges/aginev-wp-sanitize/health.svg)](https://phpackages.com/packages/aginev-wp-sanitize)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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