PHPackages                             cline/babel - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. cline/babel

ActiveLibrary[Localization &amp; i18n](/categories/localization)

cline/babel
===========

Unicode-aware string encoding, conversion, and analysis library for PHP

2.1.2(2mo ago)01.1k↓18.3%MITPHPPHP ^8.2CI passing

Since Mar 4Pushed 2mo agoCompare

[ Source](https://github.com/faustbrian/babel)[ Packagist](https://packagist.org/packages/cline/babel)[ RSS](/packages/cline-babel/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (8)Used By (0)

[![GitHub Workflow Status](https://github.com/faustbrian/babel/actions/workflows/quality-assurance.yaml/badge.svg)](https://github.com/faustbrian/babel/actions)[![Latest Version on Packagist](https://camo.githubusercontent.com/c3f37e2a51aa8e6efee5305ca66ca6642135bbc6fb169700870d8a40d06426a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c696e652f626162656c2e737667)](https://packagist.org/packages/cline/babel)[![Software License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/42517d645e683083e687d662e0d31020f9b9fd217ab52996fa7ae5a7dfdaa8c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c696e652f626162656c2e737667)](https://packagist.org/packages/cline/babel)

---

Unicode-aware string encoding, conversion, and analysis for PHP with a fluent API. Features script detection, directionality analysis, character analysis, and intelligent transliteration.

Requirements
------------

[](#requirements)

> **Requires [PHP 8.2+](https://php.net/releases/)** with `ext-intl`, `ext-mbstring`, and `ext-iconv`

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

[](#installation)

```
composer require cline/babel
```

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

[](#documentation)

- **[Getting Started](https://docs.cline.sh/babel/getting-started/)** - Installation and basic usage
- **[Conversion](https://docs.cline.sh/babel/conversion/)** - Encoding conversion methods
- **[Script Detection](https://docs.cline.sh/babel/script-detection/)** - Detect scripts and character sets
- **[Directionality](https://docs.cline.sh/babel/directionality/)** - RTL/LTR detection
- **[Character Analysis](https://docs.cline.sh/babel/character-analysis/)** - Analyze string contents
- **[Normalization](https://docs.cline.sh/babel/normalization/)** - Clean and normalize strings

Quick Examples
--------------

[](#quick-examples)

```
use Cline\Babel\Babel;

// Convert to ASCII with transliteration
Babel::from('Żółć')->toAscii();           // "Zolc"
Babel::from('北京')->toAscii();            // "bei jing"
Babel::from('Привет')->toAscii();          // "Privet"

// Detect scripts
Babel::from('Hello 世界')->containsChinese();   // true
Babel::from('Привет мир')->containsCyrillic();  // true
Babel::from('مرحبا')->isRtl();                  // true

// Clean strings
Babel::from("Hello\x00World")->removeNonPrintable()->value();  // "HelloWorld"
Babel::from('Hello 👋')->removeEmoji()->value();                // "Hello "

// Create slugs
Babel::from('Héllo Wörld!')->toSlug();  // "hello-world"
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please use the [GitHub security reporting form](https://github.com/faustbrian/babel/security) rather than the issue queue.

Credits
-------

[](#credits)

- [Brian Faust](https://github.com/faustbrian)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License. Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance88

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Recently: every ~3 days

Total

7

Last Release

61d ago

Major Versions

1.0.0 → 2.0.02026-03-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22145591?v=4)[Brian Faust](/maintainers/faustbrian)[@faustbrian](https://github.com/faustbrian)

---

Top Contributors

[![faustbrian](https://avatars.githubusercontent.com/u/22145591?v=4)](https://github.com/faustbrian "faustbrian (11 commits)")

---

Tags

phpi18nutf8stringunicodeencodingasciitransliteration

### Embed Badge

![Health badge](/badges/cline-babel/health.svg)

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

###  Alternatives

[symfony/string

Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way

1.8k724.1M827](/packages/symfony-string)[gettext/languages

gettext languages with plural rules

7530.3M11](/packages/gettext-languages)[punic/punic

PHP-Unicode CLDR

1542.9M29](/packages/punic-punic)[gettext/php-scanner

PHP scanner for gettext

15471.2k12](/packages/gettext-php-scanner)[jayesh/laravel-gemini-translator

An interactive command to extract and generate Laravel translations using Gemini AI.

691.7k1](/packages/jayesh-laravel-gemini-translator)[o80/i18n

Easy library to manage i18n with PHP.

1131.2k](/packages/o80-i18n)

PHPackages © 2026

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