PHPackages                             ismail-karoudi/nova-filterable-metrics - 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. [Admin Panels](/categories/admin)
4. /
5. ismail-karoudi/nova-filterable-metrics

ActiveLibrary[Admin Panels](/categories/admin)

ismail-karoudi/nova-filterable-metrics
======================================

Filterable Laravel Nova Metrics.

v1.0.3(1y ago)05MITVuePHP ^7.3|^8.0

Since Mar 3Pushed 1y agoCompare

[ Source](https://github.com/ismail-karoudi/nova-filterable-metrics)[ Packagist](https://packagist.org/packages/ismail-karoudi/nova-filterable-metrics)[ RSS](/packages/ismail-karoudi-nova-filterable-metrics/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Nova Filterable Metrics
=======================

[](#nova-filterable-metrics)

This package inspired by [nova-filterable-cards](https://github.com/beyondcode/nova-filterable-cards)

Add custom filters to your Laravel Nova metrics.

[![screenshot](https://camo.githubusercontent.com/e975727d860054c8924e2fdd205ac1bfaf3d3c76b546ee383948f03bc94d920d/68747470733a2f2f6e656d7275742e636f2f696d616765732f66696c74657261626c652f66696c7465722d73637265656e73686f74312e706e67)](https://camo.githubusercontent.com/e975727d860054c8924e2fdd205ac1bfaf3d3c76b546ee383948f03bc94d920d/68747470733a2f2f6e656d7275742e636f2f696d616765732f66696c74657261626c652f66696c7465722d73637265656e73686f74312e706e67)[![screenshot](https://camo.githubusercontent.com/1cf1808b9ad2487f62403d0600c08cc6b19ed70360b8a50be1d4d4d58aa6dfe1/68747470733a2f2f6e656d7275742e636f2f696d616765732f66696c74657261626c652f66696c7465722d73637265656e73686f74322e706e67)](https://camo.githubusercontent.com/1cf1808b9ad2487f62403d0600c08cc6b19ed70360b8a50be1d4d4d58aa6dfe1/68747470733a2f2f6e656d7275742e636f2f696d616765732f66696c74657261626c652f66696c7465722d73637265656e73686f74322e706e67)

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

[](#installation)

You can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```
composer require nemrutco/nova-filterable-metrics
```

Usage
-----

[](#usage)

To add the filter ability to your Laravel Nova metric cards, you need to add one of the `Filterable` traits to your metrics.

Depending on your metric type, these are the available traits:

- `FilterableValue`
- `FilterableTrend`
- `FilterablePartition`

For example, within your custom Nova value metric card:

```
// in your Nova value metric card class:
use Nemrutco\Filterable\FilterableValue;

use FilterableValue;
```

Defining Filters
----------------

[](#defining-filters)

The available filters for your cards can be defined, by adding `filters` method which returns array of Nova Filters to your metrics. You can use any Nova Filters you defined in your application.

Example:

```
// in your filterable Nova metric:
use App\Nova\Filters\Date;
use App\Nova\Filters\Store;

public function filters()
{
	return [
		new Store,
		new Date,
	];
}
```

Available filter types
----------------------

[](#available-filter-types)

By default, this package supports all of the Nova Filter types. For Date type filters it uses flatpicker.

if you want to enable date range, simply add

```
public function range()
{
	return $this->withMeta(['mode' => 'range']);
}
```

in your DateFilter filter, and make sure to call it in your use case as:

```
public function filters(Request $request)
{
	return [
		(new Date)->range(),
	]
}
```

In that case you don't need to use Nova's default `ranges`. Instead you can use a date filter. If you use ranges and a date filter, your date filter will be applied only within the selected Nova's range. So try to not use ranges and a date filter at same time.

Credits
-------

[](#credits)

- [Nemrut Creative Studio](https://github.com/nemrutco)
- [Muzaffer Dede](https://github.com/MuzafferDede)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance46

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.6% 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 ~0 days

Total

4

Last Release

435d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2be1f82190f41252b32567dcde89429eda9eeb0488154ba186af14496473145b?d=identicon)[ismail-karoudi](/maintainers/ismail-karoudi)

---

Top Contributors

[![MuzafferDede](https://avatars.githubusercontent.com/u/5906125?v=4)](https://github.com/MuzafferDede "MuzafferDede (17 commits)")[![ismail-karoudi](https://avatars.githubusercontent.com/u/167265737?v=4)](https://github.com/ismail-karoudi "ismail-karoudi (6 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![mn-oencuele](https://avatars.githubusercontent.com/u/69976869?v=4)](https://github.com/mn-oencuele "mn-oencuele (2 commits)")[![carhambier](https://avatars.githubusercontent.com/u/58798663?v=4)](https://github.com/carhambier "carhambier (1 commits)")

---

Tags

laravelMetricscardnovafilterable

### Embed Badge

![Health badge](/badges/ismail-karoudi-nova-filterable-metrics/health.svg)

```
[![Health](https://phpackages.com/badges/ismail-karoudi-nova-filterable-metrics/health.svg)](https://phpackages.com/packages/ismail-karoudi-nova-filterable-metrics)
```

###  Alternatives

[khalin/nova-link-field

A Laravel Nova Link field.

31562.2k2](/packages/khalin-nova-link-field)

PHPackages © 2026

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