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

ActiveLibrary

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

A pretty simple multiline strings library

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

Since Jul 18Pushed 10mo 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 1mo ago

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

25

—

LowBetter than 37% of packages

Maintenance54

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

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

304d 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://www.gravatar.com/avatar/191ace8a9eeaa316ba5321d33ad6c61b4881e0becc8d7e7fe9e881683520d13a?d=identicon)[zoliszabo](/maintainers/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)
```

PHPackages © 2026

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