Download the PHP package symfony2admingenerator/form-bundle without Composer

On this page you can find all versions of the php package symfony2admingenerator/form-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package form-bundle

FormBundle

This bundle introduces new twig blocks: form_js, form_js_prototype and form_css.

These blocks seperate form type's HTML structure from CSS decorating the form and JS enhancing its functionalities. Also, the JS block includes form_js_prototype block, which holds any initialization logic, which should be called when adding a new field of that type.

If used properly, they make embeding collections of JS-enhanced form types very easy.

1. Installation

1.1 Add dependency to your composer.json:

And run composer update in your project root directory.

1.2 Enable the bundle in your AppKernel.php:

2. Usage

This bundle adds new twig blocks for your form. In Symfony2 for form type aliased my_form you have one block my_form_widget where you put everything related to your form type. And that's totally fine for default Symfony2 form types, as they include only basic form elements.

To introduce nice GUI form widgets, we need to style them with CSS and enhance their functionality with JS. So, for these purposes, this bundle introduces new blocks. In our example, that would be my_form_css and my_form_js.

Javascript enhanced forms in collections

To make implementing add/remove items to collection of forms easier, we've also added a javascript prototype block, which resides inside the form javascript block. Example:

This way we've seperated the javascript selector code from widget initialization code, which now can be used in our collection widget:

Note: this snippet does not include code to add new item, as this is already covered by How to Embed a Collection of Forms cookbook.

For example usage study the AdmingeneratorFormExtensionsBundle (templates in Resources/views/Form directory).

3. Acknowledgements

The twig extension is copied from GenemuFormBundle. The names of twig blocks have been changed to not cause conflicts.

The bundle is great, however for our purposes, we only need the Twig Extension, so we decided to extract it and put it into a seperate bundle.

4. Versioning

Releases will be numbered with the format major.minor.patch.

And constructed with the following guidelines.

For more information on SemVer, please visit semver.org website.

5. Contributing

This bundle follows branching model described in A successful git branching model blog post by Vincent Driessen.

Branching model

6. License

This bundle is released under the MIT License except for the file: Resources/doc/branching-model.png by Vincent Driessen, which is released under Creative Commons BY-SA.


All versions of form-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1.0
symfony/config Version ~5.4|~6.4|~7.4|~8.0
symfony/dependency-injection Version ~5.4|~6.4|~7.4|~8.0
symfony/form Version ~5.4|~6.4|~7.4|~8.0
symfony/http-kernel Version ~5.4|~6.4|~7.4|~8.0
twig/twig Version ^3.4.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package symfony2admingenerator/form-bundle contains the following files

Loading the files please wait ...