PHPackages                             nemrutco/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nemrutco/nova-filterable-metrics

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

nemrutco/nova-filterable-metrics
================================

Filterable Laravel Nova Metrics.

v1.3.0(3y ago)25368.7k↓17.1%25[6 PRs](https://github.com/nemrutco/nova-filterable-metrics/pulls)MITVuePHP ^7.3|^8.0

Since Jan 21Pushed 2y ago2 watchersCompare

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

READMEChangelog (10)DependenciesVersions (15)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

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 73.9% 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 ~129 days

Recently: every ~243 days

Total

10

Last Release

1145d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.1.0

v1.3.0PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/448856bed92d3334042db90a564d448b43ee5527e32f90049650e80e291d5c3d?d=identicon)[nemrutco](/maintainers/nemrutco)

---

Top Contributors

[![MuzafferDede](https://avatars.githubusercontent.com/u/5906125?v=4)](https://github.com/MuzafferDede "MuzafferDede (17 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/nemrutco-nova-filterable-metrics/health.svg)

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

###  Alternatives

[square1/nova-metrics

Add support for resource-filters on your laravel nova metrics

27278.7k](/packages/square1-nova-metrics)[ericlagarda/nova-text-card

A custom card for Laravel Nova to show Text in cards with some good options

20388.6k2](/packages/ericlagarda-nova-text-card)[saintsystems/nova-linkable-metrics

Linkable metrics for Laravel Nova 4.x.

21294.0k](/packages/saintsystems-nova-linkable-metrics)[digital-creative/resource-navigation-link

Create links to internal or external resources.

1044.0k](/packages/digital-creative-resource-navigation-link)

PHPackages © 2026

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