PHPackages                             hapheus/nova-single-value-card - 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. hapheus/nova-single-value-card

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

hapheus/nova-single-value-card
==============================

A Laravel Nova card that displays a single value.

0138↓100%1PHP

Since Feb 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hapheus/nova-single-value-card)[ Packagist](https://packagist.org/packages/hapheus/nova-single-value-card)[ RSS](/packages/hapheus-nova-single-value-card/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Nova Single Value Card
======================

[](#nova-single-value-card)

A Laravel Nova card that displays a single value.

[![Nova Single Value Cards](screenshot.png)](screenshot.png)

I really like to use Trend Metric Card from Laravel Nova to get a quick overview. But sometimes I want to have values in the cards that can't be represented by the standard trends. Of course there are already some card packages that show e.g. the total records in a card. The reason why I made this small package anyway is because I want to show all values and don't want to have a separate package for each case. If I want to display the total records I can simply pass `Model::count()` and that's it. And then everything is kept in the same style and does not mix.

And yes, I'm considering doing the same thing for the trends and just passing the class in the constructor.

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- Nova 4

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

[](#installation)

```
composer require hapheus/nova-single-value-card
```

Usage
-----

[](#usage)

```
namespace App\Nova\Dashboards;

use App\Nova\Metrics\LocationsPerDay;
use Hapheus\NovaSingleValueCard\NovaSingleValueCard;
use Illuminate\Support\Facades\App;
use Laravel\Nova\Dashboards\Main as Dashboard;

class Main extends Dashboard
{
    public function cards()
    {
        return [
            new NovaSingleValueCard('Environment', config('app.env')),
            new NovaSingleValueCard('Queue Size (default)', App::make('queue.connection')->size('default')),
            new LocationsPerDay,
        ];
    }
}
```

WIP
---

[](#wip)

- Implementation of simple colors for the text and the background

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8269a9d58e5db09f0b85194b7dce129678b32bd77bb41bdc1f102ba4f68148c4?d=identicon)[hapheus](/maintainers/hapheus)

---

Top Contributors

[![hapheus](https://avatars.githubusercontent.com/u/837072?v=4)](https://github.com/hapheus "hapheus (4 commits)")

### Embed Badge

![Health badge](/badges/hapheus-nova-single-value-card/health.svg)

```
[![Health](https://phpackages.com/badges/hapheus-nova-single-value-card/health.svg)](https://phpackages.com/packages/hapheus-nova-single-value-card)
```

###  Alternatives

[elements/process-manager-bundle

The Process Manager allows you to manage (define,execute...) arbitrary processes/commands in the Pimcore backend.

49633.0k5](/packages/elements-process-manager-bundle)

PHPackages © 2026

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