1. Go to this page and download the library: Download boxybird/morph 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/ */
// Class
[$count] = morph_render(new class {
public $count;
public function __construct()
{
$this->count = (int) get_option('count', 0);
}
public function increment()
{
update_option('count', ++$this->count);
}
});