PHPackages                             phootwork/lang - 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. phootwork/lang

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

phootwork/lang
==============

Missing PHP language constructs

v3.2.3(1y ago)1227.1M↓38.6%8MITPHPPHP &gt;=8.0

Since May 11Pushed 1y ago3 watchersCompare

[ Source](https://github.com/phootwork/lang)[ Packagist](https://packagist.org/packages/phootwork/lang)[ Docs](https://phootwork.github.io/lang/)[ RSS](/packages/phootwork-lang/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (2)Versions (25)Used By (8)

phootwork/lang
==============

[](#phootworklang)

[![Tests](https://github.com/phootwork/phootwork/workflows/Tests/badge.svg)](https://github.com/phootwork/phootwork/workflows/Tests/badge.svg)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/69bd7e143cbdfb19d74ce75708a9f883ef5e8c3e12e93af074e908c564d06c52/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686f6f74776f726b2f70686f6f74776f726b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phootwork/phootwork/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/826ef921280a14b18e896b455eda961bf8c53758c493844143b31e66791a06d5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686f6f74776f726b2f70686f6f74776f726b2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phootwork/phootwork/?branch=master)[![License](https://camo.githubusercontent.com/76d3dc2c6465e8fe759617cd240dac3c48f9f310e74cb1e6eca402f7214e3267/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70686f6f74776f726b2f6c616e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phootwork/lang)[![Latest Stable Version](https://camo.githubusercontent.com/c5df7dc7299429ac736eb923ed65d0988cfc9894f5dfac80ef899fadc47c053b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70686f6f74776f726b2f6c616e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phootwork/lang)[![Total Downloads](https://camo.githubusercontent.com/53f664e69ea84e44f37dcdc05de5dcda5254241b1c1f81ffb41b4ebc6e3ca82d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70686f6f74776f726b2f6c616e672e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d303037656336)](https://packagist.org/packages/phootwork/lang)

Missing PHP language constructs

Goals
-----

[](#goals)

- Provide common but missing php classes
- Objects for native php constructs
- Consistent API
- Inspired by `java.lang`, `java.util`, `String.prototype`, `Array.prototype` and [`Stringy`](https://github.com/danielstjules/Stringy)

Installation
------------

[](#installation)

Installation via composer:

```
composer require phootwork/lang

```

Documentation
-------------

[](#documentation)

Running tests
-------------

[](#running-tests)

This package is a part of the Phootwork library. In order to run the test suite, you have to download the full library.

```
git clone https://github.com/phootwork/phootwork

```

Then install the dependencies via composer:

```
composer install

```

Now, run the *lang* test suite:

```
vendor/bin/phpunit --testsuite lang

```

If you want to run the whole library tests, simply run:

```
vendor/bin/phpunit

```

Contact
-------

[](#contact)

Report issues at the github [Issue Tracker](https://github.com/phootwork/phootwork/issues).

Changelog
---------

[](#changelog)

Refer to [Releases](https://github.com/phootwork/phootwork/releases)

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity54

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 59% 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 ~156 days

Recently: every ~273 days

Total

23

Last Release

614d ago

Major Versions

v0.9 → v2.0-alpha2019-10-04

v2.1.3 → v3.02021-03-08

PHP version history (4 changes)v0.1PHP &gt;=5.4

v0.8PHP &gt;=5.6

v2.0-alphaPHP &gt;=7.2

v3.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b1ca3beb32834f0f6a4b66d7a695ecc01397aa92e9a97bd0ba5dd8aa14e0c6e?d=identicon)[gossi](/maintainers/gossi)

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

---

Top Contributors

[![gossi](https://avatars.githubusercontent.com/u/283700?v=4)](https://github.com/gossi "gossi (46 commits)")[![cristianoc72](https://avatars.githubusercontent.com/u/865437?v=4)](https://github.com/cristianoc72 "cristianoc72 (29 commits)")[![andypost](https://avatars.githubusercontent.com/u/73713?v=4)](https://github.com/andypost "andypost (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

arraystringcomparatorcomparison

### Embed Badge

![Health badge](/badges/phootwork-lang/health.svg)

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

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k245.4M23.7k](/packages/friendsofphp-php-cs-fixer)[symfony/string

Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way

1.8k759.1M1.2k](/packages/symfony-string)[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.2k417.9M1.6k](/packages/nette-utils)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[voku/arrayy

Array manipulation library for PHP, called Arrayy!

4915.6M18](/packages/voku-arrayy)[atomescrochus/laravel-string-similarities

Compare two string and get a similarity percentage

70173.7k2](/packages/atomescrochus-laravel-string-similarities)

PHPackages © 2026

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