Download the PHP package flexmodel/flexmodel-bundle without Composer

On this page you can find all versions of the php package flexmodel/flexmodel-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 flexmodel-bundle

FlexModelBundle

FlexModel integration for Symfony.

Installation using Composer

Run the following command to add the package to the composer.json of your project:

Enable the bundle

Enable the bundle in the kernel:

Configure the bundle

Add the following configuration to your config.yml file:

The resource should refer to the location of your FlexModel configuration file.

Usage

Generating Doctrine ORM mapping

Run the following command to generate Doctrine ORM mapping and entity classes from your FlexModel configuration:

After generating the Doctrine ORM mapping you need to update your database schema:

Creating a Form

To create a form from a FlexModel form configuration you need to use the FlexModelFormType class.

The class will retrieve the form configuration based on the name of the entity and provided 'form_name' option.

For more information on creating forms, please see the Symfony documentation.

File uploads

The FlexModelBundle provides support for file uploads within FlexModel forms.

To activate this support you need to complete the following steps:

1. Configure the FlexModelBundle for file uploads

The bundle requires a location to store the file uploads. Configure the location with the existing FlexModelBundle configuration in your config.yml file:

2. Modify your Doctrine entity class

To activate file uploads for a Doctrine entity you need to implement the UploadObjectInterface and add getters and setters for the form fields.

For ease of use the FlexModelBundle provides an UploadTrait to implement both the interface and the getters and setters:

In the above example you see the UploadTrait with getters and setters for two file upload fields implemented. Here the getImageUpload method maps to a FlexModel field called 'image' and getAnotherImageUpload maps to 'another_image'.

Credits

License

This package is licensed under the MIT License. Please see the LICENSE file for details.


All versions of flexmodel-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^5.5 | ^7.0
ext-libxml Version *
ext-xsl Version *
doctrine/orm Version ^2.5
flexmodel/flexmodel Version ^1.0
ocramius/proxy-manager Version ^1.0 | ^2.0
symfony/console Version ^2.8 | ^3.0
symfony/form Version ^2.8 | ^3.0
symfony/framework-bundle Version ^2.8 | ^3.0
symfony/validator Version ^2.8 | ^3.0
twig/twig Version ^1.24 | ^2.0
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 flexmodel/flexmodel-bundle contains the following files

Loading the files please wait ....