Search by

crustum / cakephp-json-field

skiedr

JsonField plugin for CakePHP

Package info

github.com/Crustum/cakephp-json-field

Type:cakephp-plugin

pkg:composer/crustum/cakephp-json-field

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-09-19 10:25 UTC

This package is not auto-updated.

Last update: 2026-09-20 16:29:00 UTC


README

The JsonField plugin treats JSON columns as nested-entity stores for CakePHP applications, with paths as first-class addresses into JSON data.

JsonField enables reading, writing, and querying values at arbitrary paths inside JSON columns: filter, order, and compare against path values in SQL, hydrate nested data into real entities, and persist changes as atomic engine-native path updates instead of whole-column rewrites.

The plugin declares schema and per-path types with PHP attributes on entity classes, and supports embedded entities as well as foreign keys stored inside JSON with joins to related tables. It includes engine adapters for PostgreSQL, MySQL, and SQLite, resolved automatically from the connection driver.

The plugin integrates seamlessly with CakePHP's ORM and provides database types, query expressions, and a finder for working with JSON paths.

Requirements

  • PHP 8.2+

See Versions.md for the supported CakePHP versions.

Installation

You can install this plugin into your CakePHP application using composer:

composer require crustum/cakephp-json-field

Load the plugin:

bin/cake plugin load Crustum/JsonField

Documentation

For documentation, as well as tutorials, see the docs directory of this repository.

License

Licensed under the MIT License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.