PHPackages                             aymanalhattami/filament-date-scopes-filter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. aymanalhattami/filament-date-scopes-filter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

aymanalhattami/filament-date-scopes-filter
==========================================

Filament Date Scopes Filter

2.0.2(1mo ago)1920.9k↓63%7[1 PRs](https://github.com/aymanalhattami/filament-date-scopes-filter/pulls)2MITPHPPHP ^8.1|^8.2|^8.3|^8.4|^8.5CI passing

Since Nov 17Pushed 1w ago3 watchersCompare

[ Source](https://github.com/aymanalhattami/filament-date-scopes-filter)[ Packagist](https://packagist.org/packages/aymanalhattami/filament-date-scopes-filter)[ Docs](https://github.com/aymanalhattami/filament-date-scopes-filter)[ RSS](/packages/aymanalhattami-filament-date-scopes-filter/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (8)Dependencies (18)Versions (13)Used By (2)

Filament Date Scopes Filter
===========================

[](#filament-date-scopes-filter)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c7690a7b061d4a04c37ef7cae2deb1628a44533c5ad17adb4b5905e649d20907/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61796d616e616c68617474616d692f66696c616d656e742d646174652d73636f7065732d66696c7465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aymanalhattami/filament-date-scopes-filter)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/69ad6e3df8c3de1d6469895500a80b39da2f4e1a50f153e3c9ed520e88d25f97/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61796d616e616c68617474616d692f66696c616d656e742d646174652d73636f7065732d66696c7465722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/aymanalhattami/filament-date-scopes-filter/actions?query=workflow%3A%22Fix+PHP+code+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/b02116bff173c875677d78df4f183d843cf0e89b761ea1d9031c026c9b540dab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61796d616e616c68617474616d692f66696c616d656e742d646174652d73636f7065732d66696c7465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aymanalhattami/filament-date-scopes-filter)

Provide a filter by seconds, minutes, hours, days, weeks, months, quarter, years, decades and millenniums for table.

[![](https://raw.githubusercontent.com/aymanalhattami/filament-date-scopes-filter/main/images/filament-date-scopes-filter.png)](https://raw.githubusercontent.com/aymanalhattami/filament-date-scopes-filter/main/images/filament-date-scopes-filter.png)

Installation
------------

[](#installation)

At first, this package depends on [laravel date scops](https://github.com/laracraft-tech/laravel-date-scopes). Please read the [laravel date scops](https://github.com/laracraft-tech/laravel-date-scopes) document and prepare your model(s) to be filtered by date scopes.

You can install the package via composer:

```
composer require aymanalhattami/filament-date-scopes-filter
```

Usage
-----

[](#usage)

```
use AymanAlhattami\FilamentDateScopesFIlter\DateScopeFilter;

// ...
public static function table(Table $table): Table
{
    return $table
        ->filters([
            DateScopeFilter::make('created_at'),
        ])
    // ...
}
// ...
```

#### More configuration

[](#more-configuration)

```
use AymanAlhattami\FilamentDateScopesFIlter\DateScopeFilter;

// ...
public static function table(Table $table): Table
{
    return $table
        ->filters([
            DateScopeFilter::make('created_at')
                ->withoutSeconds() // ex
                ->withoutMinutes()
                ->withoutHours()
                ->withoutDays()
                ->withoutWeeks()
                ->withoutMonths()
                ->withoutQuarters()
                ->withoutYears()
                ->withoutDecades()
                ->withoutCenturies()
                ->withoutMillenniums(),
        ])
    // ...
}
// ...
```

#### Translations

[](#translations)

Publish the translations using:

```
php artisan vendor:publish --tag="filament-date-scopes-filter-translations"
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Ayman Alhattami](https://github.com/aymanalhattami)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance95

Actively maintained with recent releases

Popularity38

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~115 days

Total

9

Last Release

40d ago

Major Versions

1.x-dev → 2.0.02026-01-23

PHP version history (3 changes)1.0.0PHP ^8.1

1.0.2PHP ^8.1|^8.2|^8.3

2.0.1PHP ^8.1|^8.2|^8.3|^8.4|^8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34315778?v=4)[Ayman Alhattami](/maintainers/aymanalhattami)[@aymanalhattami](https://github.com/aymanalhattami)

---

Top Contributors

[![aymanalhattami](https://avatars.githubusercontent.com/u/34315778?v=4)](https://github.com/aymanalhattami "aymanalhattami (100 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (12 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")[![A909M](https://avatars.githubusercontent.com/u/119125167?v=4)](https://github.com/A909M "A909M (5 commits)")[![chandachewe10](https://avatars.githubusercontent.com/u/82529756?v=4)](https://github.com/chandachewe10 "chandachewe10 (1 commits)")[![nirine1](https://avatars.githubusercontent.com/u/106626867?v=4)](https://github.com/nirine1 "nirine1 (1 commits)")

---

Tags

filamentlaravelfilamentaymanalhattamifilament-date-scopes-filterdate scopes filterdate filter

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/aymanalhattami-filament-date-scopes-filter/health.svg)

```
[![Health](https://phpackages.com/badges/aymanalhattami-filament-date-scopes-filter/health.svg)](https://phpackages.com/packages/aymanalhattami-filament-date-scopes-filter)
```

###  Alternatives

[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[filament/filament

A collection of full-stack components for accelerated Laravel app development.

3829.6M3.6k](/packages/filament-filament)[relaticle/flowforge

Flowforge is a lightweight Kanban board package for Filament that works with existing Eloquent models.

413106.5k5](/packages/relaticle-flowforge)[ysfkaya/filament-phone-input

A phone input component for Laravel Filament

3161.3M25](/packages/ysfkaya-filament-phone-input)[awcodes/richer-editor

A collection of extensions and tools to enhance the Filament Rich Editor field.

3912.9k9](/packages/awcodes-richer-editor)[biostate/filament-menu-builder

An Elegant Menu Builder for FilamentPHP

6528.1k2](/packages/biostate-filament-menu-builder)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
