Download the PHP package misaf/filament-jalali without Composer

On this page you can find all versions of the php package misaf/filament-jalali. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-jalali

Add "Jalali calendar" columns and pickers to Filament

Latest Version on Packagist GitHub Code Style Action Status Total Downloads

Jalali datetime picker form component and table text column

No fuss package to add Jalali Date and DateTime columns to your table, and a beautiful Jalali Date and DateTime picker to your forms. No new column type, just keep using your good old TextColumns! No new form components, just keep using your beautiful DatePickers and DateTimePickers!

Installation

You can install the package via composer:

PHPStan / Larastan

This package ships a PHPStan extension file (extension.neon) and macro stubs for:

If you use phpstan/extension-installer, it is discovered automatically.

If you do not use extension-installer, add this include to your phpstan.neon:

Usage

To add Jalali date and date-time columns to your tables, just add jalaliDate and jalaliDateTime to the filament TextColumns instead of date or dateTime.

To add Jalali date and date-time columns to your infolists, just add jalaliDate and jalaliDateTime to the filament TextEntrys instead of date or dateTime.

Force Latin or Farsi Numbers

By default, numbers follow the app locale. You can override this using the third argument:

To add Jalali date and date-time pickers to your forms, just add jalalito your DatePicker and DateTimePicker.

Ignoring Jalali Conversion

If you want to ignore jalali conversion you can use the when and unless methods:

Configuring the Format Globally

You can set the default date formats for tables, infolists and date/time pickers anywhere you want, likely in a service provider:

Some common formats you might want to use:

j F Y ۱۵ مهر ۱۳۶۸

Y/m/d ۱۳۶۸/۰۷/۱۵

l j F شنبه ۱۵ مهر

Filament 4 Custom Theme Integration

Filament 4 uses a new theme system. To include filament-jalali’s styles in your Filament admin panel, do the following:

1. Create a custom Filament theme

Run the artisan command:

Follow the instructions to create your custom theme (e.g., ).


2. Import filament-jalali styles in your theme’s CSS file

Add this line to your generated theme CSS file (usually something like ):

This imports all CSS/SCSS from the filament-jalali package.


3. Add the theme CSS file to your Vite input in vite.config.js

Edit your :


4. Register the compiled theme CSS file in your Filament panel provider

In your panel service provider (e.g., ), add:


5. Compile your assets with Vite

Run:

or for development:

Credits

License

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


All versions of filament-jalali with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
filament/filament Version ^4.0|^5.0
illuminate/contracts Version ^11.28|^12.0|^13.0
morilog/jalali Version ^v3.4.2
spatie/laravel-package-tools Version ^1.14.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package misaf/filament-jalali contains the following files

Loading the files please wait ...