Download the PHP package vivait/bootstrap-bundle without Composer

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

BootstrapBundle

SensioLabsInsight Scrutinizer Code Quality Build Status

A set of common templates and utilities to assist in rapid application development in Symfony.

Installation

Using composer

Enabling bundle

Add the config rules

Add the following to your config.yml to enable Mopa Bootstrap integration:

Add the following to your config.yml to enable Mopa Bootstrap integration in to Assetic: Note: Bootstrap 3.1 and above use additional features in less which are incompatible with the LESS compiler, as such we have stripped them out until a solution can be found

You may already have an assetic configuration in your config,yml, if this is the case then you should combine the two, e.g.

Add the following to your config.yml to enable Viva Bootstrap form integration:

You may already have a twig configuration in your config,yml, if this is the case then you should combine the two, e.g.

You can change to be the title of your application, this will then appear in the title of each page.

Dumping the Assetic files

Updating composer.json

To make Mopa bootstrap bundle perform the symlink automatically on install, add the following to your composer.json: `

Enabling the search box

To enable the search box, you need to define the route to the search controller in your , e.g:

This will then pass the search query to your controller, via the GET parameter.

Using KNP Menus

Using composer

Enabling bundle

Adding menu items

To add menu items, you need to create an event listener that will listen to the event:

You'll then need to configure this event in your :

Using the list hydrator

Bootstrap bundle includes a custom Doctrine hydrator, based on this blog post.

This hydrator is pretty straightforward, it examines the columns returned in each row of the resultset, if there are only two columns, the first is assumed to be the key field (which would normally be the objects ID) and the second is assumed to be the value field. If there are more than two columns per row then the returned array will be an ID indexed array with each row consisting of an array of the remaining column values.

To enable use of the hydrator, add the following to your config.yml:

For use with Doctrine ORM 2.5+, use

and use when retrieving results from a query:

Using the user callable

At some point in your application, you may wish to inject the current user via the container. Bootstrap provides a helper class for this, based on this StackOverflow answer.

Simply inject , like in the following

Then when you need to reference the current user in your class, just call , as follows:


All versions of bootstrap-bundle with dependencies

PHP Build Version
Package Version
Requires moment/moment Version ~2.5
mopa/bootstrap-bundle Version ~3.0
twbs/bootstrap Version v3.2.0
knplabs/knp-menu-bundle Version ~2.1
vivait/common Version ~2.2
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 vivait/bootstrap-bundle contains the following files

Loading the files please wait ....