PHPackages                             setwise/nova-html-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. setwise/nova-html-card

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

setwise/nova-html-card
======================

A Laravel Nova card to display arbitrary HTML content

v3.0.1(4y ago)115MITPHPPHP &gt;=8.0

Since Jun 29Pushed 4y agoCompare

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

READMEChangelogDependencies (4)Versions (12)Used By (0)

Nova HTML Card
==============

[](#nova-html-card)

[![Latest Stable Version](https://camo.githubusercontent.com/3f20c68bd44e548455fee88cb8b0049d522b84b902a26a2ceb6cd1690e3bf3d9/68747470733a2f2f706f7365722e707567782e6f72672f736574776973652f6e6f76612d68746d6c2d636172642f762f737461626c65)](https://packagist.org/packages/setwise/nova-html-card)[![Total Downloads](https://camo.githubusercontent.com/084f754fa7c9574dc2c84058edc7412cebb529299664125512b5f1a6e95c14b9/68747470733a2f2f706f7365722e707567782e6f72672f736574776973652f6e6f76612d68746d6c2d636172642f646f776e6c6f616473)](https://packagist.org/packages/setwise/nova-html-card)

[![image](https://user-images.githubusercontent.com/5278175/144929955-20b6d02f-3298-48bf-8780-e0fb3b723641.png)](https://user-images.githubusercontent.com/5278175/144929955-20b6d02f-3298-48bf-8780-e0fb3b723641.png)

Adds a card to the Laravel Nova dashboard with any arbitrary HTML content.

[![image](https://user-images.githubusercontent.com/5278175/60386958-35899080-9aa5-11e9-8e1f-b29e95c80d2c.png)](https://user-images.githubusercontent.com/5278175/60386958-35899080-9aa5-11e9-8e1f-b29e95c80d2c.png)

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

[](#installation)

You can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```
composer require setwise/nova-html-card
```

Usage
-----

[](#usage)

[Register your new card](https://nova.laravel.com/docs/2.0/customization/cards.html#registering-cards).

```
use Setwise\HtmlCard\HtmlCard;

public function cards()
{
    return [
        (new HtmlCard())->width('1/3')->html('Hello World!'),
        (new HtmlCard())->width('1/3')->markdown('# Hello World!'),
        (new HtmlCard())->width('1/3')->view('cards.hello', ['name' => 'World']),
     ];
}
```

### Options

[](#options)

- Set content
    - `->html('Hello!')`: Set HTML or plain content.
    - `->markdown('# Hello!')`: Set Markdown content that will be converted into HTML.
    - `->view('path.to.view', [])`: Specify blade view file and optionally pass an array of data to view.
- Styling
    - `->center(false)`: Center card's content. `false` by default.
    - `->withoutCardStyles(true)`: Whether to use standard Nova Card styles for a card (background, padding, etc). `false` by default.
    - `->forceFullWidth(true)`: Force the card to be full width. A fix for [nova cards order](https://github.com/laravel/nova-issues/issues/1895).

Why this package?
-----------------

[](#why-this-package)

There are a few packages with similar functionality. Our package provides an API to cover all cases covered by these packages plus additionally provides some unique features like:

- markdown support
- easy switch between class Nova-card look and raw-HTML look
- Simple, Laravel-like API

Changelog
---------

[](#changelog)

Please see [Releases](https://github.com/Setwise/nova-html-card/releases) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

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

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 77.1% 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 ~101 days

Recently: every ~31 days

Total

11

Last Release

1502d ago

Major Versions

1.3.1 → 2.0.02021-12-06

2.0.0 → v3.0.02022-04-07

PHP version history (2 changes)1.1PHP &gt;=7.1.0

1.3.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5550d44b760d15010f6c533fa8544a7b55b779d7c141c11fc2f82b87b5b2117b?d=identicon)[setwise](/maintainers/setwise)

---

Top Contributors

[![alies-dev](https://avatars.githubusercontent.com/u/5278175?v=4)](https://github.com/alies-dev "alies-dev (27 commits)")[![davidldear](https://avatars.githubusercontent.com/u/729592?v=4)](https://github.com/davidldear "davidldear (4 commits)")[![lptn](https://avatars.githubusercontent.com/u/150333538?v=4)](https://github.com/lptn "lptn (3 commits)")[![timciep](https://avatars.githubusercontent.com/u/2245341?v=4)](https://github.com/timciep "timciep (1 commits)")

---

Tags

laravelhtmlmarkdowntextcardnova

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/setwise-nova-html-card/health.svg)

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

###  Alternatives

[interaction-design-foundation/nova-html-card

A Laravel Nova card to display arbitrary HTML content

67731.2k3](/packages/interaction-design-foundation-nova-html-card)[texy/texy

Texy converts plain text in easy to read Texy syntax into structurally valid (X)HTML. It supports adding of images, links, nested lists, tables and has full support for CSS. Texy supports hyphenation of long words (which reflects language rules), clickable emails and URL (emails are obfuscated against spambots), national typographic single and double quotation marks, ellipses, em dashes, dimension sign, nonbreakable spaces (e.g. in phone numbers), acronyms, arrows and many others. Texy code can optionally contain HTML tags.

161838.9k15](/packages/texy-texy)[dniccum/nova-documentation

A Laravel Nova tool that allows you to add markdown-based documentation to your administrator's dashboard.

37116.4k](/packages/dniccum-nova-documentation)[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)[stepanenko3/nova-json

Nova json field to spread a json column throughout multiple fields.

42249.7k](/packages/stepanenko3-nova-json)[cartalyst/interpret

A driver-based content rendering package, with support for HTML, Markdown &amp; plain text. You can register custom drivers for custom content types.

1914.7k](/packages/cartalyst-interpret)

PHPackages © 2026

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