PHPackages                             salarmehr/ecma - 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. salarmehr/ecma

ActiveUtility

salarmehr/ecma
==============

0.1.0(5y ago)023MITPHPPHP &gt;=7.2CI failing

Since Aug 4Pushed 5y ago1 watchersCompare

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

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

EcmaPHP
=======

[](#ecmaphp)

PHP implementation of some fundamental JS classes, which do not have a PHP counterpart. If you know JS, you don't need to learn a new API. The API of these classes are compatible with JS.

Requires PHP 7.2+ and the mbstring extension

Classes
-------

[](#classes)

- [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) class as `Str`
- [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) class as `Arr`

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

[](#installation)

Make sure the `php-mbstring` extension is installed and enabled by checking `php -m` command and run

```
composer require salarmehr/ecmaphp

```

Examples
========

[](#examples)

Please see [examples.php](examples.php) file.

Links
=====

[](#links)

- [alecgorge PHP-String-Class](https://github.com/alecgorge/PHP-String-Class) EcmaPHP is inspired by this package.

Licence
=======

[](#licence)

MIT

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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

2

Last Release

2104d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/salarmehr-ecma/health.svg)

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

PHPackages © 2026

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