PHP code example of php-resta / resta-core
1. Go to this page and download the library: Download php-resta/resta-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/ */
php-resta / resta-core example snippets
e Resta\Foundation\Application
$app = new Application(true);
e Resta\Foundation\Application
$app = new Application(true);
//set array values via loadConfig method
$app->loadConfig(function()
{
return ['test' => ['value1' => 'foo','value2'=>['nested1' => 'nestedValue1']]];
});
//let's read these values via config helper method
config('test.value1);
config('test.value2.nested1');