Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/presentkim/arrayutils

Library that provides a method to fancy manipulate an array
https://github.com/presentkim/arrayutils

library php php-library php8

Last synced: 3 months ago
JSON representation

Library that provides a method to fancy manipulate an array

Awesome Lists containing this project

README

        

[![Packagist Status][packagist-status-badge]][packagist-url]
[![Packagist Downloads][packagist-downloads-badge]][packagist-url]
[![Stars][stars-badge]][stars-url]
[![License][license-badge]][license-url]




Logo

arrayutils



An library that provides a method to fancy manipulate an array!

[View in Packagist][packagist-url] · [Report a bug][issues-url] · [Request a feature][issues-url]




## :book: Introduction
The ~~evil~~ PHP array functions give developers the pain of:

* Some functions **requires array first**, but some functions **require array last**...
* Some functions **returns result**, but some functions **modify referenced variables**...
* Code was **line-break** because since it is a function...
* Each function has **different parameters to the callback function**...
* No modern functions using arrays. Such as `every`, `some`

I created this library to solve these problems and make code flow like `js-array`

For a detailed description, [Click here (GitBook)](https://arrayutils.docs.present.kim/)

-----

## :package: Installation
You can use this library with composer.
- Go to [**Packagist**](https://packagist.org/packages/presentkim/arrayutils)

> **Note** for [Pocketmine][pmmp-url] plugin developer
> You can use this library with poggit
> - Go to [**Poggit**](https://poggit.pmmp.io/ci/presentkim-pm/arrayutils/~)

-----

## :memo: License
> You can check out the full license [here](LICENSE)

This project is licensed under the terms of the **MIT** license

[packagist-status-badge]: https://poser.pugx.org/presentkim/arrayutils/v?style=for-the-badge
[packagist-downloads-badge]: https://poser.pugx.org/presentkim/arrayutils/downloads?style=for-the-badge
[stars-badge]: https://img.shields.io/github/stars/presentkim/arrayutils.svg?style=for-the-badge
[license-badge]: https://img.shields.io/github/license/presentkim/arrayutils.svg?style=for-the-badge

[packagist-url]: https://packagist.org/packages/presentkim/arrayutils
[stars-url]: https://github.com/presentkim/arrayutils/stargazers
[issues-url]: https://github.com/presentkim/arrayutils/issues
[license-url]: https://github.com/presentkim/arrayutils/blob/main/LICENSE

[pmmp-url]: https://github.com/pmmp/Pocketmine-MP