Download the PHP package rendane/filament-jalali without Composer

On this page you can find all versions of the php package rendane/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

Filament Jalali

Jalali (Persian / Shamsi) dates for Filament v5.

The date picker shows a Jalali calendar and stores a Gregorian date, so it stays compatible with Laravel date and datetime columns. Table columns and a small formatter turn those stored values back into Jalali strings.

Latest Version on Packagist Total Downloads

Features

Requirements

Installation

The service provider is registered through Laravel package discovery and publishes the calendar stylesheet as a Filament asset.

If the calendar is unstyled after installation, publish Filament assets:

Date picker

The field is read-only. Clicking it opens the calendar. Choosing a day writes the Gregorian date and closes the modal.

Display and storage formats

displayFormat() controls the Jalali text shown in the input. format() is the Gregorian format passed to the state cast. Both default to a date without time.

Display formats use Verta format characters. Y/m/d renders as 1404/01/01.

Minimum and maximum dates

minDate() and maxDate() accept a Carbon instance, a date string, or a closure. Days outside the range are disabled, and the field adds after_or_equal / before_or_equal validation.

The year list runs from 100 years before the current Jalali year to 10 years after it. A minimum or maximum date replaces that end of the range with its own Jalali year.

Table columns

JalaliTextColumn formats an existing Gregorian column. It does not change what is stored.

Method Default format
jalaliDate() Y/m/d
jalaliDateTime() Y/m/d H:i
jalaliTime() H:i
jalaliDateTooltip() Y/m/d
jalaliDateTimeTooltip() Y/m/d H:i
jalaliTimeTooltip() H:i

Pass a format when you need a different pattern:

Formatting in PHP

JalaliFormatter accepts a Verta instance or any value Verta::instance() can parse, including Carbon dates and datetime strings. Blank values return null.

Storage

The picker stores a Gregorian date. Eloquent date and datetime casts keep working, and the Jalali value exists only in the interface and in formatted output.

License

MIT. See LICENSE.


All versions of filament-jalali with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
filament/filament Version ^5.0
hekmatinasser/verta Version ^9.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 rendane/filament-jalali contains the following files

Loading the files please wait ...