controlcode / cakephp-json-switch
Quick switch to json representation of any view variables.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- cakephp/cakephp: ^3.5
Requires (Dev)
- phpunit/phpunit: ^5.7.14|^6.0
This package is auto-updated.
Last update: 2024-10-28 12:36:14 UTC
README
Quick switch to json representation of any view variables.
Use case
Just add ?json
to the url to get the json data behind a view to request it through ajax pagination.
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require controlcode/cakephp-json-switch
Usage
Pass GET parameters json to view the json representation of all the variables used in the current view
Example
- Show the json representation
http://www.example.com/?json
- Get the json+ld tag
http://www.example.com/?ldjson