tsubasarcs/laravel-privacier
Composer 安装命令:
composer require tsubasarcs/laravel-privacier
包简介
Taiwan privacy policy record.
README 文档
README
This package provides to record user assent privacy policy date with Laravel
Installation
Install by composer
$ composer require tsubasarcs/laravel-privacier
Registing Service Provider and Aliases
If you are using laravel 5.5 or above, you can use auto discover also, you don't need put in service provider to app.php.
<?php //app.php 'providers' => [ \Tsubasarcs\Privacier\Providers\PrivacyServiceProvider::class, ], 'aliases' => [ 'Privacier' => \Tsubasarcs\Privacier\Facades\Privacier::class, ],
Run the following on your terminal to publish the migrations:
$ php artisan vendor:publish --provider="Tsubasarcs\Privacier\Providers\PrivacyServiceProvider" --tag="migrations"
If you want to change some parameter, you can run the following on your terminal to publish the config:
$ php artisan vendor:publish --provider="Tsubasarcs\Privacier\Providers\PrivacyServiceProvider" --tag="config"
Usage
Laravel-privacier provides two routes for store user confirm Privacy Policy and set privacy cookie for guest after confirm Privacy Policy.
route('privacy.store') // /privacy/store route('privacy.set_cookie') // /privacy/set_cookie
Use Facade Privacier
Privacier::updateOrCreate(string $attribute_key, array $values); //return model Privacier::existUid($uid); //return bool Privacier::exists($attribute); //return bool
License
Laravel-privacier is open-sourced software licensed under the MIT license.
tsubasarcs/laravel-privacier 适用场景与选型建议
tsubasarcs/laravel-privacier 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 769 次下载、GitHub Stars 达 1, 最近一次更新时间为 2018 年 12 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「privacy」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 tsubasarcs/laravel-privacier 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tsubasarcs/laravel-privacier 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 tsubasarcs/laravel-privacier 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Make TYPO3 more compatible to GDPR
Strips potentially identifying information from outbound requests to the WordPress.org API
Use Klaro! Consent Manager in Contao CMS
This bundle contains functionality concerning privacy and the European Union's "General Data Protection Regulation" (GDPR, in German: "Datenschutz-Grundverordnung", DSGVO).
Symfony 8 bundle for GDPR/DSGVO cookie consent with Google Consent Mode v2, Twig components, Stimulus.js, and AssetMapper. Supports cookie, Doctrine, or combined storage. Includes YouTube, Vimeo, Google Maps embed components.
Alfabank REST API integration
统计信息
- 总下载量: 769
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-21