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

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

linio/util
==========

Generic component that provides many helper classes, such as JSON parsing, conversion tools, data structures, etc.

4.0.0(4y ago)975.2k—0%5[4 PRs](https://github.com/LinioIT/util/pulls)4BSD-3-ClausePHPPHP ^7.4 || ^8.0

Since Mar 16Pushed 3y ago51 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (15)Used By (4)

Linio Util
==========

[](#linio-util)

[![Latest Stable Version](https://camo.githubusercontent.com/f43340bf963f4723d85080627f96918ad766aeef13377ad6ee77ce8a32ac2dd1/68747470733a2f2f706f7365722e707567782e6f72672f6c696e696f2f7574696c2f762f737461626c652e737667)](https://packagist.org/packages/linio/util) [![License](https://camo.githubusercontent.com/2e44645d63bf23177be518e0545ad690b466eea590b7ef16f92ac899cadb7f36/68747470733a2f2f706f7365722e707567782e6f72672f6c696e696f2f7574696c2f6c6963656e73652e737667)](https://packagist.org/packages/linio/util) [![Build Status](https://camo.githubusercontent.com/2e8371943799db36b73c5ae8577c2922bfd5720ba71b9d525d8112f452722886/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4c696e696f49542f7574696c2e706e67)](http://travis-ci.org/LinioIT/util) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/1407bde2cf137b3bb018433b747a650fcb4a6fd33de797c9dc3e67e6b937960c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4c696e696f49542f7574696c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/LinioIT/util/?branch=master)

Linio Util is a generic component that provides many helper classes, such as JSON parsing, conversion tools, data structures, etc.

Install
-------

[](#install)

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

```
$ composer require linio/util
```

Tests
-----

[](#tests)

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

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

JSON
----

[](#json)

The library includes a JSON wrapper around `json_encode` and `json_decode`, allowing you to handle parsing errors with exceptions.

```
