PHPackages                             aedart/util - 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. aedart/util

Abandoned → [aedart/athenaeum](/?search=aedart%2Fathenaeum)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

aedart/util
===========

This package contains a set of various utility resources, which can be used independently.

5.1.0(7y ago)112.4k↓25%3BSD-3-ClausePHPPHP &gt;=7.1.0

Since Mar 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/aedart/util)[ Packagist](https://packagist.org/packages/aedart/util)[ Docs](https://github.com/aedart/util)[ RSS](/packages/aedart-util/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (19)Used By (3)

[![Build Status](https://camo.githubusercontent.com/de6c33202bae64d8545fac1243a93608b8e8fefb170bd119a5bd978c43c56146/68747470733a2f2f7472617669732d63692e6f72672f6165646172742f7574696c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/aedart/util)[![Latest Stable Version](https://camo.githubusercontent.com/0495b91a665c4d5f4413b944f038cb32f4903be7189cc5b62c2b18a845b0286c/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f7574696c2f762f737461626c65)](https://packagist.org/packages/aedart/util)[![Total Downloads](https://camo.githubusercontent.com/9d2649e4b1a08a3c86391dbb1db7db73f9773482bf67bfff4f4d426bdd69b702/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f7574696c2f646f776e6c6f616473)](https://packagist.org/packages/aedart/util)[![Latest Unstable Version](https://camo.githubusercontent.com/e1605ea108db3c60130befba24282449988e0c2d6296be63a17a9aa0422c547a/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f7574696c2f762f756e737461626c65)](https://packagist.org/packages/aedart/util)[![License](https://camo.githubusercontent.com/cfd54b67bb0dcec86e1b0658ab0d648f216352975383aa7c667fdec5094fcc5e/68747470733a2f2f706f7365722e707567782e6f72672f6165646172742f7574696c2f6c6963656e7365)](https://packagist.org/packages/aedart/util)

Deprecated - Util
=================

[](#deprecated---util)

Package has been replaced by [aedart/athenaeum](https://github.com/aedart/athenaeum)

This package contains a set of various utility resources, which can be used independently.

Contents
========

[](#contents)

- [How to install](#how-to-install)
- [Partial Collection](#partial-collection)
    - [Example](#example)
    - [Behind the scenes](#behind-the-scenes)
- [Contribution](#contribution)
    - [Bug Report](#bug-report)
    - [Fork, code and send pull-request](#fork--code-and-send-pull-request)
- [Acknowledgement](#acknowledgement)
- [Versioning](#versioning)
- [License](#license)

How to install
--------------

[](#how-to-install)

```
composer require aedart/util
```

This package uses [composer](https://getcomposer.org/). If you do not know what that is or how it works, I recommend that you read a little about, before attempting to use this package.

Partial Collection
------------------

[](#partial-collection)

If you need to create a concrete collection, that contains specific elements only, then you might find the `IPartialCollection` interface and the `PartialCollectionTrait` useful.

### Example

[](#example)

In this example, we create a concrete collection which can only contain integer values.

```
