oliverkroener/ok-cookiebot
Composer 安装命令:
composer require oliverkroener/ok-cookiebot
包简介
Provides a backend module to manage privacy cookie consent scripts for Cookiebot.
关键字:
README 文档
README
TYPO3 extension that provides a backend module to manage Cookiebot cookie consent banner and declaration scripts per site.
Features
- Backend module under the "Web" section with page tree navigation for managing Cookiebot scripts per site
- Two script fields: banner script (rendered in
<head>) and declaration script (rendered before</body>) - Per-site configuration: scripts are stored per site root in
sys_templaterecords - Automatic frontend rendering via TypoScript
USERobjects (lib.cookiebotHeadScript/lib.cookiebotBodyScript) - Multi-language backend: English and German translations
- Custom SVG icon for the backend module
Requirements
- TYPO3 12.4 LTS, 13.4 LTS, or 14.x
- PHP (no explicit constraint — follows TYPO3 core requirements)
Installation
Composer
composer require oliverkroener/ok-cookiebot
Local path repository
Add to your root composer.json:
{
"repositories": [
{
"type": "path",
"url": "packages/ok_cookiebot"
}
]
}
Then run:
composer require oliverkroener/ok-cookiebot:@dev
Activate
After installation, include the static TypoScript template [kroener.DIGITAL] Cookiebot in your site's template record.
Configuration
TypoScript
Include the static template to enable automatic frontend script rendering. The extension registers two TypoScript objects:
| Object | Placement | Description |
|---|---|---|
lib.cookiebotHeadScript |
page.headerData.261487170 |
Renders the banner script in <head> |
lib.cookiebotBodyScript |
page.footerData.261487170 |
Renders the declaration script before </body> |
Backend Module
- Navigate to Web > Cookiebot in the TYPO3 backend
- Select a page within a site that has a root template
- Paste the Cookiebot banner script (for
<head>) and declaration script (for<body>) - Click Save
Scripts are stored in the sys_template record of the site root page via custom fields tx_ok_cookiebot_banner_script and tx_ok_cookiebot_declaration_script.
Architecture
ok_cookiebot/
├── Classes/
│ ├── Controller/Backend/
│ │ └── ConsentController.php # Backend module controller (index + save)
│ └── Rendering/
│ └── CookiebotScriptRenderer.php # Frontend TypoScript USER renderer
├── Configuration/
│ ├── Backend/Modules.php # Backend module registration
│ ├── Icons.php # SVG icon registration
│ ├── Services.yaml # DI autowiring
│ ├── TCA/Overrides/sys_template.php # Static TypoScript file registration
│ └── TypoScript/setup.typoscript # Frontend script rendering setup
├── Resources/
│ ├── Private/
│ │ ├── Language/ # XLIFF translations (en, de)
│ │ └── Templates/Backend/ # Fluid backend templates
│ └── Public/
│ ├── Css/ # Backend module stylesheets
│ ├── Icons/ # Extension & module icons
│ └── JavaScript/ # Backend module JavaScript
└── ext_localconf.php # TypoScript setup import
License
GPL-2.0-or-later
Author
Oliver Kroener — oliver-kroener.de — ok@oliver-kroener.de
oliverkroener/ok-cookiebot 适用场景与选型建议
oliverkroener/ok-cookiebot 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 09 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「typo3」 「privacy」 「cookie-consent」 「gdpr」 「cookiebot」 「typo3-extension」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 oliverkroener/ok-cookiebot 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 oliverkroener/ok-cookiebot 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 oliverkroener/ok-cookiebot 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Make TYPO3 more compatible to GDPR
Set Links with a specific language parameter
A simple cookie consent module for magento. It relies on new GTM consent functionality.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
Cookie consent for Laravel
Make your Laravel app comply with the crazy EU cookie law
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2024-09-24