Download the PHP package gdarko/twitter-bootstrap-grid without Composer

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

TwitterBootstrapGrid

This is a lightweight PHP script that makes easy generating a Twitter Bootstrap 3 grid using PHP. It uses the default Twitter bootstrap classes like .row and .col-* to generate the grids. It's pretty straightforward to use, it allows to specify how many columns per row to have for each Bootstrap viewport (xs, sm, md, lg)

Installation

Composer

You can install it with composer, you need to have composer installed and you are good to go!

I don't know what Composer is

I don't recommend this way but you can always download the latest release and require the class.

How to Use

Few examples how to use the script:

Example #1

You can use the addColumn method to add a column to the grid and later build. The constructor accepts array of columns as a second parameter

Example #2

You can use the setTotalRowColumns method to change the number of columns for a given viewport per row. In this example we are using 2 columns for "lg" classes. So one of the column classes will be .col-sm-6

Example #3

You have a large templates that need to be printed? No problem. You can combine it with output buffering.

Example #4

Do you want to build a fluid grids? For example you have 3 columns per row on large screens and two columns per row on mobiles. It's not that easy with the default Bootstrap aproach. This snippet will make your life easier.

Pretty straightforward, huh?

Changelog

v1.2

-Fix: Missing closing

when the last row has less columns than specified number of columns per row.

v1.1

v1.0

Development

Want to contribute? Great!

If you found a bug or want to contribute to the script feel free to create pull requests to make it even better!


All versions of twitter-bootstrap-grid with dependencies

PHP Build Version
Package Version
No informations.
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 gdarko/twitter-bootstrap-grid contains the following files

Loading the files please wait ....