PHPackages                             ristodziuba/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. ristodziuba/nova-filterable-metrics

ActiveLibrary[Admin Panels](/categories/admin)

ristodziuba/nova-filterable-metrics
===================================

Filterable Laravel Nova Metrics.

v1.1.1(6y ago)05MITVuePHP &gt;=7.1.0

Since Jan 21Pushed 5y agoCompare

[ Source](https://github.com/ristodziuba/nova-filterable-metrics)[ Packagist](https://packagist.org/packages/ristodziuba/nova-filterable-metrics)[ RSS](/packages/ristodziuba-nova-filterable-metrics/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (4)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 ristodziuba/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 Ristodziuba\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/ristodziuba)
- [Marcel Pociot](https://github.com/mpociot)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~49 days

Total

3

Last Release

2205d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24976064?v=4)[ristodziuba](/maintainers/ristodziuba)[@ristodziuba](https://github.com/ristodziuba)

---

Top Contributors

[![MuzafferDede](https://avatars.githubusercontent.com/u/5906125?v=4)](https://github.com/MuzafferDede "MuzafferDede (3 commits)")[![ristodziuba](https://avatars.githubusercontent.com/u/24976064?v=4)](https://github.com/ristodziuba "ristodziuba (3 commits)")

---

Tags

laravelMetricscardnovafilterable

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/ristodziuba-nova-filterable-metrics/health.svg)](https://phpackages.com/packages/ristodziuba-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)
