Download the PHP package jess/jsonkit-php without Composer
On this page you can find all versions of the php package jess/jsonkit-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jess/jsonkit-php
More information about jess/jsonkit-php
Files in jess/jsonkit-php
Download jess/jsonkit-php
More information about jess/jsonkit-php
Files in jess/jsonkit-php
Vendor jess
Package jsonkit-php
Short Description A lightweight PHP library for reading, writing, and managing JSON files.
License MIT
Package jsonkit-php
Short Description A lightweight PHP library for reading, writing, and managing JSON files.
License MIT
Please rate this library. Is it a good library?
Informations about the package jsonkit-php
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
Install via Composer:
Usage
Quick Start
Main Methods
| Method | Description |
|---|---|
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
- 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
MIT
All versions of jsonkit-php with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4 || ^8.0
The package jess/jsonkit-php contains the following files
Loading the files please wait ...