girgias/warray

Static wrapper around PHP array functions

0.1.0 2019-01-31 12:56 UTC

This package is auto-updated.

Last update: 2024-05-17 10:04:30 UTC


README

Build Status Maintainability Test Coverage

Warray a static Wrapper around PHP array functions

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

Installing

composer require girgias/warray

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

  • Complete unit tests

Contributing

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

Links

Licensing

The code in this project is licensed under MIT license.