PHP code example of cordis-php / cordis
1. Go to this page and download the library: Download cordis-php/cordis 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/ */
cordis-php / cordis example snippets
declare(strict_types=1);
use CordisPhp\Plugin\PluginRegistry;
use CordisPhp\Runtime\Runtime;
$plugins = new PluginRegistry();
$plugins->registerClass('clock', App\ClockPlugin::class);
$runtime = new Runtime($plugins);
$loader = $runtime->yaml(__DIR__ . '/app.yml');
$loader->reload();