PHPackages                             mulertech/char-manipulation - 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. mulertech/char-manipulation

ActiveLibrary

mulertech/char-manipulation
===========================

This class manipulates characters

v1.0.4(1y ago)04441MITPHPPHP ^8.2CI passing

Since Oct 31Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/mulertech/char-manipulation)[ Packagist](https://packagist.org/packages/mulertech/char-manipulation)[ RSS](/packages/mulertech-char-manipulation/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (7)Used By (1)

CharManipulation
================

[](#charmanipulation)

---

[![Latest Version on Packagist](https://camo.githubusercontent.com/72aa6fc3d78eae3e54592c3821b5e7fcf76be376812386ad7b79395c74af5232/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d756c6572746563682f636861722d6d616e6970756c6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mulertech/char-manipulation)[![GitHub Tests Action Status](https://camo.githubusercontent.com/3d21d31889a143bcdc8e6ddb306573e7c38a41e4fa29f5a9d32c824483f69e3a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d756c6572746563682f636861722d6d616e6970756c6174696f6e2f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/mulertech/char-manipulation/actions/workflows/tests.yml)[![GitHub PHPStan Action Status](https://camo.githubusercontent.com/1f896a7dc3449ddb775f3f9500b3d7347816ad4db702dfc82a3602b6c2d5d063/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d756c6572746563682f636861722d6d616e6970756c6174696f6e2f7068707374616e2e796d6c3f6272616e63683d6d61696e266c6162656c3d7068707374616e267374796c653d666c61742d737175617265)](https://github.com/mulertech/char-manipulation/actions/workflows/phpstan.yml)[![Total Downloads](https://camo.githubusercontent.com/550a8b628961925bb90dc404bd8234563748739f4b05ab00d68340752b3be481/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d756c6572746563682f636861722d6d616e6970756c6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mulertech/char-manipulation)[![Test Coverage](https://raw.githubusercontent.com/mulertech/char-manipulation/badge/badge-coverage.svg)](https://packagist.org/packages/mulertech/char-manipulation)

---

This class manipulates characters

---

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

[](#installation)

###### *Two methods to install Application package with composer :*

[](#two-methods-to-install-application-package-with-composer-)

1.

Add to your "**composer.json**" file into require section :

```
"mulertech/char-manipulation": "^1.0"

```

and run the command :

```
php composer.phar update

```

2.

Run the command :

```
php composer.phar require mulertech/char-manipulation "^1.0"

```

---

Usage
-----

[](#usage)

###### *specialCharsTrim, trim and convert special characters to HTML entities :*

[](#specialcharstrim-trim-and-convert-special-characters-to-html-entities-)

```
CharManipulation::specialCharsTrim(' Test trim ');

// 'Test trim'

```

```
CharManipulation::specialCharsTrim('Test without html balise');

// 'Test without html balise'

```

```
CharManipulation::specialCharsTrim([' Test "trim"', 'with', ' array  ', ' and', 'null ', null]);

// ['Test &quot;trim&quot;', 'with', 'array', 'and', 'null', null]

```

###### *specialCharsDecode (decode chars into string or array by reference, no return) :*

[](#specialcharsdecode-decode-chars-into-string-or-array-by-reference-no-return-)

```
$test = '&#039;test single quote';
CharManipulation::specialCharsDecode($test);

// echo $test;
// "'test single quote";

```

```
$test = [
            'test1' => '&#039;test single quote',
            'test2' => 'test quote&quot;',
            'test3' => 'with null',
            'test4' => null,
            'test5' => [
                'test5a' => "&#039;test single quote",
                'test5b' => 'test quote&quot;',
                'test5c' => 'with null',
                'test5d' => null
            ]
        ];
CharManipulation::specialCharsDecode($test);

// echo $test;
// [
        'test1' => "'test single quote",
        'test2' => 'test quote"',
        'test3' => 'with null',
        'test4' => null,
        'test5' => [
            'test5a' => "'test single quote",
            'test5b' => 'test quote"',
            'test5c' => 'with null',
            'test5d' => null
        ]
   ];

```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance67

Regular maintenance activity

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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 ~198 days

Total

5

Last Release

503d ago

PHP version history (4 changes)v1.0.0PHP ^7.3

v1.0.2PHP &gt;=7.3

v1.0.3PHP &gt;=8.2

v1.0.4PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/357d309912bbc5318d9877d1369987d2390c8e034b637e9f20671c28b09b5119?d=identicon)[mulertech](/maintainers/mulertech)

---

Top Contributors

[![mulertech](https://avatars.githubusercontent.com/u/57788787?v=4)](https://github.com/mulertech "mulertech (24 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

open-source

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mulertech-char-manipulation/health.svg)

```
[![Health](https://phpackages.com/badges/mulertech-char-manipulation/health.svg)](https://phpackages.com/packages/mulertech-char-manipulation)
```

PHPackages © 2026

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