PHPackages                             codeinc/strip-accents - 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. codeinc/strip-accents

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

codeinc/strip-accents
=====================

A PHP library to remove accents and diacritics from strings

2.0.0(2mo ago)8318.6k↓42.9%12MITPHPPHP &gt;=8.2CI failing

Since Mar 15Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/CodeIncHQ/StripAccents)[ Packagist](https://packagist.org/packages/codeinc/strip-accents)[ Docs](https://github.com/codeinchq/strip-accents)[ RSS](/packages/codeinc-strip-accents/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (2)

Strip Accents
=============

[](#strip-accents)

[![Packagist Version](https://camo.githubusercontent.com/3e32258583213c9e09a2dc11fd2616e11f084e0f835bb0cbb854d078c67a9f0d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6465696e632f73747269702d616363656e7473)](https://packagist.org/packages/codeinc/strip-accents)[![Packagist Downloads](https://camo.githubusercontent.com/716dd91e67736940eb14c8598b282bd276dcd52a2cbceb50eee9ce3e8b5f0d5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6465696e632f73747269702d616363656e7473)](https://packagist.org/packages/codeinc/strip-accents)[![PHP Version](https://camo.githubusercontent.com/044e4f5c5ef5f4adba69b61f5e85e9666f3f8334c436e4556bf4c6016ffe1b31/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f636f6465696e632f73747269702d616363656e74732f706870)](https://packagist.org/packages/codeinc/strip-accents)[![License](https://camo.githubusercontent.com/98060c24aee40ac7d72a338939deba1a5761c4a58572ef2c7fabae9ac85176f2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f6465696e632f73747269702d616363656e7473)](LICENSE)

A PHP library to remove accents and diacritics from strings.

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

[](#installation)

```
composer require codeinc/strip-accents
```

Requires PHP 8.2 or later with the `mbstring` extension.

Usage
-----

[](#usage)

### Strip accents

[](#strip-accents-1)

```
use CodeInc\StripAccents\StripAccents;

echo StripAccents::strip("C'est une super chaîne de caractères avec beaucoup d'accents");
// "C'est une super chaine de caracteres avec beaucoup d'accents"

echo StripAccents::strip("ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïðòóôõöùúûüýÿ");
// "AAAAAACEEEEIIIIOOOOOUUUUYaaaaaaceeeeiiiieooooouuuuyy"
```

### Strip accents and non-printable characters

[](#strip-accents-and-non-printable-characters)

```
use CodeInc\StripAccents\StripAccents;

echo StripAccents::stripNonPrint("ABC ÀÈÝ 是我这");
// "ABC AEY "

echo StripAccents::stripNonPrint("ABC ÀÈÝ 是我这", replaceWith: "-");
// "ABC AEY ---------" (each multibyte character is replaced per-byte)
```

### Custom encoding

[](#custom-encoding)

Both methods accept an encoding parameter (any encoding supported by `htmlentities()`):

```
echo StripAccents::strip("A strïng with àccénts", encoding: "iso-8859-1");
```

License
-------

[](#license)

This library is published under the MIT license (see the [LICENSE](LICENSE) file).

###  Health Score

59

—

FairBetter than 98% of packages

Maintenance85

Actively maintained with recent releases

Popularity41

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity79

Established project with proven stability

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

Total

3

Last Release

79d ago

Major Versions

1.1.0 → 2.0.02026-04-15

PHP version history (2 changes)1.0.0PHP &gt;=7.1

2.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce6d7fd91f537008e6af8eef5f5529e994cf74be8d78ee7b9d9ecac476ba1444?d=identicon)[joanfabregat](/maintainers/joanfabregat)

![](https://www.gravatar.com/avatar/8f72f949d7f70e400c02c225685f1934dec6219689f25edec38b4037df166d58?d=identicon)[codeinc](/maintainers/codeinc)

---

Top Contributors

[![joanfabregat](https://avatars.githubusercontent.com/u/4227907?v=4)](https://github.com/joanfabregat "joanfabregat (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codeinc-strip-accents/health.svg)

```
[![Health](https://phpackages.com/badges/codeinc-strip-accents/health.svg)](https://phpackages.com/packages/codeinc-strip-accents)
```

###  Alternatives

[nicmart/numbers

Format numbers in various formats, like scientific notation or unit-suffix notation

54195.9k1](/packages/nicmart-numbers)[touhidurabir/laravel-stub-generator

A laravel package to generate class files from stub files.

53172.7k7](/packages/touhidurabir-laravel-stub-generator)[davidanderson684/simba-plugin-manager-updater

This class is an updates checker and UI for WordPress plugins that are hosted using the Simba Plugin Manager plugin

2753.8k](/packages/davidanderson684-simba-plugin-manager-updater)

PHPackages © 2026

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