PHPackages                             oubakiou/phpp - 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. oubakiou/phpp

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

oubakiou/phpp
=============

00PHP

Since Dec 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/oubakiou/phpp)[ Packagist](https://packagist.org/packages/oubakiou/phpp)[ RSS](/packages/oubakiou-phpp/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

phpp
====

[](#phpp)

phpp is basic class library in PHP

[![Build Status](https://camo.githubusercontent.com/e21ed03ff104a899d60c9c3262d83b04ceb587ec51ef9bd1907803f3b5d13a95/68747470733a2f2f7472617669732d63692e6f72672f6f7562616b696f752f706870702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/oubakiou/phpp)[![License](https://camo.githubusercontent.com/183be39853771d121f6459fb98c9d0dc18e742d5b1f77f34b7e8d306c0629849/68747470733a2f2f706f7365722e707567782e6f72672f6f7562616b696f752f706870702f6c6963656e7365)](https://packagist.org/packages/oubakiou/phpp)[![Latest Stable Version](https://camo.githubusercontent.com/be7d2b7968ecc1339ea3373852b5b53ecbd4df8a6a6663d8e88cd7edca9077c0/68747470733a2f2f706f7365722e707567782e6f72672f6f7562616b696f752f706870702f762f737461626c65)](https://packagist.org/packages/oubakiou/phpp)

Arr
---

[](#arr)

### basic usage

[](#basic-usage)

- static ofBools(array $array): self
- static ofInts(array $array): self
- static ofArrays(array $array): self
- static ofStrings(array $array): self
- static ofNumerics(array $array): self
- static ofScalars(array $array): self
- static ofFloats(array $array): self
- static ofCallables(array $array): self
- static ofArrs(array $array): self
- toArray(): array
- toString(): string
- equals(self $arr): bool
- getValidator(): ? callable
- getCount()
- getHead()
- getLast()
- append(self $that): self
- head()
- tail(): self
- init(): self
- last()
- foldLeft(callable $op, $z)
- foldRight(callable $op, $z)
- reduceLeft(callable $op)
- reduceRight(callable $op)
- foreach(callable $op): void
- filter(callable $p = null): self
- filterNot(callable $p): self
- drop(int $n): self
- dropWhile(callable $p): self
- take(int $n): self
- takeWhile(callable $p): self
- map(callable $f, string $builtinValidatorName = '', callable $validator = null): self
- flatMap(callable $f, string $builtinValidatorName = '', callable $validator = null): self
- flatten(): self
- collect(callable $p, callable $f): self
- splitAt(int $n): self
- slice(int $from, int $untile): self
- partition(callable $p): self
- span(callable $p): self
- groupBy(callable $f) :self
- unzip(): self
- find(callable $p)
- exists(callable $p): bool
- forall(callable $p): bool
- count(callable $p = null): int
- size(): int
- length(): int
- min(): int
- minFloat(): float
- max(): int
- maxFloat(): float
- mkString(string $string1, string $string2 = '', string $string3 = ''): string
- dropRight($n): self
- sameElements(self $that): bool
- zip(self $that): self
- zipWithIndex(): self
- apply($key)
- contains($elem): bool
- diff(self $that): self
- startsWith(self $that): bool
- endsWith(self $that): bool
- indexOf($elem): int
- isDefinedAt($key): bool
- indices(): self
- distinct(): self
- reverse(): self
- reverseMap(callable $f, string $builtinValidatorName = '', callable $validator = null)
- sorted(): self
- sortWith(callable $lt): self
- patch(int $from, self $that, int $replaced)
- updated(int $n, $elem): self
- cons($elem): self
- getOrElse($key, $default = null)
- keys(): self
- values(): self

### benchmark

[](#benchmark)

#### enabled assert

[](#enabled-assert)

```
ouba-no-MacBook-Air:phpp ouba$ vendor/bin/phpunit tests/ArrBenchTest.php
PHPUnit 5.7.3 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.1.0
Configuration: /Users/ouba/Desktop/phpp/phpunit.xml

.                                                                   1 / 1 (100%)

bench start

plain          0001 : 75 ms (usage 4MB)
array_function 0002 : 249 ms (usage 4MB)
Arr            0003 : 851 ms (usage 4MB)

bench end

Time: 2.43 seconds, Memory: 6.00MB

OK (1 test, 2 assertions)

```

#### disabled assert

[](#disabled-assert)

```
ouba-no-MacBook-Air:phpp ouba$ php -d zend.assertions=0 `which vendor/bin/phpunit` tests/ArrBenchTest.php
PHPUnit 5.7.3 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.1.0
Configuration: /Users/ouba/Desktop/phpp/phpunit.xml

.                                                                   1 / 1 (100%)

bench start

plain          0001 : 84 ms (usage 4MB)
array_function 0002 : 239 ms (usage 4MB)
Arr            0003 : 281 ms (usage 4MB)

bench end

Time: 1.22 seconds, Memory: 4.00MB

OK (1 test, 2 assertions)

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1292498?v=4)[oubakiou](/maintainers/oubakiou)[@oubakiou](https://github.com/oubakiou)

---

Top Contributors

[![oubakiou](https://avatars.githubusercontent.com/u/1292498?v=4)](https://github.com/oubakiou "oubakiou (14 commits)")

### Embed Badge

![Health badge](/badges/oubakiou-phpp/health.svg)

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

###  Alternatives

[ylsideas/feature-flags

A Laravel package for handling feature flags

6241.4M4](/packages/ylsideas-feature-flags)

PHPackages © 2026

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