PHP code example of ausus / cli
1. Go to this page and download the library: Download ausus/cli 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/ */
ausus / cli example snippets
Ausus\Cli\Command\CompileEntitiesCommand;
// entities/*.php each `return Definition::make(...)->build();`
exit((new CompileEntitiesCommand())->run(__DIR__ . '/entities', __DIR__ . '/.ausus'));
bash
php compile.php
# → writes .ausus/schemas/<hash>.json + .ausus/index.json