1. Go to this page and download the library: Download quantick/deploy-migrations 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/ */
quantick / deploy-migrations example snippets
class Version20190211093348 extends \Quantick\DeployMigration\Lib\DeployMigration {
public function getCommands(): array
{
return [
\App\Console\Commands\TestCommandWithArguments::class => ['arg' => 'value', '--option' => true],
\App\Console\Commands\TestCommandWithoutArguments::class => [],
function (SomeService $service) {
return $service->doTheWork();
}
];
}
}