PHP code example of dayjo / php-json-handler
1. Go to this page and download the library: Download dayjo/php-json-handler library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dayjo / php-json-handler example snippets
use Dayjo\JSON;
$JSON = new JSON('config.json');
$config =& $JSON->data; // You could just do $config->data->name = ...
$config->name = 'dayjo';
$config->last_edited = time();
$JSON = new JSON('config.json', false);
$config =& $JSON->data;
$config->name = 'dayjo';
$JSON->save();
shell
composer