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.0(3mo ago)1919.2k↓38.4%82MITPHPPHP ^8.1|^8.2|^8.3CI passing

Since Nov 17Pushed 1mo 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 1mo ago

READMEChangelog (6)Dependencies (9)Versions (9)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

54

—

FairBetter than 97% of packages

Maintenance84

Actively maintained with recent releases

Popularity37

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 80.2% 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 ~133 days

Recently: every ~122 days

Total

7

Last Release

115d ago

Major Versions

1.x-dev → 2.0.02026-01-23

PHP version history (2 changes)1.0.0PHP ^8.1

1.0.2PHP ^8.1|^8.2|^8.3

### 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 (93 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (11 commits)")[![A909M](https://avatars.githubusercontent.com/u/119125167?v=4)](https://github.com/A909M "A909M (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (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.

320392.1k17](/packages/codewithdennis-filament-select-tree)[awcodes/filament-table-repeater

A modified version of the Filament Forms Repeater to display it as a table.

262815.1k5](/packages/awcodes-filament-table-repeater)[pboivin/filament-peek

Full-screen page preview modal for Filament

253319.6k12](/packages/pboivin-filament-peek)[schmeits/filament-character-counter

This is a Filament character counter TextField and Textarea form field for Filament v4 and v5

33184.7k6](/packages/schmeits-filament-character-counter)[icetalker/filament-table-repeater

This is a package for Filament form component. Extends form Repeater, but shows in Table Layout.

136178.4k2](/packages/icetalker-filament-table-repeater)[dotswan/filament-map-picker

Easily pick and retrieve geo-coordinates using a map-based interface in your Filament applications.

124139.3k2](/packages/dotswan-filament-map-picker)

PHPackages © 2026

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