PHPackages                             almhdy24/jsonella - 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. almhdy24/jsonella

ActiveLibrary

almhdy24/jsonella
=================

A lightweight, modern JSON library for PHP with clean API and excellent error handling.

00PHPCI passing

Since Dec 4Pushed 5mo agoCompare

[ Source](https://github.com/almhdy24/jsonella)[ Packagist](https://packagist.org/packages/almhdy24/jsonella)[ RSS](/packages/almhdy24-jsonella/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

jsonella
========

[](#jsonella)

> A lightweight, modern JSON library for PHP with clean API and excellent error handling.

[![PHP Version](https://camo.githubusercontent.com/291fb48c27888cb58d3daa496237532ea2d0bdd51a933f0a7a4262e9d87b7304/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344372e342d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![GitHub Release](https://camo.githubusercontent.com/ff0357193df992fdbec79f14fe3d2a8da690f985d11ab3f1bc24c3cf6871b694/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f616c6d68647932342f6a736f6e656c6c61)](https://camo.githubusercontent.com/ff0357193df992fdbec79f14fe3d2a8da690f985d11ab3f1bc24c3cf6871b694/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f616c6d68647932342f6a736f6e656c6c61)

A lightweight, elegant JSON handling library for PHP with clean API, excellent error handling, and zero dependencies.

✨ Features
----------

[](#-features)

- 🚀 **Clean API** - Simple static methods
- 🛡️ **Exception-based error handling** - No silent failures
- 📁 **File operations** - Read/write JSON files
- ✅ **Validation** - Check if strings are valid JSON
- 🎨 **Formatting** - Pretty printing &amp; minification
- 🔄 **Merging** - Deep merge capabilities
- 🪶 **Zero dependencies** - Pure PHP
- 💯 **100% compatible** with PHP 7.4+

📦 Installation
--------------

[](#-installation)

### Using Composer

[](#using-composer)

```
composer require almhdy/jsonella
```

### Manual Installation

[](#manual-installation)

Download and include the library:

```
require_once 'src/JSON.php';
```

🚀 Quick Start
-------------

[](#-quick-start)

```
