PHPackages                             ardenthq/nova-table-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. ardenthq/nova-table-metrics

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

ardenthq/nova-table-metrics
===========================

Advanced table metrics for Laravel Nova.

1.1.0(2y ago)213.0k[1 PRs](https://github.com/ArdentHQ/nova-table-metrics/pulls)MITPHPPHP ^8.0

Since Sep 29Pushed 2y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

Laravel Nova Table Metrics
==========================

[](#laravel-nova-table-metrics)

 [![](./banner.png)](./banner.png)

> A custom card allowing you to add Table Metrics with a Date Period filter

 [![](./example.png)](./example.png) [![](./example-dark.png)](./example-dark.png)

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

[](#installation)

```
composer require ardenthq/nova-table-metrics
```

Usage
-----

[](#usage)

### Creating a Table component

[](#creating-a-table-component)

```
class GreatestShows extends Table
{
    public function title() : string
    {
        return 'Greatest TV shows';
    }

    public function heading() : string
    {
        return 'Title';
    }

    public function detailHeading() : string
    {
        return 'Views';
    }

    public function defaultPeriod() : ?Period
    {
        return Period::Day;
    }

    /**
     * @return Collection
     */
    public function items(?Period $period) : Collection
    {
        return collect([
            TableRow::make('Silicon Valley', '42,184')
                    ->url('https://www.youtube.com/watch?v=dQw4w9WgXcQ')
                    ->openInNewTab(),

            //
        ]);
    }
}
```

#### Disable date filters

[](#disable-date-filters)

To disable date filters, override the `hasPeriodSelector` method on the Table component:

```
class GreatestShows extends Table
{
    public function title() : string
    {
        return 'Greatest TV shows';
    }

    public function heading() : string
    {
        return 'Title';
    }

    public function detailHeading() : string
    {
        return 'Views';
    }

    public function defaultPeriod() : ?Period
    {
        return null;
    }

    /**
     * @return Collection
     */
    public function items(?Period $period) : Collection
    {
        return collect([
            TableRow::make('Silicon Valley', '42,184')
                    ->url('https://www.youtube.com/watch?v=dQw4w9WgXcQ')
                    ->openInNewTab(),

            //
        ]);
    }

    public function hasPeriodSelector() : bool
    {
        return false;
    }
}
```

### Registering a Table

[](#registering-a-table)

In your Nova dashboard, register a table by adding it to the `cards` method:

```
class Main extends Dashboard
{
    public function name()
    {
        return 'Dashboard';
    }

    public function cards()
    {
        return [
            // ...
            GreatestShows::make()->width('1/3'),
        ];
    }
}
```

Development
-----------

[](#development)

1. Run `yarn nova:install` and `yarn install` to install all the necessary dependencies for compiling the view components
2. Run `yarn run dev` (or `yarn run watch`) while making changes to the components in your local environment
3. If you modify Vue components, ensure to compile for production before making a PR

### Compile for production

[](#compile-for-production)

1. Run `yarn nova:install` and `yarn install` to install all the necessary dependencies for compiling the view components.
2. Run `yarn run production`.

### Analyze the code with `phpstan`

[](#analyze-the-code-with-phpstan)

```
composer analyse
```

### Refactor the code with php `rector`

[](#refactor-the-code-with-php-rector)

```
composer refactor
```

### Format the code with `php-cs-fixer`

[](#format-the-code-with-php-cs-fixer)

```
composer format
```

Security
--------

[](#security)

If you discover a security vulnerability within this package, please send an e-mail to . All security vulnerabilities will be promptly addressed.

Credits
-------

[](#credits)

This project exists thanks to all the people who [contribute](../../contributors).

License
-------

[](#license)

[MIT](LICENSE) © [ArdentHQ](https://ardenthq.com)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 79.5% 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 ~410 days

Total

2

Last Release

908d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1c55ad6edf98d82d17f8ae202a123a3c8028785ca6588b384e31b5134d69222?d=identicon)[itsanametoo](/maintainers/itsanametoo)

---

Top Contributors

[![ItsANameToo](https://avatars.githubusercontent.com/u/35610748?v=4)](https://github.com/ItsANameToo "ItsANameToo (35 commits)")[![crnkovic](https://avatars.githubusercontent.com/u/6536260?v=4)](https://github.com/crnkovic "crnkovic (9 commits)")

###  Code Quality

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ardenthq-nova-table-metrics/health.svg)

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

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

14720.0k](/packages/markwalet-nova-modal-response)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)[stepanenko3/nova-cards

A Laravel Nova info cards.

33143.0k](/packages/stepanenko3-nova-cards)

PHPackages © 2026

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