PHPackages                             neubert/pile - 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. neubert/pile

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

neubert/pile
============

A small helper for fetching multidimensional arrays and objects.

2.1.0(7y ago)035MITPHPPHP ^7.1

Since Feb 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/danielneubert/pile)[ Packagist](https://packagist.org/packages/neubert/pile)[ Docs](https://github.com/danielneubert/pile)[ RSS](/packages/neubert-pile/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Pile
====

[](#pile)

[![Version](https://camo.githubusercontent.com/7d78c93f3b1ef12b4442191c85f0a4babb0ae343e8f8782ecb13da6bd0710299/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6575626572742f70696c652e7376673f6c6162656c3d76657273696f6e)](https://packagist.org/packages/neubert/pile)[![Build Status](https://camo.githubusercontent.com/f876f49d4b9e85477d03491445112a448362c2988f6cf625a53c9e69665dd20f/68747470733a2f2f7472617669732d63692e636f6d2f64616e69656c6e6575626572742f70696c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/danielneubert/pile)

A small helper for fetching multidimensional arrays and objects.
----------------------------------------------------------------

[](#a-small-helper-for-fetching-multidimensional-arrays-and-objects)

Pile for PHP can return a value of a multidimensional array or object (or mixed). When the searched value can not be found *(due to not existing keys for example)* Pile will return `null`.

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

[](#installation)

### Composer

[](#composer)

The preffered way getting Pile is requireing it via composer:

```
composer require neubert/pile
```

### Download

[](#download)

If you'd like to download Pile to your project you can click here:

[**Download Pile v2.1.0** (latest)](https://raw.githubusercontent.com/danielneubert/pile/master/src/Neubert/Pile/Pile.php)

Example
-------

[](#example)

```
