PHPackages                             zoliszabo/php-mlstring - 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. zoliszabo/php-mlstring

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

zoliszabo/php-mlstring
======================

A pretty simple multiline strings library

v2.0.0(11mo ago)02MITPHPPHP &gt;=7.3

Since Jul 18Pushed 11mo agoCompare

[ Source](https://github.com/zoliszabo/php-mlstring)[ Packagist](https://packagist.org/packages/zoliszabo/php-mlstring)[ RSS](/packages/zoliszabo-php-mlstring/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

MLString (*multi-line string*)
==============================

[](#mlstring-multi-line-string)

A pretty simple multi-line strings library.

❓ **Are you tired of using:**

- long (loooooooong) strings with `\n` and `\r\n`?
- concatenation to make your strings readable?
- heredoc syntax with its crazy indentation rules?

👉 This library allows you to use multi-line strings in a more readable way.

👎 Instead of this:

```
$longString = "This is a long string\n"
    . "that spans multiple lines\n"
    . "and uses concatenation to be readable.";
```

👎 or this:

```
$longString = withGlue(' | ');
// Outputs: "This is a long string | that spans multiple lines | and uses MLString to be readable."

echp $mlString->withSpace();
// Outputs: "This is a long string that spans multiple lines and uses MLString to be readable."

echo $mlString->withNewLine();
// Outputs the original string with new lines
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance50

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

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

Every ~0 days

Total

3

Last Release

349d ago

Major Versions

v0.1 → v1.0.02025-07-18

v1.0.0 → v2.0.02025-07-18

PHP version history (2 changes)v0.1PHP &gt;=7.0

v2.0.0PHP &gt;=7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9949042?v=4)[Zoli Szabó](/maintainers/zoliszabo)[@zoliszabo](https://github.com/zoliszabo)

---

Top Contributors

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

---

Tags

phpstrings

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zoliszabo-php-mlstring/health.svg)

```
[![Health](https://phpackages.com/badges/zoliszabo-php-mlstring/health.svg)](https://phpackages.com/packages/zoliszabo-php-mlstring)
```

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4216.5M114](/packages/livewire-volt)[glorand/laravel-model-settings

Model Settings for your Laravel app

9141.2M4](/packages/glorand-laravel-model-settings)[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.5M38](/packages/prologue-alerts)[joanrodas/plubo-routes

WordPress routes made simple.

142.8k](/packages/joanrodas-plubo-routes)

PHPackages © 2026

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