Download the PHP package florianbelhomme/flob-foundation-bundle without Composer

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

Flob Foundation Bundle

Total Downloads Latest Stable Version Build Status SensioLabsInsight License

About

DISCONTINUED

This bundle integrates the features of the responsive framework Foundation, from ZURB (thanks guys), into Symfony by providing templates, Twig extensions, services and commands. You can quickly setup a responsive theme for an interface for your project. It will have the "look'n'feel", the responsiveness and the simplicity of Foundation.

BE AWARE: THIS BUNDLE WILL NOT ADD THE FOUNDATION FRAMEWORK BUT RATHER FEATURES FOR SYMFONY TO WORK WITH IT

Demo available here.

Requirements

Recommended

This bundle will theme for you elements of :

Installation and configuration

Then, edit your app/AppKernel.php and add:

You now need to add the libraries to your project.

The easy way to do it (but there are other ways to do so):

Your project is ready!

Configuration

This bundle does not theme any elements by default, in case you want to use Foundation on a specific form or bundle.

To automatically theme forms or other elements by default, go into the app/config/config.yml and add at the end:

If you want to do specific HTML markup that extends templates of this bundle:

Usage

Theme

However instead of setting it in the configuration, you can theme specific elements using one of these methods:

Top bar

To create a top bar, just create your KNP Menu, add a route to the root element and set extra options:

Menu entries with icons

You can add an icon before, after or instead of the label. By default the icon will be added before the label. The icon must be the name of one of Font-Awesome, example : "fa-bell-o".

Breadcrumb

If you want a breadcrumb generated from a KNP Menu add this code in your template :

If you want a specific template :

Slider (form field type)

You can now use the slider in your forms.

The slider extend the number field type, so it has the same options. The additional options are :

This is an example of the field :

Switch (form field type)

You can now use the switch in your forms.

The switch extend the choice field type, so it have the same options. But you can't set the option "expanded" to false (cannot be a select).

This is an example of the field :

Button Group (form field type)

You can now use button groups in your forms.

Button groups are button, grouped together by Foundation. This way they are rendered on the same line, instead of all on a different row.

This is an example of the field :

In the buttons array, you define the buttons that need to be rendered. All the buttons should be of FormType ButtonType. For the ButtonType, you cannot specify behavior in Symfony. You can change the type to reset , to render a button with type="reset", (a ResetType) but cannot add links.

However, you have various options:

Button Bar (form field type)

A button bar is a group of button groups, perfect for situations where you want groups of actions that are all related to a similar element or page.

This is an (long :D) example of the field :

Authors

Contribute

Contributions to the package are always welcome! Feedback is great.

Feel free to fork the project and make a PR. You can also help the others, look in the issues.

Support

If you are having problems, fill an issue.

License

This bundle is licensed under the MIT License


All versions of flob-foundation-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
symfony/framework-bundle Version ~2.8|~3.0
symfony/twig-bundle Version ~2.8|~3.0
symfony/yaml Version ~2.8|~3.0
symfony/form Version ~2.8|~3.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 florianbelhomme/flob-foundation-bundle contains the following files

Loading the files please wait ....