1. Go to this page and download the library: Download igclabs/tart 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/ */
igclabs / tart example snippets
// New fluent APIs (recommended)
$this->logo()
->text('MY APP')
->boxed()
->color('cyan')
->render();
$this->say('Processing data...');
$this->good('✓ Step 1 complete');
$this->success('🎉 Deployment complete!');
// Or use the traditional API (still supported)
$this->displayTextLogo('MY APP', 'box', ['text_color' => 'cyan']);
$this->say('Processing data...');
$this->good('✓ Step 1 complete');
$this->success('🎉 Deployment complete!');
namespace App\Console\Commands;
use IGC\Tart\Laravel\StyledCommand;
class DeployCommand extends StyledCommand
{
protected $signature = 'app:deploy';
public function handle()
{
// Beautiful branded logo (fluent API)
$this->logo()
->text('DEPLOYMENT SYSTEM')
->boxed()
->color('cyan')
->render();
$this->br();
// Progress tracking
$this->openLine('Building application');
// ... work ...
$this->appendLine(' ✓', 'green');
$this->closeLine();
$this->openLine('Running tests');
// ... work ...
$this->appendLine(' ✓', 'green');
$this->closeLine();
// Success finish
$this->br();
$this->success('🎉 Deployment Complete!');
return self::SUCCESS;
}
}
namespace App\Command;
use IGC\Tart\Symfony\StyledCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class DeployCommand extends StyledCommand
{
protected static $defaultName = 'app:deploy';
protected function execute(InputInterface $input, OutputInterface $output): int
{
$this->header('Deployment (Symfony)');
$this->say('Shipping bits via Symfony Console!');
$this->success('Done!');
return Command::SUCCESS;
}
}