Download the PHP package merophp/json-view without Composer
On this page you can find all versions of the php package merophp/json-view. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download merophp/json-view
More information about merophp/json-view
Files in merophp/json-view
Download merophp/json-view
More information about merophp/json-view
Files in merophp/json-view
Vendor merophp
Package json-view
Short Description JSON view plugin for merophp/view-engine
License MIT
Package json-view
Short Description JSON view plugin for merophp/view-engine
License MIT
Please rate this library. Is it a good library?
Informations about the package json-view
Introduction
JSON view plugin for merophp/view-engine.
Installation
Via composer:
composer require merophp/json-view
Basic Usage
require_once 'vendor/autoload.php';
use Merophp\JsonViewPlugin\JsonView;
use Merophp\ViewEngine\ViewEngine;
use Merophp\ViewEngine\ViewPlugin\Collection\ViewPluginCollection;
use Merophp\ViewEngine\ViewPlugin\Provider\ViewPluginProvider;
use Merophp\ViewEngine\ViewPlugin\ViewPlugin;
$collection = new ViewPluginCollection();
$collection->add(
new ViewPlugin(JsonView::class),
]);
$provider = new ViewPluginProvider($collection);
$viewEngine = new ViewEngine($provider);
$view = $viewEngine->initializeView();
$view->json(['foo'=>'bar');
echo $viewEngine->renderView($view);
All versions of json-view with dependencies
PHP Build Version
Package Version
The package merophp/json-view contains the following files
Loading the files please wait ....