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)7381.3k↓19.5%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 2d 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 86% 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

1511d 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.

771.7M6](/packages/timothyasp-nova-color-field)[inspheric/nova-defaultable

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

52178.7k1](/packages/inspheric-nova-defaultable)[optimistdigital/nova-notes-field

This Laravel Nova package adds a notes field to Nova's arsenal of fields.

52145.0k](/packages/optimistdigital-nova-notes-field)[outl1ne/nova-color-field

A Laravel Nova Color Picker field.

26263.8k](/packages/outl1ne-nova-color-field)[wemersonrv/input-mask

A Laravel Nova custom field text with masks on input

1198.4k](/packages/wemersonrv-input-mask)[optimistdigital/nova-inline-text-field

A Laravel Nova inline text field.

2322.8k](/packages/optimistdigital-nova-inline-text-field)

PHPackages © 2026

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