robertvanlienden / useragreementsbundle
User agreements made simple
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 0
Open Issues: 2
Type:symfony-bundle
Requires
- php: ^8.1
- symfony/framework-bundle: ^6.4 || ^7.1
Requires (Dev)
- phpstan/phpstan: ^2.0
- phpstan/phpstan-doctrine: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^11
- symplify/easy-coding-standard: ^12.5
This package is auto-updated.
Last update: 2025-02-20 10:49:27 UTC
README
A bundle to make user agreements simple.
Configure agreements, make them simple available with 1 form type and save the accepted agreements in the database.
Configuration
Put this in your config/packages/user_agreements.yaml
user_agreements: agreements: - id: "checkbox_field_id" ## ID for checkbox field label: 'I agree with the terms and conditions' ## Label for the form field route_name: 'terms_conditions_page' ## Symfony route name to the agreement required: true ## Required agreement or optional version: '1.0' ##Optional
More options
Read the docs for all options.
Donations
Want to support me creating stuff like this? Consider donating with PayPal.