PHPackages                             galvao-eti/collection - 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. galvao-eti/collection

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

galvao-eti/collection
=====================

A versatile, fully-featured Linear Collection implementation.

2.1.2(5mo ago)138[2 issues](https://github.com/galvao-eti/collection/issues)Apache-2.0PHPPHP &gt;=8.0

Since Jan 16Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/galvao-eti/collection)[ Packagist](https://packagist.org/packages/galvao-eti/collection)[ RSS](/packages/galvao-eti-collection/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (1)Versions (15)Used By (0)

GalvaoEti\\Collection
=====================

[](#galvaoeticollection)

A versatile, fully-featured Linear [Collection](https://en.wikipedia.org/wiki/Collection_(abstract_data_type)) implementation.

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

[](#installation)

```
composer require galvao-eti/collection
```

Features
--------

[](#features)

Features are considered present (ticked) when fully unit tested.

Strongly Typed Collections:

- Mixed (Default)
- Integer
- Double
- Boolean
- Array
- Object
- Objects of a specific class
- Overwriting prevention when adding data with existing key or updating
- Locking the collection (no more writing to it)
- Deletion
- Automatically rearranging the collection's keys upon deletion
- Update items

Usage
-----

[](#usage)

Example usage:

```
