1. Go to this page and download the library: Download celestriode/constructure 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/ */
celestriode / constructure example snippets
$constructure = new class(new EventHandler()) extends AbstractConstructure {
public function toStructure($input): StructureInterface
{
// Put code to transform the input into a Constructure structure.
}
};
$structure = new class extends AbstractStructure {
public function toString(PrettifierInterface $prettifier = null): string
{
return "";
}
};
$eventHandler = (new EventHandler())->addEvent("event_name", function ($input1, $input2, $input3) {
// Do something here.
});
$audit = new class extends AbstractAudit {
public function audit(AbstractConstructure $constructure, StructureInterface $input, StructureInterface $expected): bool
{
return true;
}
public static function getName(): string
{
return "user-friendly name of the audit";
}
};
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.