neodev3 / yii2-iframe-viewer
This will render website in iframe and auto resize according to the content.
Package info
github.com/neodev3/yii2-iframe-viewer
Type:yii2-extension
pkg:composer/neodev3/yii2-iframe-viewer
v1.0
2021-02-07 10:35 UTC
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2026-03-07 21:45:56 UTC
README
This will render website in iframe and auto resize according to the content.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist neodev3/yii2-iframe-viewer "*"
or add
"neodev3/yii2-iframe-viewer": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
use neo\iframeviewer\IframeWidget; <?= IframeWidget::widget([ 'options' => [ 'src' => 'http://127.0.0.1/your-website/survey/default/link?id=14&isIframe=1' ], ]); ?>```