PHPackages                             kynx/code-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. kynx/code-utils

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

kynx/code-utils
===============

Utilities for generating PHP code

2.4.1(5mo ago)0901[1 issues](https://github.com/kynx/code-utils/issues)MITPHPPHP ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Oct 8Pushed 1mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (15)Used By (0)

kynx/code-utils
===============

[](#kynxcode-utils)

[![Build Status](https://github.com/kynx/code-utils/workflows/Continuous%20Integration/badge.svg)](https://github.com/kynx/code-utils/actions?query=workflow%3A%22Continuous+Integration%22)

Utilities for generating PHP code.

Normalizers
-----------

[](#normalizers)

The normalizers generate readable PHP labels (class names, namespaces, property names, etc) from valid UTF-8 strings, [transliterating](https://unicode-org.github.io/icu/userguide/transforms/general/#script-transliteration) them to ASCII and spelling out any invalid characters.

### Usage

[](#usage)

The following code (forgive the Japanese - a certain translation tool tells me it means "Pet Store"):

```
