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

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

icanboogie/common
=================

Common helpers and classes for ICanBoogie

v2.1.0(1y ago)0270.6k↓25.5%210BSD-3-ClausePHPPHP &gt;=7.1CI failing

Since Mar 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ICanBoogie/Common)[ Packagist](https://packagist.org/packages/icanboogie/common)[ Docs](https://icanboogie.org/)[ RSS](/packages/icanboogie-common/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (11)Used By (10)

Common
======

[](#common)

[![Release](https://camo.githubusercontent.com/1a2eb5fe635bf882efe49a42d4c92aa0874d83a999cfaec3523d0837eeafa094/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6963616e626f6f6769652f636f6d6d6f6e2e737667)](https://packagist.org/packages/icanboogie/common)[![Code Coverage](https://camo.githubusercontent.com/193f0180bee9d2e834aa6c2ee51944a29a906105da5cf22cb4964599c8cfa122/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f4943616e426f6f6769652f436f6d6d6f6e2f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/r/ICanBoogie/Common?branch=main)[![Packagist](https://camo.githubusercontent.com/80a00c7c9b21fb1e48671daff7e9c72f19413b769f2fac3a4c51fd5082716b26/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6963616e626f6f6769652f636f6d6d6f6e2e737667)](https://packagist.org/packages/icanboogie/common)

This package provides basic classes and helpers shared by many [ICanBoogie](https://icanboogie.org/)packages. It provides offset exceptions, property exceptions, some interfaces, and helpers to transform strings and arrays.

#### Installation

[](#installation)

```
composer require icanboogie/common
```

Exceptions
----------

[](#exceptions)

### Offset exceptions

[](#offset-exceptions)

The package defines the following exceptions related to array offset:

- [OffsetError](lib/OffsetError.php): Interface for offset errors.
- [OffsetNotDefined](lib/OffsetNotDefined.php): Exception thrown when an array offset is not defined.
- [OffsetNotReadable](lib/OffsetNotReadable.php): Exception thrown when an array offset is not readable.
- [OffsetNotWritable](lib/OffsetNotWritable.php): Exception thrown when an array offset is not writable.

### Property exceptions

[](#property-exceptions)

The following exceptions related to object properties defined by the package:

- [PropertyError](lib/PropertyError.php): Interface for property errors.
- [PropertyNotDefined](lib/PropertyNotDefined.php): Exception thrown when a property is not defined.
- [PropertyNotReadable](lib/PropertyNotReadable.php): Exception thrown when a property is not readable.
- [PropertyNotWritable](lib/PropertyNotWritable.php): Exception thrown when a property is not writable.

```
