1. Go to this page and download the library: Download bermudaphp/data-object 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/ */
bermudaphp / data-object example snippets
$obj = new DataObj(['name' => 'Sarah', 'age' => 25]);
or
$data = new StdClass();
$data->name = 'Sarah';
$data->age = 25;
$obj = new DataObj($data);