Download the PHP package letkode/form-options-bundle without Composer
On this page you can find all versions of the php package letkode/form-options-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download letkode/form-options-bundle
More information about letkode/form-options-bundle
Files in letkode/form-options-bundle
Download letkode/form-options-bundle
More information about letkode/form-options-bundle
Files in letkode/form-options-bundle
Vendor letkode
Package form-options-bundle
Short Description Attribute-driven form options registry and endpoint for Symfony applications
License MIT
Package form-options-bundle
Short Description Attribute-driven form options registry and endpoint for Symfony applications
License MIT
Please rate this library. Is it a good library?
Informations about the package form-options-bundle
letkode/form-options-bundle
Attribute-driven form options registry and endpoint for Symfony applications.
Allows any service to expose named option sets via a #[FormOption] PHP Attribute, which are then discoverable at runtime through a single REST endpoint.
Installation
Symfony Flex will register the bundle automatically. If not using Flex, add it manually:
Import the routes to expose the endpoint:
Usage
1. Mark a service as a provider
2. Fetch options via the API
How it works
LetkodeFormOptionsBundle::build()callsregisterAttributeForAutoconfiguration()so any service annotated with#[FormOption]is automatically tagged asletkode.form_options.provider.FormOptionRegistrycollects all tagged providers via#[AutowireIterator].FormOptionsControllerresolves provider + method by alias and returns the result as JSON.
Requirements
- PHP
^8.4 - Symfony
^7.0 || ^8.0
License
MIT — see LICENSE.
All versions of form-options-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.4
symfony/dependency-injection Version ^7.0 || ^8.0
symfony/framework-bundle Version ^7.0 || ^8.0
symfony/routing Version ^7.0 || ^8.0
symfony/dependency-injection Version ^7.0 || ^8.0
symfony/framework-bundle Version ^7.0 || ^8.0
symfony/routing Version ^7.0 || ^8.0
The package letkode/form-options-bundle contains the following files
Loading the files please wait ...