PHPackages                             metrixinfo/nova-iframe - 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. metrixinfo/nova-iframe

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

metrixinfo/nova-iframe
======================

A Laravel Nova iFrame field.

v4.0.1(4y ago)7358.4k—4.9%2MITPHPPHP ^7.3|^8.0

Since Jan 19Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (5)Used By (0)

Laravel Nova iFrame Field
=========================

[](#laravel-nova-iframe-field)

This Laravel Nova field enables you to display HTML in an iFrame so it does not affect any of the other HTML on the page. It is only visible on the Details view.

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

[](#installation)

Install the package into a Laravel app that uses [Nova](https://nova.laravel.com) with Composer:

```
composer require metrixinfo/nova-iframe:^4.0
```

Nova VersioniFrame VersionNova 3^1.0Nova 4^4.0Usage
-----

[](#usage)

Add the field to your resource in the `fields` method:

```
use Metrixinfo\Nova\Fields\Iframe\Iframe;
...
...
Iframe::make('HTML Content','html_content'),
```

If you are only storing a URL and would like that previewed in the iFrame, you can use a closure to retrieve the HTML. This also helps getting around iframe security issues such as http content being called from https. You can use file\_get\_contents, curl, GuzzleHttp etc. to retrieve the HTML content.

```
use Metrixinfo\Nova\Fields\Iframe;
...
...
Iframe::make('HTML Content', function (){
    return \file_get_contents('https://www.google.com/');
}),
```

Options
-------

[](#options)

### Size

[](#size)

You may pass in the size of the iframe. Values can be numeric or string.

```
use Metrixinfo\Nova\Fields\Iframe\Iframe;
...
...
Iframe::make('HTML Content','html_content')->size('100%', 600),
```

### Style

[](#style)

You may pass CSS styles to the iframe.

```
use Metrixinfo\Nova\Fields\Iframe\Iframe;
...
...
Iframe::make('HTML Content','html_content')->style('border: 10px solid black;'),
```

### Classes

[](#classes)

You may pass in classes to the iframe.

```
use Metrixinfo\Nova\Fields\Iframe\Iframe;
...
...
Iframe::make('HTML Content','html_content')->classes('iframe-bordered iframe-large'),
```

### Options may be chained

[](#options-may-be-chained)

ie:

```
use Metrixinfo\Nova\Fields\Iframe\Iframe;
...
...
Iframe::make('HTML Content','html_content')
    ->style('border: 10px solid black;')
    ->size('100%', 600)
    ->classes('iframe-bordered iframe-large'),
```

Note: *Iframe will only be displayed on the Detail view*

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 70% 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 ~403 days

Total

4

Last Release

1466d ago

Major Versions

v1.0.2 → v4.0.02022-05-12

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

v4.0.0PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a25316a87583541e845e7320f45bbea2d07faf7f4d77e3a3ce75f090b3a05f2?d=identicon)[metrixinfo](/maintainers/metrixinfo)

---

Top Contributors

[![hfmikep](https://avatars.githubusercontent.com/u/29101053?v=4)](https://github.com/hfmikep "hfmikep (7 commits)")[![metrixinfo](https://avatars.githubusercontent.com/u/43896192?v=4)](https://github.com/metrixinfo "metrixinfo (3 commits)")

---

Tags

laravel-nova-fieldlaravelfieldnovaiframe

### Embed Badge

![Health badge](/badges/metrixinfo-nova-iframe/health.svg)

```
[![Health](https://phpackages.com/badges/metrixinfo-nova-iframe/health.svg)](https://phpackages.com/packages/metrixinfo-nova-iframe)
```

###  Alternatives

[timothyasp/nova-color-field

A Laravel Nova Color Picker field.

781.6M5](/packages/timothyasp-nova-color-field)[alexwenzel/nova-dependency-container

A Laravel Nova 4 form container for grouping fields that depend on other field values.

461.0M2](/packages/alexwenzel-nova-dependency-container)[simplesquid/nova-enum-field

A Laravel Nova field to add enums to resources.

52391.9k2](/packages/simplesquid-nova-enum-field)[outhebox/nova-hidden-field

A Laravel Nova Hidden field.

33562.2k1](/packages/outhebox-nova-hidden-field)[sietse85/nova-button

(Nova 4+) A Laravel Nova package for adding buttons to your resources.

37347.3k](/packages/sietse85-nova-button)[nikaia/nova-rating-field

Add start rating field to Laravel Nova

42258.6k](/packages/nikaia-nova-rating-field)

PHPackages © 2026

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