PHPackages                             girgias/warray - 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. girgias/warray

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

girgias/warray
==============

Static wrapper around PHP array functions

0.1.0(7y ago)01MITPHPPHP ^7.3

Since Jan 31Pushed 7y ago1 watchersCompare

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

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

[![Build Status](https://camo.githubusercontent.com/0eac2573c696047a01f9784ae044bad1ea34237b0b3afb5a4a3e3aa10ad64ec3/68747470733a2f2f7472617669732d63692e6f72672f476972676961732f7761727261792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Girgias/warray)[![Maintainability](https://camo.githubusercontent.com/779df0274e330633c731ea2d96c388e77af5164368ddaf0d16255c1a0ace00c1/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65323036343731626436353834626365313331642f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/Girgias/warray/maintainability)[![Test Coverage](https://camo.githubusercontent.com/86a26df2354f37e677ad44b8858a533488154d1fea26bf3780b388f60d55aa5b/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65323036343731626436353834626365313331642f746573745f636f766572616765)](https://codeclimate.com/github/Girgias/warray/test_coverage)

Warray a static Wrapper around PHP array functions
==================================================

[](#warray-a-static-wrapper-around-php-array-functions)

A static Wrapper around PHP array functions with consistent signatures and logical return values.

Installing
----------

[](#installing)

```
composer require girgias/warray
```

Features
--------

[](#features)

Warray provides a clean and consistent interfaces with PHP's array functions.

Most notably making signatures consistent with more sensible default and return values.

For example when a function expects a callback this will ALWAYS be the first argument in the function signature.

If a function allows a strict comparison argument its default is `true`compared to PHP's default of `false`

If a `sort_flag` argument is present its default is `\SORT_REGULAR`

Sort functions return the sorted array instead of an integer or boolean.

ToDos
-----

[](#todos)

- Complete unit tests

Contributing
------------

[](#contributing)

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

Links
-----

[](#links)

- Repository:
- Issue tracker:
    - In case of sensitive bugs like security vulnerabilities, please contact  directly instead of using the issue tracker.

Licensing
---------

[](#licensing)

The code in this project is licensed under MIT license.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

2657d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7906688?v=4)[Gina Peter Banyard](/maintainers/Girgias)[@Girgias](https://github.com/Girgias)

---

Tags

arrayfunctionsphpwrapperwrapper-libraryphparraywrapperfunctionsArray Static Wrapper

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/girgias-warray/health.svg)

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

###  Alternatives

[zakirullin/mess

Convenient array-related routine &amp; better type casting

21228.9k2](/packages/zakirullin-mess)[wujunze/money-wrapper

MoneyPHP Wrapper

113.8k](/packages/wujunze-money-wrapper)

PHPackages © 2026

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