PHPackages                             cobisja/boothelp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cobisja/boothelp

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cobisja/boothelp
================

PHP Helpers for Bootstrap

0.4.0(11y ago)251867[1 issues](https://github.com/cobisja/boothelp/issues)MITPHP

Since Apr 11Pushed 11y ago4 watchersCompare

[ Source](https://github.com/cobisja/boothelp)[ Packagist](https://packagist.org/packages/cobisja/boothelp)[ RSS](/packages/cobisja-boothelp/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (8)Used By (0)

BootHelp - PHP Helpers for Bootstrap
====================================

[](#boothelp---php-helpers-for-bootstrap)

A simple set of classes to generate most of the Bootstrap's components without writing any HTML code, just PHP.

About
-----

[](#about)

Nowadays Bootstrap is a great framework commonly used by a lot of web designers and web developers to build web sites with a fresh looking using its HTML and CSS based design templates for typography, forms, buttons, navigation, and other interface components, as well JavaScript extensions.

However, to get all of its powerful resources, usually you have to write a lot of HTML code, no matters if you want to use a simple component, like [Modal](http://getbootstrap.com/javascript/#modals) for instance.

*BootHelp* (**Boot**strap **Help**ers) is a set of classes that allows you to get all the power of Bootstrap's components with no need to write any HTML code (or at least a minimun amount of it).

Requirements
------------

[](#requirements)

- Any flavour of PHP 5.4+
- [PHPUnit](https://phpunit.de/) to execute the test suite (optional).

Remember that **BootHelp** just generates HTML code acording Bootstrap specifications v3.3.4. To get running the code as you expected, you have to install all [Bootstrap requirements](http://getbootstrap.com/getting-started/).

Getting started
---------------

[](#getting-started)

### Setting up the environment

[](#setting-up-the-environment)

After download **BooHelp**, you have 2 ways to get your environment configured to use the classes:

#### Composer

[](#composer)

[Composer](https://getcomposer.org) is the PHP's package manager and is the recommended way to get packages for your projects. It's also able to build automatically ***autoloaders*** if you wrote down your code using PSR-0 and/or PSR-4 standards, avoiding you headaches about everything related to loading classes.

**BootHelp** is built follows PSR-4 standard and comes with a specific file named **composer.json** that allows **Composer** to generate a file named **autoload.php** (beside others files of course). This files generated is the only one you need to include in your project to get all classes required by **BootHelp** loaded in memory:

1. Install Composer:

    ```
    curl -s https://getcomposer.org/installer | php

    ```
2. Get inside **BootHelp** root folder and generate the **autoload.php** file:

    ```
    php composer.phar dump-autoload

    ```

    The command above will generate a folder called **vendor**. Inside of it, you'll see the **autoload.php**
3. Require/Include **autoload.php** file in the **index.php** of your project or whatever file you need to use **BootHelp** classes:

    ```
