Download the PHP package tourze/user-agreement-bundle without Composer
On this page you can find all versions of the php package tourze/user-agreement-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tourze/user-agreement-bundle
More information about tourze/user-agreement-bundle
Files in tourze/user-agreement-bundle
Package user-agreement-bundle
Short Description 用户协议管理,支持协议签署、撤销等功能的 Symfony Bundle
License MIT
Informations about the package user-agreement-bundle
User Agreement Bundle
中文
A Symfony bundle for managing user agreements, protocols, and consent records. This bundle provides comprehensive functionality for handling user terms of service, privacy policies, and user account deletion requests in compliance with data protection regulations.
Table of Contents
- Features
- Installation
- Configuration
- Basic Configuration
- Database Setup
- Admin Interface
- Quick Start
- 1. Create Protocol Entities
- 2. Record User Agreement
- 3. Handle Deletion Requests
- Advanced Usage
- Custom Protocol Validation
- Event-Driven Architecture
- Service Integration
- Protocol Types
- Revocation Types
- JSON-RPC API
- Admin Interface
- Compliance Features
- Requirements
- Contributing
- License
Features
- Protocol Management: Create and manage different types of user agreements (registration, usage, privacy, marketing)
- Consent Tracking: Record and track user agreement to protocols with IP tracking
- Account Deletion: Handle user account deletion requests with different revocation types
- Admin Interface: EasyAdmin integration for backend management
- JSON-RPC API: Programmatic access to agreement functionality
- GDPR Compliance: Built-in support for data protection requirements
Installation
Add the bundle to your config/bundles.php:
Configuration
Basic Configuration
Create config/packages/user_agreement.yaml:
Database Setup
Run the migrations to create required database tables:
Admin Interface
Enable EasyAdmin integration in config/packages/easy_admin.yaml:
Quick Start
1. Create Protocol Entities
2. Record User Agreement
3. Handle Deletion Requests
Advanced Usage
Custom Protocol Validation
Event-Driven Architecture
Service Integration
Protocol Types
MEMBER_REGISTER: User registration agreementMEMBER_USAGE: User usage termsPRIVACY: Privacy policySALE_PUSH: Marketing communications consent
Revocation Types
All: Complete account deletionNO_NOTIFY: Keep profile but opt out of notificationsNOTIFY: Keep profile and allow notifications
JSON-RPC API
The bundle provides JSON-RPC procedures for external integration:
ApiAgreeSystemProtocol: Record user agreement to protocolsApiGetSystemProtocolContent: Retrieve protocol content
Admin Interface
Access the admin interface through EasyAdmin:
- Protocol management:
/admin/protocol - Agreement logs:
/admin/agree-log - Deletion requests:
/admin/revoke-request
Compliance Features
- IP Tracking: Automatically records IP addresses for audit trails
- Version Control: Protocol versioning for regulatory compliance
- Consent Records: Immutable logs of user agreements
- Data Retention: Proper handling of user data deletion requests
Requirements
- PHP 8.1+
- Symfony 6.4+
- Doctrine ORM 3.0+
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
The MIT License (MIT). Please see License File for more information.
All versions of user-agreement-bundle with dependencies
doctrine/dbal Version ^4.0
doctrine/doctrine-bundle Version ^2.13
doctrine/doctrine-fixtures-bundle Version ^4.0
doctrine/orm Version ^3.0
doctrine/persistence Version ^4.1
easycorp/easyadmin-bundle Version ^4
knplabs/knp-menu Version ^3.7
medz/gb-t-2260 Version ^2.0
monolog/monolog Version ^3.1
psr/log Version ^3|^2|^1
symfony/config Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/doctrine-bridge Version ^7.3
symfony/event-dispatcher Version ^7.3
symfony/event-dispatcher-contracts Version ^3
symfony/form Version ^7.3
symfony/http-kernel Version ^7.3
symfony/property-access Version ^7.3
symfony/security-bundle Version ^7.3
symfony/security-core Version ^7.3
symfony/security-http Version ^7.3
symfony/serializer Version ^7.3
tourze/arrayable Version 1.*
tourze/bundle-dependency Version 1.*
tourze/doctrine-indexed-bundle Version 1.0.*
tourze/doctrine-ip-bundle Version 1.1.*
tourze/doctrine-resolve-target-entity-bundle Version 1.*
tourze/doctrine-snowflake-bundle Version 1.1.*
tourze/doctrine-timestamp-bundle Version 1.1.*
tourze/doctrine-track-bundle Version 1.1.*
tourze/doctrine-upsert-bundle Version 1.0.*
tourze/doctrine-user-bundle Version 1.0.*
tourze/easy-admin-menu-bundle Version 1.0.*
tourze/enum-extra Version 1.0.*
tourze/json-rpc-core Version 1.0.*
tourze/json-rpc-lock-bundle Version 1.0.*
tourze/json-rpc-log-bundle Version 1.0.*
tourze/json-rpc-security-bundle Version 1.0.*
tourze/symfony-aop-async-bundle Version 1.0.*
tourze/symfony-dependency-service-loader Version 1.0.*
tourze/user-event-bundle Version 1.0.*
tourze/user-id-bundle Version 1.0.*
tourze/user-service-contracts Version 1.1.*