shapecode / cookie-consent-bundle
此包已被放弃且不再维护。未建议替代包。
Symfony Bundle 用于 Cookie Consent 插件。
1.2.0
2020-10-16 23:21 UTC
Requires
- php: ~7.4
- symfony/config: ~4.4|~5.0
- symfony/dependency-injection: ~4.4|~5.0
- symfony/framework-bundle: ~4.4|~5.0
- symfony/http-kernel: ~4.4|~5.0
- symfony/translation: ~4.4|~5.0
- symfony/twig-bundle: ~4.4|~5.0
- twig/twig: ~2.0|~3.0
Requires (Dev)
- doctrine/coding-standard: ^8.1
- icanhazstring/composer-unused: ~0.7
- maglnet/composer-require-checker: ^2.0
- phpstan/phpstan: ~0.12
- phpstan/phpstan-deprecation-rules: ~0.12
- phpstan/phpstan-phpunit: ~0.12
- phpstan/phpstan-strict-rules: ~0.12
- phpunit/phpunit: ^9.4
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2022-09-30 15:40:59 UTC
README
Symfony Bundle 用于流行的 Cookie Consent 插件。
安装
通过 Composer
$ composer require shapecode/cookie-consent-bundle
在您的内核中启用此包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Shapecode\Bundle\CookieConsentBundle\ShapecodeCookieConsentBundle(), ); }
使用方法
配置此包
shapecode_cookie_consent: // url to your privacy policy policy_url: http://example.com/privacy // default layout options layout: position: top static: false theme: edgeless palette: popup: background: #252e39 text: #ffffff button: background: #14a7d0 text: #ffffff
注意:翻译位于 ShapecodeCookieConsent.de
域。
在您的 Twig 模板中使用 cookie_consent
方法:{{ cookie_consent() }}
许可
MIT 许可证 (MIT)。有关更多信息,请参阅 许可文件。