PHP code example of agelgil / filament-ethiopic-calendar

1. Go to this page and download the library: Download agelgil/filament-ethiopic-calendar 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/ */

    

agelgil / filament-ethiopic-calendar example snippets


// Yes! Just use Filament's original DatePickers and DateTimePickers!
use Filament\Forms;

Forms\Components\DatePicker::make('moderated_at')
    ->ethiopic(),
Forms\Components\DateTimePicker::make('published_at')
    ->ethiopic(),

use Filament\Forms;
use Illuminate\Support\Facades\App;

Forms\Components\DatePicker::make('birthday')
    ->when(App::isLocale('am'), fn (Forms\Components\DatePicker $column) => $column->ethiopic()),