1. Go to this page and download the library: Download refs/sputnik 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/ */
refs / sputnik example snippets
#[Task(name: 'deploy', description: 'Deploy the application', environment: 'container')]
final class DeployTask implements TaskInterface
{
public function __invoke(TaskContext $ctx): TaskResult
{
$ctx->shell('rsync -avz ./dist/ {{ deployPath }}/');
$ctx->exec(['php', 'artisan', 'migrate', '--force']);
return TaskResult::success();
}
}