Skip to content

A bundle to make user agreements like terms and conditions simple

License

Notifications You must be signed in to change notification settings

robertvanlienden/useragreementsbundle

Repository files navigation

Robert van Lienden - User Agreements Bundle

GitLab CI codecov

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.

About

A bundle to make user agreements like terms and conditions simple

Resources

License

Stars

Watchers

Forks