承接 ariaieboy/filament-jalali-datetime 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ariaieboy/filament-jalali-datetime

最新稳定版本:1.4.2

Composer 安装命令:

composer require ariaieboy/filament-jalali-datetime

包简介

a Jalali DateTime Column for filament table builder

README 文档

README

Ariaieboy Jalali DateTime

a Jalali DateTime Column for filament table builder

Latest Version on Packagist GitHub Actions Workflow Status Total Downloads

This package will add a Jalali DateTime Column for filament table builder

Installation

You can install the package via composer:

composer require ariaieboy/filament-jalali-datetime

You can publish the config file with:

php artisan vendor:publish --tag="filament-jalali-datetime-config"

This is the contents of the published config file:

// config for Ariaieboy/FilamentJalaliDatetime
return [
    'date_format'=>'Y/m/d',
    'date_time_format'=>'Y/m/d H:i:s',
];

Usage

//instead of this :
use Filament\Tables\Columns\TextColumn;
 
TextColumn::make('created_at')->dateTime()

//Since v1.2 you can use the code below to show Jalali date and dateTime

TextColumn::make('created_at')->jalaliDate();
TextColumn::make('created_at')->jalaliDateTime();

//you can use the code below for jalali datetime
use Ariaieboy\FilamentJalaliDatetime\JalaliDateTimeColumn;
 
JalaliDateTimeColumn::make('created_at')->dateTime() // it will show the date like this : 1401/03/15 20:18:52
//or
JalaliDateTimeColumn::make('created_at')->date() // it will show the date like this : 1401/03/15

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 11.13k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 17
  • 点击次数: 2
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 17
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-05