PHPackages                             nonamephp/php7-common - 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. nonamephp/php7-common

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

nonamephp/php7-common
=====================

A collection of common PHP 7 libraries

1.0.0(8y ago)5315MITPHPPHP &gt;=7.1

Since Sep 23Pushed 8y ago3 watchersCompare

[ Source](https://github.com/nonamephp/php7-common)[ Packagist](https://packagist.org/packages/nonamephp/php7-common)[ Docs](https://github.com/nonamephp/php7-common)[ RSS](/packages/nonamephp-php7-common/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (2)Versions (24)Used By (0)

[![Build Status](https://camo.githubusercontent.com/b4bbf2356397242333ca04dde6306c938aa017bee1d03b0e298d2a16b7869784/68747470733a2f2f7472617669732d63692e6f72672f6e6f6e616d657068702f706870372d636f6d6d6f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nonamephp/php7-common)

php7-common
===========

[](#php7-common)

A collection of common libraries for PHP 7.1+.

Installation
------------

[](#installation)

Use Composer to install `php7-common` into your project.

`composer require nonamephp/php7-common`

Included Libraries
------------------

[](#included-libraries)

- `Noname\Arr`
- `Noname\Collection`
- `Noname\Str`
- `Noname\Validator`

### `\Noname\Arr`

[](#nonamearr)

A helper library for working with arrays.

#### Arr Methods

[](#arr-methods)

##### `static flatten(array $array, string $separator = '.') : array`

[](#static-flattenarray-array-string-separator----array)

Flatten an associative array using a custom separator. This method will use a dot (.) for `$separator` by defult.

##### `static dot(array $array) : array`

[](#static-dotarray-array--array)

Alias for `Arr::flatten()` that always uses a dot (.) separator.

##### `static each(array $array, callable $callable) : array`

[](#static-eacharray-array-callable-callable--array)

Recursively assign the callable's return value to each array item. Array keys are preserved.

```
