1. Go to this page and download the library: Download awcodes/shout 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/ */
awcodes / shout example snippets
use Awcodes\Shout\Components\Shout;
Shout::make('so-important')
->content('This is a test')
->type('info') // or 'success', 'warning', 'danger'
use Awcodes\Shout\Components\ShoutEntry;
ShoutEntry::make('so-important')
->content('This is a test')
->type('info') // or 'success', 'warning', 'danger'
use Awcodes\Shout\Components\Shout;
use Filament\Support\Colors\Color;
Shout::make('so-important')
->color(Color::Lime)
Shout::make('so-important')
->color(Color::hex('#badA55'))
use Awcodes\Shout\Components\Shout;
Shout::make('so-important')
->icon('heroicon-s-circle-check')
use Awcodes\Shout\Components\Shout;
Shout::make('so-important')
->iconSize('sm') // or 'md', 'lg', 'xl'
use Awcodes\Shout\Components\Shout;
Shout::make('so-important')
->icon(false)
use Awcodes\Shout\Components\Shout;
Shout::make('so-important')
->heading('Important Notice')
->content('This is a test')
use Awcodes\Shout\Components\Shout;
use Filament\Forms\Components\Actions\Action;
Shout::make('so-important')
->content('This is a test')
->actions([
Action::make('action1')
->label('Action 1')
->url('https://example.com'),
Action::make('action2')
->label('Action 2')
->url('https://example.com'),
])
use Awcodes\Shout\Components\ShoutEntry;
use Filament\Infolists\Components\Actions\Action;
ShoutEntry::make('so-important')
->content('This is a test')
->actions([
Action::make('action1')
->label('Action 1')
->url('https://example.com'),
Action::make('action2')
->label('Action 2')
->url('https://example.com'),
])
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.