symfony-hackers / form-bundle
Extra form types for your Symfony projects
Installs: 9 515
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 265
Open Issues: 10
Type:symfony-bundle
Requires
- php: ^5.5.9 | ^7.0
- symfony/form: ^2.8 | ^3.0 | ^4.0
- symfony/framework-bundle: ^2.8 | ^3.0 | ^4.0
- twig/twig: ^1.26 | ~2.0
Requires (Dev)
- phpunit/phpunit: ^4.8.35 | ^5.7.11 | ^6.5
Suggests
- doctrine/doctrine-bundle: In order to use some form types with Doctrine
- doctrine/mongodb-odm-bundle: For MongoDB integration
- symfony/finder: For an image type
- symfony/twig-bridge: For integration into Twig templates
Conflicts
This package is auto-updated.
Last update: 2019-08-14 15:33:22 UTC
README
SHFormBundle
This package is a fork of GenemuFormBundle
If you want to migrate from GenemuFormBundle to SHFormBundle follow this document.
Installation
Installation is quick and easy, 3 steps process
- Install SHFormBundle
- Enable the bundle
- Initialize assets
Step 1: Install SHFormBundle
Run the following command :
$ composer require symfony-hackers/form-bundle "^3.0@dev"
Step 2: Enable the bundle
Finally, enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new SymfonyHackers\Bundle\FormBundle\SHFormBundle(), ); }
Step 3: Initialize assets
$ php app/console assets:install web/
Form types
Select2 (view demo):
Captcha GD
ReCaptcha (Google library):
JQueryUi (download):
Plain
A Form type that just renders the field as a p tag. This is useful for forms where certain field need to be shown but not editable.
The type name is genemu_plain
.
Tips
Prototype usage within form collections
Template
You use SHFormBundle and you seen that it does not work!
Maybe you have forgotten form_javascript
or form_stylesheet
.
The principle is to separate the javascript, stylesheet and html. This allows better integration of web pages.
View a template example form view
Note
There are maybe some bugs in those implementations, this package is just an idea of form types which can be very useful for your Symfony projects.