PHPackages                             bacon/bacon-string-utils - 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. bacon/bacon-string-utils

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bacon/bacon-string-utils
========================

BaconStringUtils contain utitilies to work with strings.

1.1.0(11y ago)27646.5k↑41.7%51BSD-2-ClausePHPPHP &gt;=5.3.3

Since Apr 1Pushed 9y ago7 watchersCompare

[ Source](https://github.com/Bacon/BaconStringUtils)[ Packagist](https://packagist.org/packages/bacon/bacon-string-utils)[ Docs](https://github.com/Bacon/BaconStringUtils)[ RSS](/packages/bacon-bacon-string-utils/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (7)Used By (1)

BaconStringUtils
================

[](#baconstringutils)

Master: [![Build Status](https://camo.githubusercontent.com/bcff73c596b662516cad798ba67b0e8a93739ce2e44e7f1fcf6f1105b079e10d/68747470733a2f2f6170692e7472617669732d63692e6f72672f4261636f6e2f4261636f6e537472696e675574696c732e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/Bacon/BaconStringUtils)[![Coverage Status](https://camo.githubusercontent.com/737aac46e9b5053608d041ef9119705df2d5396301e6dc96a152985a08d6a027/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4261636f6e2f4261636f6e537472696e675574696c732f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/Bacon/BaconStringUtils)

Introduction
------------

[](#introduction)

BaconStringUtils contain utitilies to work with strings. The currently included components are:

- **BaconStringUtils\\Slugifier**URI-friendly slug generator.

    You sometimes need to display a text value in a URI, like for instance the title of an article in a blog URL, like those generated by wordpress. This component helps you to generate such a usable slug. It interally makes use of the BaconStringUtils\\UniDecoder component also provided by this library.
- **BaconStringUtils\\UniDecoder**US-ASCII transliterations of Unicode text.

    It often happens that you have non-Roman text data in Unicode, but you can't display it -- usually because you're trying to show it to a user via an application that doesn't support Unicode, or because the fonts you need aren't accessible. You could represent the Unicode characters as "???????" or " BA A0q0...", but that's nearly useless to the user who actually wants to read what the text says.

    What this component provides is a method, 'decode(...)' that takes Unicode data and tries to represent it in ASCII characters (i.e., the universally displayable characters between 0x00 and 0x7F). The representation is almost always an attempt at transliteration -- i.e., conveying, in Roman letters, the pronunciation expressed by the text in some other writing system.

    For example "$decoder-&gt;decode('北亰')" returns "Bei Jing".

    This is a PHP port of the UniDecode Python module, which on the other hand is a port of the Text::Unidecode Perl module by Sean M. Burke .

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~139 days

Total

5

Last Release

4237d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0490627b04e8600f8227138bac3d4aea04c22eecfa119e73b47c362363904847?d=identicon)[DASPRiD](/maintainers/DASPRiD)

---

Top Contributors

[![DASPRiD](https://avatars.githubusercontent.com/u/233300?v=4)](https://github.com/DASPRiD "DASPRiD (40 commits)")[![snapshotpl](https://avatars.githubusercontent.com/u/312655?v=4)](https://github.com/snapshotpl "snapshotpl (7 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bacon-bacon-string-utils/health.svg)

```
[![Health](https://phpackages.com/badges/bacon-bacon-string-utils/health.svg)](https://phpackages.com/packages/bacon-bacon-string-utils)
```

###  Alternatives

[pharaonic/php-dot-array

Access array data quickly/easily using dot-notation and asterisk.

1011.6k3](/packages/pharaonic-php-dot-array)

PHPackages © 2026

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