PHP code example of soloterm / solo

1. Go to this page and download the library: Download soloterm/solo 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/ */

    

soloterm / solo example snippets


'commands' => [
    'About' => 'php artisan solo:about',
    'Logs' => 'tail -f -n 100 ' . storage_path('logs/laravel.log'),
    'Vite' => 'npm run dev',
    'Make' => new MakeCommand,

    // Lazy commands don't start automatically
    'Dumps' => Command::from('php artisan solo:dumps')->lazy(),
    'Queue' => Command::from('php artisan queue:work')->lazy(),
    'Tests' => TestCommand::artisan(),
],

'commands' => [
    // A simple string
    'About' => 'php artisan solo:about',

    // A custom Command class
    'Make' => new MakeCommand,

    // Using the Command::from() static constructor
    'Dumps' => Command::from('php artisan solo:dumps')->lazy(),
],

// You might need Reverb, but maybe not always, so don't autostart it.
'Reverb' => Command::from('php artisan reverb')->lazy()

'theme' => env('SOLO_THEME', 'dark'),

'themes' => [
    'light' => Themes\LightTheme::class,
    'dark' => Themes\DarkTheme::class,
],

'keybinding' => env('SOLO_KEYBINDING', 'default'),

'keybindings' => [
    'default' => Hotkeys\DefaultHotkeys::class,
    'vim' => Hotkeys\VimHotkeys::class,
],

'Make' => new MakeCommand,

// Using Laravel's artisan test command (default)
'Tests' => TestCommand::artisan(),

// Using Pest
'Tests' => TestCommand::pest(),

// Using PHPUnit directly
'Tests' => TestCommand::phpunit(),

// Custom arguments
'Tests' => TestCommand::artisan('--filter=UserTest'),
shell
php artisan solo
shell
php artisan solo:install
shell
php artisan solo