1. Go to this page and download the library: Download awuxtron/options-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/ */
awuxtron / options-object example snippets
use Awuxtron\OptionsObject\Attributes\AsOptionsObject;
use Awuxtron\OptionsObject\OptionsObject;
#[AsOptionsObject('a', AnotherOptionsObject::class)]
class Options extends OptionsObject
{
public int $eof Example ? $value : new Example($value);
}
protected function nested_option()
{
return new class extends OptionsObject {
// Some options.
}
}
protected function __symlink(): array
{
return ['a' => ['b', 'default']];
}
}