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

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

linio/common
============

Common library for Linio projects

4.1.0(3y ago)448.4k↓50%1[4 PRs](https://github.com/LinioIT/common-php/pulls)2BSD-3-ClausePHPPHP ^8.1

Since Mar 16Pushed 2y ago55 watchersCompare

[ Source](https://github.com/LinioIT/common-php)[ Packagist](https://packagist.org/packages/linio/common)[ RSS](/packages/linio-common/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (5)Versions (25)Used By (2)

Linio Common
============

[](#linio-common)

[![Latest Stable Version](https://camo.githubusercontent.com/4836951233deda4654f73fa8a33c531995c3684d0faf1c310738d4999dac57b4/68747470733a2f2f706f7365722e707567782e6f72672f6c696e696f2f636f6d6d6f6e2f762f737461626c652e737667)](https://packagist.org/packages/linio/common) [![License](https://camo.githubusercontent.com/1d39fd198be0db95f96094715213d319959aae98601be638bd589f0e4a5d4edc/68747470733a2f2f706f7365722e707567782e6f72672f6c696e696f2f636f6d6d6f6e2f6c6963656e73652e737667)](https://packagist.org/packages/linio/common) [![Build Status](https://camo.githubusercontent.com/0a8f62e7c4de9666b290fc4690f5cee3928ec623be2c53ee2f3c91b25b37bc1a/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4c696e696f49542f636f6d6d6f6e2e706e67)](http://travis-ci.org/LinioIT/common) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/5124e6e45251c57b30cbb48743fa9861cb227f9e57893a2a6bc7ebe48cad127f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4c696e696f49542f636f6d6d6f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/LinioIT/common/?branch=master)

Linio Common contains small components that either extend PHP's functionality or provide a coherent base for Linio components:

- Common types
- Base exceptions
- Monolog processors and handlers

Install
-------

[](#install)

The recommended way to install Linio Common is [through composer](http://getcomposer.org).

```
$ composer require linio/common

```

Tests
-----

[](#tests)

To run the test suite, you need install the dependencies via composer, then run PHPUnit.

```
$ composer install
$ vendor/bin/phpunit

```

Collections
-----------

[](#collections)

This component has a direct dependency on doctrine/collections. You are encouraged to use them since they are also used as base for most our own custom collection types.

#### Dictionary

[](#dictionary)

This data structure allows you to create coherent key-value pairs, that can be used in an idiomatic way:

```
