PHPackages                             controlcode/cakephp-json-switch - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. controlcode/cakephp-json-switch

ActiveCakephp-plugin[Parsing &amp; Serialization](/categories/parsing)

controlcode/cakephp-json-switch
===============================

Quick switch to json representation of any view variables.

v1.0.2(8y ago)06MITPHP

Since Jun 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/landr-controlcode/cakephp-json-switch)[ Packagist](https://packagist.org/packages/controlcode/cakephp-json-switch)[ Docs](https://github.com/landr-controlcode/cakephp-json-switch)[ RSS](/packages/controlcode-cakephp-json-switch/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

ControlCodeJsonSwitch plugin for CakePHP
========================================

[](#controlcodejsonswitch-plugin-for-cakephp)

Quick switch to json representation of any view variables.

Use case
--------

[](#use-case)

Just add `?json` to the url to get the json data behind a view to request it through ajax pagination.

[Demo site](http://cakephp.control-code.com/)

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require controlcode/cakephp-json-switch

```

Usage
-----

[](#usage)

Pass GET parameters json to view the json representation of all the variables used in the current view

Example
-------

[](#example)

- Show the json representation

`http://www.example.com/?json`

- Get the json+ld tag

`http://www.example.com/?ldjson`

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

2

Last Release

2949d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1563476?v=4)[Landry Rakotoarivelo](/maintainers/folojona)[@folojona](https://github.com/folojona)

---

Tags

cakephpcakephp-plugincakephp3jsonjson-apijson-ldjsoncakephpldjson

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/controlcode-cakephp-json-switch/health.svg)

```
[![Health](https://phpackages.com/badges/controlcode-cakephp-json-switch/health.svg)](https://phpackages.com/packages/controlcode-cakephp-json-switch)
```

###  Alternatives

[cakephp/debug_kit

CakePHP Debug Kit

86314.7M165](/packages/cakephp-debug-kit)[cakephp/bake

Bake plugin for CakePHP

11212.0M194](/packages/cakephp-bake)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308954.9k25](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M41](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

3361.0M51](/packages/dereuromark-cakephp-tools)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

131240.2k13](/packages/dereuromark-cakephp-tinyauth)

PHPackages © 2026

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