darkwebdesign/symfony-addon-pack

v7.1.0 2024-06-03 06:10 UTC

README

Latest Stable Version Total Downloads License

Build Status Coverage Status PHP Version Symfony Version

Symfony Add-on Pack is a collection of extra Symfony components that you can use in your Symfony applications.

Learn more about it in its documentation.

Features

Data Transformers

  • BooleanToValueTransformer, transforms between a boolean and a scalar value.
  • EntityToIdentifierTransformer, transforms between an identifier and a Doctrine entity.

Form Field Types

  • BirthdayType, handles birthday data.
  • BooleanType, transforms a user selected value into a boolean.
  • EntityType, transforms a user entered identifier into a Doctrine entity.
  • UnstructuredType, handles unstructured data.

Form Field Event Subscribers

  • BooleanToYesNoSubscriber, rewrites boolean values to "yes" or "no", to be used with the BooleanType.
  • JsonSchemaSubscriber, rewrites the JSON Schema $schema keyword property.

Validation Constraints

  • Bsn, validates that a value is a valid Dutch social security number (BSN).
  • Collection, validates that every item in a collection validates against one or more constraints.
  • Json, validates that a value is valid JSON.

License

Symfony Add-on Pack is licensed under the MIT License - see the LICENSE file for details.