PHPackages                             pdmfc/nova-info-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. pdmfc/nova-info-card

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

pdmfc/nova-info-card
====================

A Laravel Nova info card.

v1.0.1(6y ago)14103.0k↓43.8%7[2 issues](https://github.com/pdmfc/nova-info-card/issues)2MITVuePHP &gt;=7.1.0

Since Mar 24Pushed 6y ago3 watchersCompare

[ Source](https://github.com/pdmfc/nova-info-card)[ Packagist](https://packagist.org/packages/pdmfc/nova-info-card)[ Docs](https://github.com/pdmfc/nova-info-card)[ RSS](/packages/pdmfc-nova-info-card/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (8)Used By (2)

Nova Info Card
==============

[](#nova-info-card)

 [![hero image](images/hero.png)](images/hero.png)

 [![Total Downloads](https://camo.githubusercontent.com/9baa98479eac6b03b49c99f6da72c4699c1004421de5e07bb97b6073196fea0d/68747470733a2f2f706f7365722e707567782e6f72672f70646d66632f6e6f76612d696e666f2d636172642f642f746f74616c2e737667)](https://packagist.org/packages/pdmfc/nova-info-card) [![Latest Stable Version](https://camo.githubusercontent.com/c527810a4795ab55dc3733132d83a0cdde3c1e275c3eb5fc4eb0017cd0a35c99/68747470733a2f2f706f7365722e707567782e6f72672f70646d66632f6e6f76612d696e666f2d636172642f762f737461626c652e737667)](https://packagist.org/packages/pdmfc/nova-info-card) [![License](https://camo.githubusercontent.com/ade6f5025124ee6609f8e32d1f3638098ee17cf8fed6549c06993f316a060a65/68747470733a2f2f706f7365722e707567782e6f72672f70646d66632f6e6f76612d696e666f2d636172642f6c6963656e73652e737667)](https://packagist.org/packages/pdmfc/nova-info-card)

This package provides an easy-and-simple way to add notification cards to a Laravel Nova Resource.

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

[](#installation)

```
composer require pdmfc/nova-info-card
```

Usage
-----

[](#usage)

```
use Pdmfc\NovaCards\Info;

//...

public function cards()
{
    return [
        (new Info())
            ->info('Some info message')
    ];
}
```

### Themes

[](#themes)

This package comes with 4 predefined styles - *info*, *success*, *warning* and *danger*. To select a theme, just use the it as the method name.

If you need to generate a card theme dynamically, you can use the `message()` method which accepts two arguments - `$message` and `$level`.

```
->info($message)
->success($message)
->warning($message)
->danger($message)
->message($message, $level) // accepted values for $level: 'info', 'success' , 'warning', 'danger'
```

[![Example](images/basic_example.png)](images/basic_example.png)

---

### Defining a header

[](#defining-a-header)

You can also define a heading for the message using the `heading()` method:

```
(new Info())
    ->heading('Info heading')
    ->info('Some info message')
```

[![Heading screenshot](images/with_heading_example.png)](images/with_heading_example.png)

---

### Render Html

[](#render-html)

If you want to render your message as raw html the same way that Nova lets you in resource fields, just chain the `asHtml()` method:

```
(new Info())
    ->info('Be sure to like this package and give us your feedback in
    our repository!')
    ->asHtml(),
```

[![Rendering raw Html](images/raw_html_example.png)](images/raw_html_example.png)

---

How to contribute
-----------------

[](#how-to-contribute)

- clone the repo
- on `composer.json` of a laravel nova application add the following:

```
{
    //...

    "require" {
        "pdmfc/nova-info-card: "*"
    },

    //...
    "repositories": [
        {
            "type": "path",
            "url": "../path_to_your_package_folder"
        }
    ],
}

```

- run `composer update pdmfc/nova-info-card`

You're now ready to start contributing!

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~5 days

Total

7

Last Release

2213d ago

Major Versions

v0.1.4 → v1.02020-04-03

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravel-nova-cardnovalaravelpackagenova

### Embed Badge

![Health badge](/badges/pdmfc-nova-info-card/health.svg)

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

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[demency/nova-gridder

A Laravel Nova Package for resource details grids.

1615.1k](/packages/demency-nova-gridder)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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