PHP code example of switon / core
1. Go to this page and download the library: Download switon/core 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/ */
switon / core example snippets
use Switon\Core\Json;
$config = Json::parse('{"app":"demo","debug":true}');
$config['debug'] = false;
echo Json::stringify($config, JSON_PRETTY_PRINT);