PHP code example of eden / model
1. Go to this page and download the library: Download eden/model 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/ */
eden / model example snippets
//set user name
$model->setUserName('Chris');
// returns user email
$model->getUserEmail();
// set any abstract key
$model->setAnyThing('somthing');
// get any abstract key
$model->getAnyThing();
//access as array
echo $model['user_name'];
//set as array
$model['user_email'] = '[email protected]';
//access as object
echo $model->user_name;
//set as object
$model->user_name = '[email protected]';