Download the PHP package elao/html-action-bundle without Composer

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

HTML Action Bundle

This bundle provides CRUD + List Actions to be used with ElaoAdminBundle

Installation

Require the bundle in Composer:

Install the bundle in your AppKernel:

Configuration

The HtmlActionBundle provides 5 actions for the AdminBundle:

Here's how you define a simple CRUD administration for a "Post" entity.

Don't forget to declare the corresponding repository service: (extends elao_admin.repository.doctrine/Elao\Bundle\AdminBundle\Service\DoctrineRepository or use your own implementation of Elao\Bundle\AdminBundle\Behaviour\RepositoryInterface)

Full configuration

List

Parameter Description Required Default value
view The template to render the page with. false :post:list.html.twig
view_parameter The variable name of the model or list of model in the template. false posts

Create

Parameter Description Required Default value
form The form type to use to create the model. true
view The template to render the page with. false :post:create.html.twig
view_parameter The variable name of the model or list of model in the template. false post
redirection The action to redirect the user to when the action has been performed. false list

Read

Parameter Description Required Default value
view The template to render the page with. false :post:update.html.twig
view_parameter The variable name of the model or list of model in the template. false post

Update

Parameter Description Required Default value
form The form type to use to create the model. true
view The template to render the page with. false :post:update.html.twig
view_parameter The variable name of the model or list of model in the template. false post
redirection The action to redirect the user to when the action has been performed. false list

Delete

Parameter Description Required Default value
form The form type to use to create the model. false Elao\Bundle\HtmlActionBundle\Form\Type\DeleteType
view The template to render the page with. false :post:delete.html.twig
view_parameter The variable name of the model or list of model in the template. false post
redirection The action to redirect the user to when the action has been performed. false list

Views

Please note that the views are not provided with the bundle. You have to create them to display the different forms.

Default path for the views is app/Resources/[name]/[alias].html.twig. You can override this by setting an explicit view in action's options.

Doctrine service repositories (optional):

For convenience, you can use AdminBundle's DoctrineRepository as the default doctrine repository. This way the Doctrine entity manager's getRepository method will return the repository service declared for each model.

To activate this feature:


All versions of html-action-bundle with dependencies

PHP Build Version
Package Version
Requires symfony/framework-bundle Version ~3.1
elao/admin-bundle Version ^1.1
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 elao/html-action-bundle contains the following files

Loading the files please wait ....