tomkyle/dsgvo-twig
Composer 安装命令:
composer require tomkyle/dsgvo-twig
包简介
German DSGVO (GDPR) Twig templates
README 文档
README
The Goal
This templates collection shall provide you ready-to-use snippets which only need context variables to be filled in. Any user feel invited to contribute!
Use at own risk
As “best practices” have not evolved yet, the texts provided here can not be considered “legally bullet-proof”. In any case, stay in touch with your Data Protection Officer.
DSGVO Readings
Jens Kubieziel's DSGVO-Liste on GitHub
„Informationsquellen und weitere Ressourcen zur Datenschutz-Grundverordnung“
Lukas Leitsch's DSGVO-Checkliste on GitHub
„Eine Übersicht für Website-Betreiber“
Installation
Whilst templates are not PHP, Composer makes it easy to download the templates somewhere and update automatically. Feel free to propose an handsome alternative, opening a new issue: issues list.
$ composer require tomkyle/dsgvo-twig
To obtain the stable release one day, use this:
$ composer require tomkyle/dsgvo-twig:">0.2|^1.0"
Usage
First add vendor/tomkyle/dsgvo-twig/templatesto Twig's template paths. Make sure to append the templates directory to make sure you can override the default template with a customized copy in your primary (app) templates directory.
See Twig's documentation on File system loaders.
<?php // The path where Composer installs this package $dsgvo_templates_path = 'vendor/tomkyle/dsgvo-twig/templates'; // Instantiate Loader $loader = new Twig_Loader_Filesystem([ 'my_templates', $dsgvo_templates_path ]); // Alternatively, add DSGVO templates after instantiation $loader = ... $loader->addPath( $dsgvo_templates_path );
Available Templates
Jump directly to:
- Intro text
- Responsible organisation
- Data Protection Officer
- Security with SSL/HTTPS
- Google ReCAPTCHA
- Webfonts via Typekit
- Videos via YouTube
- Subject to change
dsgvo.intro.twig
Some basic introductory text for the top of your privacy terms page.
<?php echo $twig->render('dsgvo.intro.twig', [ 'company' => 'The ACME Company', // optional 'company_shortname' => 'ACME' ]);
dsgvo.responsible.twig
Information about the responsible organisation for your website.
<?php echo $twig->render('dsgvo.resonsible.twig', [ 'website_name' => 'www.test.com', 'email' => 'info@test.com', // optional: 'company' => 'MUSTER-Firma GmbH', 'address' => 'Musterstrasse 5', 'zip' => '99999', 'city' => 'Musterstadt', 'phone' => '+4940123456789', 'title' => 'Verantwortlicher und Geltungsbereich', 'website_realm' => 'das Internetangebot', 'law_name' => 'EU-Datenschutz-Grundverordnung', 'law_shortname' => 'DSGVO', 'company_shortname' => 'MUSTER', 'region' => 'Schleswig-Holstein', 'country' => 'Deutschland', 'phone_display' => '+49 (040) 12345678-9', 'fax_display' => '+49 (040) 12345678-1' ]);
dsgvo.dpo.twig
Information about the DPO (Data Processing Officer) for your organisation.
<?php echo $twig->render('dsgvo.dpo.twig', [ 'external' => true, 'name' => 'John Doe', 'address' => 'Musterstrasse 5', 'zip' => '99999', 'city' => 'Musterstadt', 'phone' => '+4940123456789', 'email' => 'privacy@test.com', // optional: 'jobtitle' => 'Zertifiziert als Datenschutzbeauftragter', 'company' => 'The External DPO Comp.', 'region' => 'Schleswig-Holstein', 'country' => 'Deutschland', 'phone_display' => '+49 (040) 12345678-9', 'fax_display' => '+49 (040) 12345678-1' ]);
dsgvo.rights.twig
Information about the user's privacy rights
<?php echo $twig->render('dsgvo.rights.twig');
dsgvo.contact.twig
Information about how to contact your company (via email and/or contact form)
<?php echo $twig->render('dsgvo.contact.twig', [ 'contactform' => true ]);
dsgvo.https.twig
Information about SSL/HTTPS transportation.
<?php echo $twig->render('dsgvo.https.twig');
dsgvo.cookies.twig
Information about using cookies and how to avoid them.
<?php echo $twig->render('dsgvo.cookies.twig');
dsgvo.links.twig
External links disclaimer
<?php echo $twig->render('dsgvo.links.twig');
dsgvo.google-recaptcha.twig
Information about Google ReCAPTCHA
<?php echo $twig->render('dsgvo.google-recaptcha.twig', [ // optional: 'google_policy_url' => 'https://www.google.de/intl/de/policies/privacy/', 'legal_basis' => 'Art. 6 Abs. 1 lit. b,c DSGVO' ]);
dsgvo.webfonts-typekit.twig
Information about webfonts used on your site.
<?php echo $twig->render('dsgvo.webfonts-typekit.twig', [ // optional: 'typekit_policy_url' => 'https://www.adobe.com/de/privacy/policies/typekit.html', 'typekit_url' => 'https://typekit.com', 'legal_basis' => 'Art. 6 Abs. 1 lit. f DSGVO' ]);
dsgvo.videos-youtube.twig
Information about using cookieless YouTube.
<?php echo $twig->render('dsgvo.videos-youtube.twig', [ // optional: 'google_policy_url' => 'https://www.google.de/intl/de/policies/privacy/' ]);
dsgvo.changes.twig
Information about what is called „Änderungsvorbehalt“ in German.
<?php echo $twig->render('dsgvo.changes.twig');
Contributions welcome!
Any contribution and proposal with this is highly appreciated. Stay up to-date on issues list. Also checkout the Wishlist.
Development
$ git clone git@github.com:tomkyle/dsgvo-twig.git
$ cd dsgvo-twig
$ composer install
Unlicense
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to http://unlicense.org
tomkyle/dsgvo-twig 适用场景与选型建议
tomkyle/dsgvo-twig 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 92 次下载、GitHub Stars 达 1, 最近一次更新时间为 2018 年 05 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 tomkyle/dsgvo-twig 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tomkyle/dsgvo-twig 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 92
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unlicense
- 更新时间: 2018-05-25