PHPackages                             alexeyyashin/estring - 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. alexeyyashin/estring

Abandoned → [alexeyyashin/case-converter](/?search=alexeyyashin%2Fcase-converter)Library[Utility &amp; Helpers](/categories/utility)

alexeyyashin/estring
====================

EString

v1.3.0(4y ago)1202[1 PRs](https://github.com/alexeyyashin/estring/pulls)1MITPHP

Since Mar 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/alexeyyashin/estring)[ Packagist](https://packagist.org/packages/alexeyyashin/estring)[ RSS](/packages/alexeyyashin-estring/feed)WikiDiscussions master Synced today

READMEChangelog (10)DependenciesVersions (14)Used By (1)

estring
=======

[](#estring)

estring was made for simpler strings operations in PHP just like JS does

Installation
============

[](#installation)

Right now the only option is using Composer:

```
composer require alexeyyashin/estring
```

Example
=======

[](#example)

```
$first = '  Some string to operate';

// PHP functions
$second = $first;
if (strpos(strtolower(trim($second)), 'some') === 0) {
  echo str_replace('Some', 'Awesome', trim($second)) . "\n";
  echo "found\n";
} elseif (substr(strtolower(trim($second)), - strlen('operate')) === 'operate') {
  echo str_replace('operate', 'control', trim($second)) . "\n";
  echo "found but ending\n";
}

// Same with estring
$third = estring($first);
if ($third->trim()->startsWith('some', true)) {
  echo $third->trim()->replace(['Some' => 'Awesome']) . "\n";
  echo "found\n";
} elseif ($third->trim()->endsWith('operate')) {
  echo $third->trim()->replace(['operate' => 'control']) . "\n";
  echo "found but ending\n";
}
```

See more info in documentation
==============================

[](#see-more-info-in-documentation)

(not finished yet) [Usage.md](https://github.com/alexeyyashin/estring/blob/documentation/docs/usage.md)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~77 days

Recently: every ~97 days

Total

10

Last Release

1548d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10206f77ccff237e4f6173d09004c86e5c8276845c023dde6b5c34797f79d203?d=identicon)[alexeyyashin](/maintainers/alexeyyashin)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/alexeyyashin-estring/health.svg)

```
[![Health](https://phpackages.com/badges/alexeyyashin-estring/health.svg)](https://phpackages.com/packages/alexeyyashin-estring)
```

###  Alternatives

[phpro/soap-client

A general purpose SoapClient library

8885.6M46](/packages/phpro-soap-client)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[typo3/cms-reports

TYPO3 CMS Reports - Show status reports and installed services in the (System&gt;Reports) backend module.

137.1M58](/packages/typo3-cms-reports)[lcharette/uf_formgenerator

Form generator for UserFrosting V5

178.7k3](/packages/lcharette-uf-formgenerator)

PHPackages © 2026

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