cors / web-care
CORS - WebCare Integration
2026.1.0
2026-07-31 09:27 UTC
Requires
- php: ~8.4.0 || ~8.5.0
- doctrine/orm: ^3.0
- pimcore/pimcore: ^2026.1
- pimcore/studio-backend-bundle: ^2026.1
- pimcore/studio-ui-bundle: ^2026.1
- symfony/dotenv: ^7.0
Requires (Dev)
- phpstan/phpstan: ^2.0
- phpstan/phpstan-symfony: ^2.0
- symfony/runtime: ^7.4
- symplify/easy-coding-standard: ^9.4
- vimeo/psalm: ^6.0
README
WebCare - DataReporter Pimcore Integration (https://www.cookiebanner.at/)
Installation
composer require cors/web-care bin/console pimcore:bundle:enable CORSWebCareBundle bin/console pimcore:bundle:install CORSWebCareBundle
Pimcore Studio (pimcore/studio-backend-bundle and pimcore/studio-ui-bundle) is a hard
requirement: the classic ExtJS admin UI no longer exists in Pimcore 2026, so this bundle ships a
Studio UI only.
Configuration
- Open Pimcore Studio
- Open System -> Webcare Settings
- Configure Client ID, Configuration ID and Website ID per Site or for your "Home" Site.
The menu entry is gated on the web_care_settings user permission, which the bundle installer
creates. Users without that permission neither see the entry nor may call the API.
Usage in Twig
This bundle provides several ways of integration. It comes with several twig functions:
- cors_webcare_config Load the corresponding instance of
CORS\Bundle\WebCareBundle\Entity\WebCareSitebased on the current site you are on. Returns null when no config is set. - cors_webcare_cookie_banner_css Gives you the full path to Webcare's banner.css file
- cors_webcare_cookie_banner_js Gives you the full path to Webcare's banner.js file
- cors_webcare_cookie_banner Renders the banner.css and banner.js directly
- cors_webcare_privacy_js Gives you the full path to Webcare's privacystatement.js file
- cors_webcare_privacy Renders the privacystatement.js directly
- cors_webcare_privacy_v2_js Gives you the full path to Webcare's privacystatement_v2.js file
- cors_webcare_privacy_v2 Renders the privacystatement_v2.js directly
- cors_webcare_imprint_js Gives you the full path to Webcare's imprint.js file
- cors_webcare_imprint Renders the cors_webcare_imprint_js.js directly
- cors_webcare_imprint_v2_js Gives you the full path to Webcare's imprint_v2.js file
- cors_webcare_imprint_v2: Renders the cors_webcare_imprint_v2.js directly
- cors_webcare_webdoc_v2_js: Gives you the full path to Webcare's webdoc_v2.js file
- cors_webcare_webdoc_v2: Renders the cors_webcare_webdoc_v2.js directly