PHPackages                             ngomafortuna/string-formatter - 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. ngomafortuna/string-formatter

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

ngomafortuna/string-formatter
=============================

Simple string formatter (Formadador de texto simples)

v0.0.0(1y ago)01BSD-3PHPPHP &gt;=8.0

Since Jun 4Pushed 1y agoCompare

[ Source](https://github.com/ngomaf/string-formatter)[ Packagist](https://packagist.org/packages/ngomafortuna/string-formatter)[ RSS](/packages/ngomafortuna-string-formatter/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

String formatter
================

[](#string-formatter)

Simple string formatter (Formadador de texto simples)

This component have two features:

- cat: to cat text or phrase
- slug: to generator slug based on the a phrase

Require
-------

[](#require)

Necessary PHP 8.0 or more (Necessário PHP 8.0 ou superior)

Install
-------

[](#install)

composer require ngomafortuna/string-formatter

Syntax and mode of use
----------------------

[](#syntax-and-mode-of-use)

```
use Ngomafortuna\StringFormatter\StringFormatter;

$formatter = new StringFormatter;
$formatter->slug('Text to test');
$formatter->cat('Phrase to test features');
```

Example
-------

[](#example)

```
use Ngomafortuna\StringFormatter\StringFormatter;

$title = "O caminho da     canção asul---a-----f";
$phrase = "Text formatter to cat end create slug with base in a phrase.";

$formatter = new StringFormatter;

var_dump($formatter->slug($title));
var_dump($formatter->cat($phrase, 20));
```

Result

```
"o-caminho-da-cancao-asul-a-f"
"Text formatter to ..."
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance47

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

394d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ngomafortuna-string-formatter/health.svg)

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

###  Alternatives

[kreativekorp/barcode

Generate barcodes from a single PHP file.

28518.7k](/packages/kreativekorp-barcode)[villca/numeros-en-letras

Convierte cualquier número en letras con el valor correspondiente.

1338.0k](/packages/villca-numeros-en-letras)[aloko/nova-persian-datepicker

Persian Datepicker for Laravel Nova.

203.7k](/packages/aloko-nova-persian-datepicker)

PHPackages © 2026

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