Download the PHP package tavy315/twitter-bootstrap-zend-form-decorator without Composer

On this page you can find all versions of the php package tavy315/twitter-bootstrap-zend-form-decorator. 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 twitter-bootstrap-zend-form-decorator

Zend_Form decorators for Twitter's Bootstrap

This is a set of Zend_Form decorators and helpers that help to render the markup needed to display any Zend_Form as a Twitter's Bootstrap form.

This is cool stuff, but how?

Here is an example form with some form fields

 API Documentation

Forms

Vertical forms (default style)

Horizontal forms

Inline forms

Search form

Search forms can be rendered in a navigation bar or as a normal forms. Search forms are classes that cannot be extended. Instead it supports several option in order to configure the look and feel of the form.

DisplayGroups

The base class (so inherently, all its subclasses) sets the custom class as a base class for handling virtual field groups. So there is no need for special coding here.

New form elements

In order to leverage the astonishing look and feel of Twitter Bootstrap buttons, a new special form element has been created in order to set all the appropiate class names.

Submit button

To configure the look and feel of a submit button there are several options supported

Button

This form element is an extension of the submit button in order to provide a way to render HTML inside the button. So it's providing the same features as the submit button plus the hability to render a glyphicon as a button label. Let's see it.

Decorators

Actions decorator

The purpose of this decorator is to set the appropiate markup to render the form's submit buttons.

Addon decorator

This decorator allows specify some content that will be appended or prepended to the given input. It can render text, a glyphicon or a checkbox. To accomplish this it supports several options that will be set to the form element itself. If you pass an element that is a Zend_Form_Element_Submit element, it will put it there without the span.

The content of the both options could be a string containing some text, an array or an instance of the class or a glyphicon. When

Fieldsize decorator

In order to specify a size of an input a special decorator is executed at the very begining of the decorator chain to set the appropiate class name. The size of an input can be set by the element's attribute size.

Installation

In order to use Bootstrap 3, the needed assets need to be installed in your assets directory. Make sure to install also the glyphicons properly. Once all this stuff has been installed, create/modify a layout view script and add a reference to the Bootstrap CSS.

So that's it. Now you can start creating forms and rendering them the way shown before and you will get nice forms!

Contributors


All versions of twitter-bootstrap-zend-form-decorator with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
tavy315/zendframework1 Version 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 tavy315/twitter-bootstrap-zend-form-decorator contains the following files

Loading the files please wait ....