in2code/fetchurl
Composer 安装命令:
composer require in2code/fetchurl
包简介
Fetch an url and show the content in a TYPO3 Frontend.
README 文档
README
Purpose
The task of this extension is to fetch an URL from the internet and display it on a website.
Features
- The fetched URLs can be display inline or as an iframe.
- If the URLs is displayed in an iframe, it is possible to activate an "IFrame-Switch" to ensure privacy
Installation
via composer
composer require in2code/fetchurl
via the TYPO3 Extension Manager
- go to the TYPO3 Module "Admin Tools" => "Extensions"
- search for "fetchurl"
- import and activate the extension
or
- download the extension from https://extensions.typo3.org/extension/fetchurl
- go to the TYPO3 Module "Admin Tools" => "Extensions"
- upload the extension (if it's already installed, set the checkmark for "overwrite")
- activate the extension
Contribution
Contributions are always welcome.
In order to ease the contributions, we provide a ddev setup.
- install ddev
- fork and clone project
cd my/projectddev startddev initialize- open https://fetchurl.ddev.site/typo3/
- use
adminandpasswordfor backend login
Happy coding
Configuration
Templating
Copy the folder contents from EXT:fetchurl/Resources/Private/Templates/ to any location and set the new path via TypoScript setup:
plugin.tx_fetchurl {
view {
templateRootPaths.1 = EXT:myextension/Resources/Private/Templates/Fetchurl/
}
}
Activate Features
Activate the iframe switch and link to your privacy page
plugin.tx_fetchurl_pi1 {
settings {
useIframeSwitch = 1 // <- default is "1"
pidPrivacy = 8945 // replace with your own pid
}
}
Append additional parameters
It is possible to attach additional parameters to all requests of EXT:fetchurl.
This is done with the TypoScript keys "additionalParameter.static" and "additionalParameter.iframe".
Existing parameters and the original fragment are kept.
plugin.tx_fetchurl_pi1 {
settings {
additionalParameter {
static {
# a static value
foo = bar
# value with TypoScript stdWrap
foo2 = TEXT
foo2.value = bar2
}
iframe {
# a static value
foo = bar
# value with TypoScript stdWrap
foo2 = TEXT
foo2.value = bar2
}
}
}
}
Note: If a parameter is specified in the url and also set by TypoScript, the value in the original url is overwritten and the value from TypoScript is used.
See the example below (for parameterName=parameterValue):
Events
| Signal class name | Event name | information |
|---|---|---|
| \In2code\Fetchurl\Domain\Service\FetchService | AfterUrlBuildEvent | after the protocol and additional parameter are added |
| \In2code\Fetchurl\Domain\Service\FetchService | AfterHtmlFetchEvent | after the content fetched |
| \In2code\Fetchurl\Domain\Service\IframeService | AfterUrlBuildEvent | after the protocol and additional parameter are added |
Screenshots
Plugin for editors in backend:

Example for a privacy save 2-click-solution:

Changelog
| Version | Date | State | Description |
|---|---|---|---|
| 6.1.1 | 2026-06-02 | Docs | Update changelog |
| 6.1.0 | 2026-06-02 | Task | Add local ddev development enviroment |
| 6.0.1 | 2025-07-09 | Bugfix | Migrate update wizards to service tags |
| 6.0.0 | 2025-02-17 | Feature | Support TYPO3 13 / 12 and drop 11 support |
| 5.0.3 | 2023-11-26 | Bugfix | Tiny bugfix |
| 5.0.2 | 2023-11-25 | Bugfix | Fix GH action for TER release |
| 5.0.1 | 2023-11-25 | Bugfix | two tiny bugfixes |
| 5.0.0 | 2023-07-07 | Feature | TYPO3 V12 compatibility, switchable controller actions to CTypes, upgrade wizards added, replaced signals with events |
| 4.5.2 | 2021-03-17 | Bugfix | Add extension key to composer.json, small development updates |
| 4.5.1 | 2021-03-05 | Bugfix | Adjust composer.json |
| 4.5.0 | 2021-03-05 | Feature | Support TYPO3 11 |
| 4.4.2 | 2021-03-04 | Task | First TER release by @in2code-de |
| 4.4.1 | 2021-02-22 | Bugfix | Allow urls starting with "//" |
| 4.4.0 | 2020-08-19 | Task | Don't add empty values to additionalparameters |
| 4.3.0 | 2020-08-18 | Feature | Allow typoscript stdwrap for additionalparameters |
| 4.2.0 | 2020-08-13 | Feature | Add typoscript option to add additional parameter to the flexform url, add "afterUrlBuild" signals |
| 4.1.1 | 2020-08-13 | Bugfix | Replace signalSlogDispatcher phpDoc injection with method injection |
| 4.1.0 | 2020-04-24 | Feature | Declare extension compatible with TYPO3 V10 |
| 4.0.2 | 2020-03-10 | Bugfix | Remove sandbox-attribute of the iframe |
| 4.0.1 | 2020-03-02 | Bugfix | Fix small typo in template file |
| 4.0.0 | 2020-02-27 | Feature | Add a 2-click solution for iframes |
| 3.5.0 | 2019-07-29 | Task | Use subtree split in composer for TYPO3 core |
| 3.4.0 | 2017-02-18 | !!!Task | Small refactoring, allow url without protocol |
| 3.3.1 | 2017-02-16 | Bugfix | Show additional fields if plugin mode == iframe |
| 3.3.0 | 2017-02-01 | Feature | Set iFrame width and scrollbars in FlexForm |
| 3.2.0 | 2017-02-01 | Feature | Set iFrame height in FlexForm |
| 3.1.0 | 2016-12-22 | Task | Remove refactor ext_tables.php for T3 8.5 and newer |
| 3.0.2 | 2016-12-02 | Bugfix | Remove version from composer.json |
| 3.0.1 | 2016-12-02 | Bugfix | Hide not needed tt_content fields |
| 3.0.0 | 2016-11-28 | Task | Add iframe feature |
| 2.0.0 | 2016-05-23 | Initial | Initial release of the fork of typo3-ter/fetch-url |
in2code/fetchurl 适用场景与选型建议
in2code/fetchurl 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 23.63k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2017 年 03 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「iframe」 「typo3」 「fetch」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 in2code/fetchurl 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 in2code/fetchurl 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 in2code/fetchurl 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP class to access an IMAP mailbox. Specifically uses the Laminas library and not the IMAP extension.
CakePHP ORM plugin for fetching entities from cache
iFrames for Neos CMS
A field type to embed video for Craft CMS
Asynchronous HTTP client with promises.
Set Links with a specific language parameter
统计信息
- 总下载量: 23.63k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2017-03-17
