Download the PHP package sonofwinter/binding-bundle without Composer
On this page you can find all versions of the php package sonofwinter/binding-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sonofwinter/binding-bundle
More information about sonofwinter/binding-bundle
Files in sonofwinter/binding-bundle
Download sonofwinter/binding-bundle
More information about sonofwinter/binding-bundle
Files in sonofwinter/binding-bundle
Vendor sonofwinter
Package binding-bundle
Short Description This Bundle provides a binding from array to Entity with Symfony
License MIT
Package binding-bundle
Short Description This Bundle provides a binding from array to Entity with Symfony
License MIT
Please rate this library. Is it a good library?
Informations about the package binding-bundle
BindingBundle
This bundle provides a binding mechanism from array to Entity with Symfony.
Requirements
- PHP 8.2 or higher
- Symfony 7.0 or higher
Installation
Open a command console, enter your project directory and execute:
Register the bundle in your config/bundles.php
file:
Configuration
Configure the bundle in your config/packages/sow_binding.yaml
file:
Usage
Define binding properties in your entity
Binding options
key
: The array value's key (required)setter
: Used if you want to use another setter method nametype
: Used for type checking. A BinderTypeException is thrown if the type doesn't matchmin
/max
: Check if the value is in the defined range (works with numbers, string length, and array count)nullable
: Defines if a null value can be set to the entity's property (default: false)
Use Binder service to bind an array to an entity
Advanced binding options
You can use include/exclude arrays to control which properties are bound:
$include
: A key array required in$params
. If one or more keys are missing, an exception is thrown$exclude
: A key array ignored in$params
. No exception is thrown if a key is present
Changelog
For version history and detailed changes, see the changelog directory.
All versions of binding-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
symfony/framework-bundle Version ^7.0
symfony/dependency-injection Version ^7.0
symfony/yaml Version ^7.0
doctrine/dbal Version ^3
doctrine/doctrine-bundle Version ^2.15
doctrine/doctrine-migrations-bundle Version ^3.4
doctrine/orm Version ^3.4
symfony/framework-bundle Version ^7.0
symfony/dependency-injection Version ^7.0
symfony/yaml Version ^7.0
doctrine/dbal Version ^3
doctrine/doctrine-bundle Version ^2.15
doctrine/doctrine-migrations-bundle Version ^3.4
doctrine/orm Version ^3.4
The package sonofwinter/binding-bundle contains the following files
Loading the files please wait ....