Download the PHP package qcubed/bootstrap without Composer

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

QCubed Bootstrap Plugin

QCubed plugin to simplify the integration of Twitter Bootstrap

Installation

1) Install both the plugin and twitter bootstrap using Composer. Execute the following on the command line from your main install directory:

2) Next, you might want to alter some of the settings in the bootstrap.cfg.php file. Look for that in /project/includes/configuration/active

QCUBED_BOOTSTRAP_CSS

The default setting for this file is:

If you are compiling your own custom version of the bootstrap css file, simply set that define to point to your own version.

3) Point the base class to Bootstrap classes so that they add their functionality.

In your project/qcubed/Control/ControlBase.php file, extend from the Bootstrap Control class. For example, you should change the first line to:

QCUBED_BOOTSTRAP_JS

The default mechanism included in this plugin only loads the bootstrap.js file on forms using the plugin widgets that need it. If you are hand-coding some bootstrap forms that also need bootstrap.js, you should do both of the following to avoid multiple bootstrap.js files being loaded:

1) Define QCUBED_BOOTSTRAP_JS in your bootstrap.cfg.php file and point it to your desired bootstrap js file as so:

2) Either add this file to your footer.inc.php file like this:

or add it to the list of auto-loaded javascript forms in your QForm.class.php file like this:

Usage

See the examples pages for details. The main functionality includes:

  1. Using RenderFormGroup instead of RenderWithName to draw form objects in the Bootstrap way. The Bootstrap Control class exposes a number of utility classes to add Bootstrap class to the object, the label, the wrapper, and even some internal wrappers in special situations.

  2. Specific Bootstrap type Controls to draw particular things on the screen. Examples include:

    • Carousel
    • Navbar
    • Menu button
    • Alert
    • Accordion
  3. Extensions of base QCubed controls with additional Bootstrap functionality. Includes:

    • Checkbox to draw checkboxes the bootstrap way with the label wrapping the checkbox
    • TextBox to add the ability to draw it as an inline-group with another object
  4. Defines that give you easy access to all the various Bootstrap class names via PHP constants. Those are located in the Bootstrap.php file.

All versions of bootstrap with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
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 qcubed/bootstrap contains the following files

Loading the files please wait ....