Download the PHP package malzariey/filament-daterangepicker-filter without Composer

On this page you can find all versions of the php package malzariey/filament-daterangepicker-filter. 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-daterangepicker-filter

Filament Date Range Picker and Filter

Latest Version on Packagist Total Downloads

This package that adds a date range picker and filter to the Filament panel using the daterangepicker library. It provides options to filter dates by a specific range or predefined ranges such as "Today", "Yesterday", etc.

Installation

You can install the package via composer:

You can publish the translation files with:

Optionally, you can publish the views using

Usage

As a Field

As a Filter

Options

Timezone

Set the picker timezone, defaults to the project timezone. Example setting timezone to 'UTC'.

Start and End Dates

You can specify initial selected Start and End Dates for the filter. The following example will initialize the filter to today's date. `

Default

You could also use a shortcut for above using the following

`

Min and Max Dates

Specify the minimum and maximum dates for the calendar. The following example will only enable selecting previous month to next month.

`

First Day of Week

Set Monday as the first day of the week on the calendar of your DateRangeFilter.

`

Always Show Calendar

Normally, if you use the ranges option to specify pre-defined date ranges, calendars for choosing a custom date range are not shown until the user clicks "Custom Range". When this option is set to true, the calendars for choosing a custom date range.

Time Picker

Adds select boxes to choose times in addition to dates.

Show Time Picker Seconds

Show seconds in the timePicker.

Time Picker 24-Hour Format

Use 24-hour instead of 12-hour times, removing the AM/PM selection

Time Picker Increment Option

Increment of the minutes selection list for times (i.e. 30 to allow only selection of times ending in 0 or 30).

Auto Apply

Hide the apply and cancel buttons, and automatically apply a new date range as soon as two dates are clicked.

Note: Does not work with timePicker option.

Linked Calendars

When enabled, the two calendars displayed will always be for two sequential months (i.e. January and February), and both will be advanced when clicking the left or right arrows above the calendars. When disabled, the two calendars can be individually advanced and display any month/year

Single Calendar

Show only a single calendar to choose one date, instead of a range picker with two calendars. Used Only with DateRangePicker.

Disabled Dates

Indicate whether that date should be available for selection or not.

Display and Picker Formats

Specify the format for the display and selection of dates.

Customize Query

Apply a custom filter query.

Filter Indicator

Show an indicator when the filter is active.

Predefined Ranges

Customize the predefine date ranges for quick selection.

Use Range Labels

By using the useRangeLabels function, it enables the field to display the predefined range labels instead of actual date ranges. This can simplify the display and make it more user-friendly.

Disabling Custom Range Selection

If you want the users to only choose from the predefined ranges and prevent them from selecting custom ranges, you can use the disableCustomRange option.

Separator

Specify the separator for the date range.

Drops Position

Specify the location the filter menu should drop at.

Options

DropDirection::DOWN : The picker will appear below field. (Default)

DropDirection::AUTO : Auto decide the location.

DropDirection::UP : The picker will appear above field.

Example

Open Position

Specify the location the filter menu should open to.

Options

OpenDirection::LEFT : The picker will appear left to the field. (Default)

OpenDirection::RIGHT : The picker will appear right to the field.

OpenDirection::CENTER : The picker will appear center of the field.

Example

Clearing the Date Range Picker

If you have selected a date range and want to remove it, simply click on the calendar icon within the field.

To disable this behavior, you can use the disableClear() method. This will prevent the user from clearing the selected date range.

To customize the icon, you can use the icon() method. It accepts a string or Closure.

Disabling Predefined Ranges

If you wish to disable the predefined ranges feature and provide users with a custom selection only, you may use the disableRanges() method. This will remove any preset date ranges from the picker.

Max Span

The maximum span between the selected start and end dates.

`

Display week numbers

Show localized or ISO week numbers at the start of each week on the calendars.

Display month and year dropdowns

Show month and year select boxes above calendars to jump to a specific month and year. You can also customize, minimum and maximum year shown in the dropdowns.

Screenshots

Light mode

DateRangePicker Widget

Dark mode

DateRangePicker Widget

Styling

If you're building a custom Filament theme, you need one more step to make the calendar theme match your custom theme.

Add this line to your resources/css/{panel_name}/theme.css file.


Credits

License

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

Acknowledgements

JetBrains Logo


All versions of filament-daterangepicker-filter with dependencies

PHP Build Version
Package Version
Requires filament/filament Version ^3.0
spatie/laravel-package-tools Version ^1.16.4
illuminate/contracts Version ^8.0|^9.0|^10.0|^11.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 malzariey/filament-daterangepicker-filter contains the following files

Loading the files please wait ....