PHP code example of parable-php / getset
1. Go to this page and download the library: Download parable-php/getset 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/ */
parable-php / getset example snippets
$getCollection = new \Parable\GetSet\GetCollection();
echo $getCollection->get('id');
echo ':';
echo $getCollection->get('user.name');
$getCollection->set('settings.mail.from', 'me@system');
// later
$mail_from = $getCollection->get('settings.mail.from') ?? 'nobody';
bash
$ composer