PHPackages                             jess/jsonkit-php - 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. jess/jsonkit-php

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

jess/jsonkit-php
================

A lightweight PHP library for reading, writing, and managing JSON files.

v1.0.2(6mo ago)049MITPHPPHP ^7.4 || ^8.0

Since Nov 11Pushed 6mo agoCompare

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

READMEChangelog (1)DependenciesVersions (4)Used By (0)

JsonFileManager PHP Library
===========================

[](#jsonfilemanager-php-library)

**JsonFileManager** is a lightweight PHP class for simple, robust manipulation of JSON files—read, write, update, search, and remove using dot notation.

---

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

[](#installation)

Install via [Composer](https://getcomposer.org/):

```
composer require jess/jsonkit-php
```

Usage
-----

[](#usage)

### Quick Start

[](#quick-start)

```
use Jess\JsonkitPhp\JsonFileManager;

// Initialize from a file path
$handler = new JsonFileManager('data.json', true);

// Get all data
$data = $handler->all();

// Get a value (dot notation supported)
$name = $handler->get('user.name');

// Set a value
$handler->set('user.age', 30);

// Append a value to an array
$handler->appendArray('tags', 'php');

// Remove a value from an array
$handler->removeArrayValue('tags', 'php');

// Remove where condition
$handler->removeWhere('users', function($user) {
    return $user['active'] === false;
});

// Save changes
$handler->save();

// You can load array data and save it to a json file.
$arr = [
     'numbers' => ['1', '2', '3']
];
$data = $handler->load($arr)->save(__DIR__ . 'test.json');
```

### Main Methods

[](#main-methods)

MethodDescription`all()`Get all JSON data as an array.`get($key, $default = null)`Get value by dot notation key.`set($key, $value)`Set value at the given key.`remove($key)`Remove an entry by dot notation key.`appendArray($key, $value, $unique = false)`Append value to an array at key (optionally unique).`removeArrayValue($key, $value)`Remove value from array at key.`removeWhere($key, $callback)`Remove items from array at key matching callback.`save($jsonPath = "", $pretty = true)`Save changes (pretty print by default).---

### Features

[](#features)

- Dot notation for deeply nested keys.
- Autosave option for automatic persistence.
- Array manipulation helpers.
- Fast in-memory operations with optional file persistence.
- Flexible initialization (from file or array).

---

### License

[](#license)

MIT

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance68

Regular maintenance activity

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

188d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1c41c8faad704a3366a3ec95e405178f7a7d2ca27b4f576498a6a71ca7e83d9?d=identicon)[jletrondo](/maintainers/jletrondo)

---

Top Contributors

[![jletrondo](https://avatars.githubusercontent.com/u/61916708?v=4)](https://github.com/jletrondo "jletrondo (6 commits)")

### Embed Badge

![Health badge](/badges/jess-jsonkit-php/health.svg)

```
[![Health](https://phpackages.com/badges/jess-jsonkit-php/health.svg)](https://phpackages.com/packages/jess-jsonkit-php)
```

###  Alternatives

[sheadawson/silverstripe-shortcodable

Provides a GUI for CMS users to insert Shortcodes into the HTMLEditorField + an API for developers to define Shortcodable DataObjects and Views

5018.1k5](/packages/sheadawson-silverstripe-shortcodable)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
