|
1 | 1 | <div align="center"> |
2 | 2 | <img src="assets/title.svg"><br> |
3 | 3 | <h1><img src="https://views.whatilearened.today/views/github/PresentKim/arrayutils.svg?style=for-the-badge" height="24" align="right"></h1><br> |
| 4 | + |
| 5 | + <a href="https://packagist.org/packages/presentkim/arrayutils"> |
| 6 | + <img src="https://poser.pugx.org/presentkim/arrayutils/v?style=for-the-badge" height="24"> |
| 7 | + </a> |
| 8 | + <a href="https://packagist.org/packages/presentkim/arrayutils"> |
| 9 | + <img src="https://poser.pugx.org/presentkim/arrayutils/downloads?style=for-the-badge" height="24"> |
| 10 | + </a> |
| 11 | + <br> |
4 | 12 | <img src="https://img.shields.io/github/stars/PresentKim/arrayutils?style=for-the-badge" height="24"> |
5 | 13 | <img src="https://img.shields.io/github/license/PresentKim/arrayutils.svg?style=for-the-badge" height="24"> |
6 | 14 | <a href="https://poggit.pmmp.io/ci/PresentKim/arrayutils/~"> |
|
12 | 20 |
|
13 | 21 | ## :clipboard: Table of Contents |
14 | 22 | - [:book: Introduction](#book-introduction) |
15 | | -- [:zap: Features](#zap-features) |
16 | | -- [:file_folder: Target software](#file_folder-target-software) |
17 | | -- [:wrench: Installation](#wrench-installation) |
18 | 23 | - [:package: Downloads](#package-downloads) |
19 | 24 | - [:memo: License](#memo-license) |
20 | 25 |
|
21 | 26 | <br> |
22 | 27 |
|
23 | 28 | ## :book: Introduction |
24 | | -PHP's array functions are painful for developers. (like `array_map`, `array_filter`) |
25 | | -- Array first or callback function first... |
26 | | -- Return value or reference a variable... |
| 29 | +The ~~evil~~ PHP array functions give developers the pain of: |
27 | 30 |
|
28 | | -In addition, since it is a `function`, the code breaks every time. |
29 | | -I created this library to solve these problems and make code flow like `js-array`. |
30 | | - |
31 | | -<br> |
32 | | - |
33 | | -## :zap: Features |
34 | | -You can use `ArrayUtils` to use the features of this library. |
35 | | -- For a detailed description, [Click here (Goto api docs)](https://arrayutils.docs.present.kim/) |
36 | | - |
37 | | -<br> |
38 | | - |
39 | | -## :file_folder: Target software: |
40 | | -**This is works with [Pocketmine-MP](https://github.com/pmmp/PocketMine-MP)** |
41 | | - |
42 | | -<br> |
43 | | - |
44 | | -## :wrench: Installation |
45 | | -See [poggit/support/virion](https://github.com/poggit/support/blob/master/virion.md) |
| 31 | +* Some functions **requires array first**, but some functions **require array last**... |
| 32 | +* Some functions **returns result**, but some functions **modify referenced variables**... |
| 33 | +* Code was **line-break** because since it is a function... |
| 34 | +* Each function has **different parameters to the callback function**... |
| 35 | +* No modern functions using arrays. Such as `every`, `some` |
| 36 | + |
| 37 | +I created this library to solve these problems and make code flow like `js-array` |
| 38 | + |
| 39 | +For a detailed description, [Click here (GitBook)](https://arrayutils.docs.present.kim/) |
46 | 40 |
|
47 | 41 | <br> |
48 | 42 |
|
49 | 43 | ## :package: Downloads: |
50 | | -Download from [Poggit](https://poggit.pmmp.io/ci/PresentKim/arrayutils/~) |
| 44 | +#### 1. Modern PHP developer |
| 45 | +You can use this library with composer. |
| 46 | +- Go to [**Packagist**](https://packagist.org/packages/presentkim/arrayutils) |
| 47 | + |
| 48 | +#### 2. PMMP plguin developer |
| 49 | +You can use this library with poggit. |
| 50 | +- Go to [**Poggit**](https://poggit.pmmp.io/ci/PresentKim/arrayutils/~) |
51 | 51 |
|
52 | 52 | <br> |
53 | 53 |
|
|
0 commit comments