instride / opendxp-webcare
OpenDXP Integration of Datareporter's WebCare – a consent management solution
Package info
github.com/instride-ch/opendxp-webcare
Type:opendxp-bundle
pkg:composer/instride/opendxp-webcare
Requires
- php: >=8.3
- doctrine/orm: ^3.0
- open-dxp/opendxp: ^1.3
- symfony/form: ^7.4
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpstan/phpstan-doctrine: ^2.0
- roave/security-advisories: dev-latest
- symplify/easy-coding-standard: ^13
This package is auto-updated.
Last update: 2026-06-30 07:59:38 UTC
README
OpenDXP integration for Datareporter's WebCare — cookie banner, privacy statement, imprint and web documentation, configurable per site.
This bundle is an OpenDXP port of cors/web-care
by CORS GmbH.
Installation
composer require instride/opendxp-webcare bin/console opendxp:bundle:enable OpenDxpWebCareBundle bin/console opendxp:bundle:install OpenDxpWebCareBundle
Configuration
- In the OpenDXP admin, open Settings → Webcare Settings.
- Configure the Client ID, Configuration ID and Website ID per site (or for your "Home" site).
Usage in Twig
The bundle exposes several Twig functions:
| Function | Description |
|---|---|
webcare_config |
Returns the Instride\Bundle\OpenDxpWebCareBundle\Entity\WebCareSite for the current site, or null if none is configured. |
webcare_cookie_banner |
Renders the cookie banner (CSS + JS) directly. |
webcare_cookie_banner_css |
Full path to the banner .css file. |
webcare_cookie_banner_js |
Full path to the banner .js file. |
webcare_privacy |
Renders the privacy statement directly. |
webcare_privacy_js |
Full path to the privacy statement .js file. |
webcare_privacy_v2 |
Renders the privacy statement (v2) directly. |
webcare_privacy_v2_js |
Full path to the privacy statement (v2) .js file. |
webcare_imprint |
Renders the imprint directly. |
webcare_imprint_js |
Full path to the imprint .js file. |
webcare_imprint_v2 |
Renders the imprint (v2) directly. |
webcare_imprint_v2_js |
Full path to the imprint (v2) .js file. |
webcare_webdoc_v2 |
Renders the web documentation (v2) directly. |
webcare_webdoc_v2_js |
Full path to the web documentation (v2) .js file. |
Example — render the cookie banner in your layout:
{{ not editmode ? webcare_cookie_banner() }}
License
This bundle is available under the GNU General Public License version 3 (GPLv3).
See LICENSE.md. Copyright (c) CORS GmbH; modifications copyright (c) instride AG.
