Download the PHP package jumichica/pjson without Composer
On this page you can find all versions of the php package jumichica/pjson. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jumichica/pjson
More information about jumichica/pjson
Files in jumichica/pjson
Download jumichica/pjson
More information about jumichica/pjson
Files in jumichica/pjson
Vendor jumichica
Package pjson
Short Description Methods to transform json files using maths, filters and more.
License MIT
Package pjson
Short Description Methods to transform json files using maths, filters and more.
License MIT
Please rate this library. Is it a good library?
Informations about the package pjson
pjson
Methods to transform json files, maths, filters and more
INSTALL
composer require jumichica/pjson
Examples
Arithmetic Procesing
If you define a atribute with an initial equal (=) the system analyze te content to eval the formula.
<?php
require_once __DIR__ . '/../vendor/autoload.php';
use Jumichica\Pjson\Math;
$omath = new Math();
$json = '[
{"A": 1,"B": 2, "C": "= A + B"},
{"A": 1, "B": 2, "C": "= A - B"},
{"A": 1, "B": 2,"C": "= A * B"},
{"A": 1,"B": 2,"C": "= A / B"}
]';
$pjson = $omath->arithmetic($json);
$pjson = json_decode($pjson);
print_r($pjson[0]->C->value);
All versions of pjson with dependencies
PHP Build Version
Package Version
No informations.
The package jumichica/pjson contains the following files
Loading the files please wait ....