1. Go to this page and download the library: Download offhand/honeycomb 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/ */
offhand / honeycomb example snippets
class Person {
public function __construct($firstname, $lastname) {
$this->firstname = $firstname;
$this->lastname = $lastname;
}
public function getFirstName()
{
return $this->firstname;
}
public function getLastName()
{
return $this->lastname;
}
}
$objects = [
'ms' => new Person('Matthew', 'Sahagian'),
'mj' => new Person('Matthew', 'Jones'),
'bt' => new Person('Brian', 'Tam')
];