PHPackages                             miquido/data-structure - 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. miquido/data-structure

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

miquido/data-structure
======================

Immutable Data Structures

v1.0.1(7y ago)51031MITPHPPHP ^7.2

Since Sep 25Pushed 7y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (5)Versions (4)Used By (1)

[![Build](https://camo.githubusercontent.com/338729fe74c5690b3adb21c79e3bc004862091d108218ea0130ba1f2c789e49a/68747470733a2f2f7472617669732d63692e6f72672f6d69717569646f2f646174612d7374727563747572652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/miquido/data-structure)[![Maintainability](https://camo.githubusercontent.com/283b3731945c33c40ab757f425ad8eee34c9aaae0ece15b6727ad58524de08b8/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65646264633435653235633562366538373666302f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/miquido/data-structure/maintainability)[![Test Coverage](https://camo.githubusercontent.com/d796b02b32ea035013084342766a991fe3b35500603d4f2f84f1636bacc27503/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65646264633435653235633562366538373666302f746573745f636f766572616765)](https://codeclimate.com/github/miquido/data-structure/test_coverage)[![MIT Licence](https://camo.githubusercontent.com/fabb40ab22588a0746bb0916ed92739171bde7fb31f281c627aa588bcba62cc2/68747470733a2f2f6261646765732e66726170736f66742e636f6d2f6f732f6d69742f6d69742e7376673f763d313033)](https://opensource.org/licenses/mit-license.php)

Data-structure
==============

[](#data-structure)

Set of utility classes for immutable data manipulation.

- [Installation guide](#installation)
- [Examples](#examples)
- [Contributing](#contributing)

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

[](#installation)

Use [Composer](https://getcomposer.org) to install the package:

```
composer require miquido/data-structure
```

or simply add this line to your `composer.json` file:

```
"miquido/data-structure": "dev-master"

```

Examples
--------

[](#examples)

- [Map](#map)
- [MapCollection](#mapcollection)
- [StringCollection](#stringcollection)
- [IntegerCollection](#integercollection)
- [NumberCollection](#numbercollection)
- [ObjectCollection](#objectcollection)
- [Value](#value)
- [ScalarValue](#scalarvalue)
- [StringValue](#stringvalue)
- [NumberValue](#numbervalue)
- [CollectionValue](#collectionvalue)

IMPORTANT! All methods across all classes are immutable - they do not modify internal state of the object, they return new class instance with a new state.

### Map

[](#map)

Immutable wrapper for associative array.

```
