PHPackages                             phossa2/shared - 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. [Framework](/categories/framework)
4. /
5. phossa2/shared

ActiveLibrary[Framework](/categories/framework)

phossa2/shared
==============

The shared library for other phossa2 libraries

2.0.28(9y ago)4222.9k↑46%14MITPHPPHP &gt;=5.4.0

Since Jun 16Pushed 9y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (30)Used By (14)

phossa2/shared
==============

[](#phossa2shared)

[![Build Status](https://camo.githubusercontent.com/f19a4e7493fed4ce461aa0ee9a6a1e66fc5c31dca4066adc1223d970d4476b9c/68747470733a2f2f7472617669732d63692e6f72672f70686f737361322f7368617265642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/phossa2/shared)[![Code Quality](https://camo.githubusercontent.com/0de55cb444875a7c1bf1ace7fbb0daf8ae62e69137efe515164a23dcbf2ffcd1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686f737361322f7368617265642f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phossa2/shared/)[![Code Climate](https://camo.githubusercontent.com/ef34a4f86eed55bc43cc15c1624ad9998d8b2ec7ff492e8e8a0c55b3eb8ae954/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f70686f737361322f7368617265642f6261646765732f6770612e737667)](https://codeclimate.com/github/phossa2/shared)[![PHP 7 ready](https://camo.githubusercontent.com/7c79ba9834bed91e06249e65a030f9acb5ff279d6b4c4447a9b596bbb85f230f/687474703a2f2f7068703772656164792e74696d6573706c696e7465722e63682f70686f737361322f7368617265642f6d61737465722f62616467652e737667)](https://travis-ci.org/phossa2/shared)[![HHVM](https://camo.githubusercontent.com/0d3017efe97901c300be8b292b0420aa7f5f5e11743502cb1b3c0bd09dff325c/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f70686f737361322f7368617265642e7376673f7374796c653d666c6174)](http://hhvm.h4cc.de/package/phossa2/shared)[![Latest Stable Version](https://camo.githubusercontent.com/23280fcbfb0b0fa772176b1b695f9fa4ec369d72fcc3cd7c0c9abc45d6670395/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f70686f737361322f7368617265642e7376673f7374796c653d666c6174)](https://packagist.org/packages/phossa2/shared)[![License](https://camo.githubusercontent.com/4fc6538ded72843e26a272d300ce4c95da083ce92576e10e4fdd505d579a8125/68747470733a2f2f696d672e736869656c64732e696f2f3a6c6963656e73652d6d69742d626c75652e737667)](http://mit-license.org/)

**phossa2/shared** is the shared library for other phossa2 libraries.

It requires PHP 5.4, supports PHP 7.0+ and HHVM. It is compliant with [PSR-1](http://www.php-fig.org/psr/psr-1/ "PSR-1: Basic Coding Standard"), [PSR-2](http://www.php-fig.org/psr/psr-2/ "PSR-2: Coding Style Guide"), [PSR-4](http://www.php-fig.org/psr/psr-4/ "PSR-4: Autoloader").

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

[](#installation)

Install via the `composer` utility.

```
composer require "phossa2/shared=2.*"

```

or add the following lines to your `composer.json`

```
{
    "require": {
       "phossa2/shared": "2.*"
    }
}
```

Features
--------

[](#features)

- **Exception**

    All phossa2 exceptions implement `Phossa2\Shared\Exception\ExceptionInterface`.

    To implment phossa2 exception interface,

    ```
