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' => EnhancedTailCommand::file(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' => Command::from('php artisan test --colors=always')->lazy(),
],
'commands' => [
// A simple string
'About' => 'php artisan solo:about',
// A custom Command class
'Logs' => EnhancedTailCommand::file(storage_path('logs/laravel.log')),
'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,
],
'Logs' => EnhancedTailCommand::file(storage_path('logs/laravel.log')),
'Make' => new MakeCommand,
shell
php artisan solo
shell
php artisan solo:install
shell
php artisan solo