1. Go to this page and download the library: Download lawondyss/parex-commander 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/ */
lawondyss / parex-commander example snippets
// Handlers
function day(DynamicResult $result, IO $io): void { $io->writeLn('☀️'); }
function night(DynamicResult $result, IO $io): void { $io->writeLn('🌙'); }
// Commands of Day & Night application
$commander = new ParexCommander('Day & Night', 'Something small and simple');
$commander->addCommand('day', day(...));
$commander->addCommand('night', night(...));
$commander->run();
$commander->addCommand('migrate', migrate(...), 'Run missing migrations.')
->addOptional('id', help: 'Specifies a particular migration.', multiple: true)
->addFlag('dry-run', help: 'It simulates running the migration, but does not execute SQL.');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.