{"id":19606409,"url":"https://github.com/a2lix/autoformbundle","last_synced_at":"2026-02-26T18:42:12.312Z","repository":{"id":2548322,"uuid":"46814534","full_name":"a2lix/AutoFormBundle","owner":"a2lix","description":"Automate Symfony form building","archived":false,"fork":false,"pushed_at":"2024-07-15T07:25:53.000Z","size":74,"stargazers_count":83,"open_issues_count":9,"forks_count":31,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T18:15:48.350Z","etag":null,"topics":["bundle","php","symfony","symfony-bundle","symfony-form"],"latest_commit_sha":null,"homepage":"https://a2lix.fr/bundles/auto-form","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a2lix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-11-24T19:45:44.000Z","updated_at":"2024-07-16T12:06:20.000Z","dependencies_parsed_at":"2023-01-13T11:56:15.581Z","dependency_job_id":"ffacdb5e-461b-4766-8e48-953301247c4d","html_url":"https://github.com/a2lix/AutoFormBundle","commit_stats":{"total_commits":35,"total_committers":9,"mean_commits":3.888888888888889,"dds":0.2857142857142857,"last_synced_commit":"9f7ba8fdf7e8300f1a2b57119fc8c613849f85bc"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2lix%2FAutoFormBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2lix%2FAutoFormBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2lix%2FAutoFormBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2lix%2FAutoFormBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a2lix","download_url":"https://codeload.github.com/a2lix/AutoFormBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234923,"owners_count":20905854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bundle","php","symfony","symfony-bundle","symfony-form"],"created_at":"2024-11-11T10:05:22.956Z","updated_at":"2026-02-26T18:42:12.244Z","avatar_url":"https://github.com/a2lix.png","language":"PHP","readme":"# A2lix Auto Form Bundle\n\nAutomate form building.\n\n[![Latest Stable Version](https://poser.pugx.org/a2lix/auto-form-bundle/v/stable)](https://packagist.org/packages/a2lix/auto-form-bundle)\n[![Latest Unstable Version](https://poser.pugx.org/a2lix/auto-form-bundle/v/unstable)](https://packagist.org/packages/a2lix/auto-form-bundle)\n[![License](https://poser.pugx.org/a2lix/auto-form-bundle/license)](https://packagist.org/packages/a2lix/auto-form-bundle)\n\n[![Total Downloads](https://poser.pugx.org/a2lix/auto-form-bundle/downloads)](https://packagist.org/packages/a2lix/auto-form-bundle)\n[![Monthly Downloads](https://poser.pugx.org/a2lix/auto-form-bundle/d/monthly)](https://packagist.org/packages/a2lix/auto-form-bundle)\n[![Daily Downloads](https://poser.pugx.org/a2lix/auto-form-bundle/d/daily)](https://packagist.org/packages/a2lix/auto-form-bundle)\n\n| Branch | Tools |\n| --- | --- |\n| master | [![Build Status][ci_badge]][ci_link] [![Coverage Status][coverage_badge]][coverage_link] |\n\n## Installation\n\nUse composer:\n\n```bash\ncomposer require a2lix/auto-form-bundle\n```\n\nAfter the successful installation, add/check the bundle registration:\n\n```php\n//  bundles.php is automatically updated if flex is installed.\n// ...\nA2lix\\AutoFormBundle\\A2lixAutoFormBundle::class =\u003e ['all' =\u003e true],\n// ...\n```\n\n## Configuration\n\nThere is no minimal configuration, so this part is optional. Full list:\n\n```yaml\n# Create a dedicated a2lix.yaml in config/packages with:\n\na2lix_auto_form:\n    excluded_fields: [id, locale, translatable]       # [1]\n```\n\n1. Optional.\n\n## Usage\n\n### In a classic formType\n\n```php\nuse A2lix\\AutoFormBundle\\Form\\Type\\AutoFormType;\n...\n$builder-\u003eadd('medias', AutoFormType::class);\n```\n\n### Advanced examples\n\n```php\nuse A2lix\\AutoFormBundle\\Form\\Type\\AutoFormType;\n...\n$builder-\u003eadd('medias', AutoFormType::class, [\n    'fields' =\u003e [                               // [2]\n        'description' =\u003e [                         // [3.a]\n            'field_type' =\u003e 'textarea',                // [4]\n            'label' =\u003e 'descript.',                    // [4]\n            'locale_options' =\u003e [                  // [3.b]\n                'es' =\u003e ['label' =\u003e 'descripción']     // [4]\n                'fr' =\u003e ['display' =\u003e false]           // [4]\n            ]\n        ]\n    ],\n    'excluded_fields' =\u003e ['details']            // [2]\n]);\n```\n\n2. Optional. If set, override the default value from config.yml\n3. Optional. If set, override the auto configuration of fields\n   - [3.a] Optional. - For a field, applied to all locales\n   - [3.b] Optional. - For a specific locale of a field\n4. Optional. Common options of symfony forms (max_length, required, trim, read_only, constraints, ...), which was added 'field_type' and 'display'\n\n## Additional\n\n### Example\n\nSee [Demo Bundle](https://github.com/a2lix/Demo) for more examples.\n\n## Contribution help\n\n```\ndocker run --rm --interactive --tty --volume $PWD:/app --user $(id -u):$(id -g) composer install --ignore-platform-reqs\ndocker run --rm --interactive --tty --volume $PWD:/app --user $(id -u):$(id -g) composer run-script phpunit\ndocker run --rm --interactive --tty --volume $PWD:/app --user $(id -u):$(id -g) composer run-script cs-fixer\n```\n\n## License\n\nThis package is available under the [MIT license](LICENSE).\n\n[ci_badge]: https://github.com/a2lix/AutoFormBundle/actions/workflows/ci.yml/badge.svg\n[ci_link]: https://github.com/a2lix/AutoFormBundle/actions/workflows/ci.yml\n[coverage_badge]: https://codecov.io/gh/a2lix/AutoFormBundle/branch/master/graph/badge.svg\n[coverage_link]: https://codecov.io/gh/a2lix/AutoFormBundle/branch/master\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2lix%2Fautoformbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa2lix%2Fautoformbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2lix%2Fautoformbundle/lists"}