2017 © Pedro Peláez
 

library sxbootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

image

spoonx/sxbootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  • Tuesday, February 25, 2014
  • by RWOverdijk
  • Repository
  • 5 Watchers
  • 29 Stars
  • 10,437 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 14 Forks
  • 4 Open issues
  • 30 Versions
  • 0 % Grown

The README.md

SxBootstrap

This module supplies view helpers to make it easy to work with twitter bootstrap. Optionally, this module also allows you to build, cache, modify and extend twitter bootstrap using the AssetManager module., (*1)

Note:

Support for bootstrap 3.0 is under active development. You can help and test by checking out the 3.0.0 branch., (*2)

Installation ViewHelpers

How?

Add the requirement to your composer.json file, (*3)

./composer.phar require spoonx/sxbootstrap
# When asked for a version, type: "2.*"

Installation Font Awesome

How?

  1. Add the dependency to your composer.json file:, (*4)

    ./composer.phar require fortawesome/font-awesome
    # When asked for a version, type: "3.*"
    
  2. Enable the use of Font Awesome by adding the following in config/autoload/sxbootstrap.local.php:, (*5)

    <?php
    return array(
        'twitter_bootstrap' => array(
            'use_font_awesome' => true,
        ),
    );
    

How?

  1. Add the dependencies to your composer.less file:, (*6)

    ./composer.phar require rwoverdijk/assetmanager twbs/bootstrap
    # When asked for a version, type: "1.*" for assetmanager and "2.*" for bootstrap.
    
  2. Enable AssetManager and SxBootstrap in your application.config.php config file., (*7)

  3. Install less..., (*8)

    a) Via NPM/Node.js (recommended method):, (*9)

    1. Install npm/node.js. Instructions can be found here.
    2. To Install lessc, open up your command line, and navigate to your project (cd /path/to/my/project).
    3. Once you get there, run the following command: npm install less . (including the dot).

    b) Via lessphp (Advised against):, (*10)

    Add the requirement, (*11)

    bash ./composer.phar require leafo/lessphp # When asked for a version, type: "0.*", (*12)

    Then add the following config to your application's module.config.php:, (*13)

    php 'twitter_bootstrap' => array( 'use_lessphp' => true, ),, (*14)

  4. Configure the filter to get it working. (This only applies to you if your using node.js and the binary is not in /usr/bin/node, or your node paths are not the default, so you've ignored my advice in step 3a.), (*15)

  5. Take a look at the wiki for examples and other information to get started. Specifically the part on how to configure the filter to get it working (bottom of the page), (*16)

Okay... Why?

The renderer has a lot of advantages., (*17)

  • Allows easy customization
  • Allows you to extend (use mixins and variables in your own less files!)
  • Prevents having to manually manage assets
  • Allows toggling components, and plugins to include (minimizing file size by not included what you do not need).
  • And more.

Features

  • Simple awesome forms
  • NEW Optional Font Awesome integration
  • NEW Add load paths
  • NEW Add custom components
  • Customizable (variables, components, plugins)
  • Works with AssetManager
  • Plenty of ViewHelpers
  • Extendable (run your own less files from bootstrap context to share mixins and variables)
  • Tested with twitter bootstrap 2.3+ (older versions will probably work, too)
  • You can optionally use lessphp (not recommended)

Usage

Check out the config/sxbootstrap.local.php.dist file in vendor/spoonx/sxbootstrap/config for the configuration options, and info. Also, please check out the wiki., (*18)

Questions / support

If you're having trouble with the module there are a couple of resources that might be of help. * The wiki page, where you'll perhaps find your answer. * RWOverdijk at irc.freenode.net #zftalk.dev * Issue tracker. (Please try to not submit unrelated issues). * By mail, (*19)

The Versions

25/02 2014

3.0.0.x-dev

3.0.0.9999999-dev https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

bootstrap zf2 zend framework twitter assetmanager

17/01 2014

dev-master

9999999-dev https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

bootstrap zf2 zend framework twitter assetmanager

29/10 2013

2.2.0

2.2.0.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

bootstrap zf2 zend framework twitter assetmanager

24/09 2013

2.1.1

2.1.1.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

bootstrap zf2 zend framework twitter assetmanager

05/09 2013

2.1.0

2.1.0.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

bootstrap zf2 zend framework twitter assetmanager

08/08 2013

2.0.3

2.0.3.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

bootstrap zf2 zend framework twitter assetmanager

30/07 2013

2.0.2

2.0.2.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

bootstrap zf2 zend framework twitter assetmanager

11/07 2013

2.0.1

2.0.1.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

bootstrap zf2 zend framework twitter assetmanager

03/07 2013

2.0.0

2.0.0.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

bootstrap zf2 zend framework twitter assetmanager

13/06 2013

1.10.1

1.10.1.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

10/06 2013

1.10.0

1.10.0.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

04/06 2013

1.9.0

1.9.0.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

04/06 2013

1.8.0

1.8.0.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

02/04 2013

1.7.1

1.7.1.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

28/03 2013

1.7.0

1.7.0.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

26/03 2013

1.6.6

1.6.6.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

25/03 2013

1.6.5

1.6.5.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

21/03 2013

1.5.3

1.5.3.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

07/03 2013

1.4.3

1.4.3.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

04/03 2013

1.3.2

1.3.2.0 https://github.com/SpoonX/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

04/03 2013

1.3.1

1.3.1.0 https://github.com/RWOverdijk/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

01/03 2013

1.3.0

1.3.0.0 https://github.com/RWOverdijk/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

19/02 2013

1.2.2

1.2.2.0 https://github.com/RWOverdijk/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

08/02 2013

1.1.3

1.1.3.0 https://github.com/RWOverdijk/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

24/01 2013

1.1.2

1.1.2.0 https://github.com/RWOverdijk/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

19/01 2013

1.1.1

1.1.1.0 https://github.com/RWOverdijk/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

06/01 2013

1.1.0

1.1.0.0 https://github.com/RWOverdijk/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

06/01 2013

1.0.0

1.0.0.0 https://github.com/RWOverdijk/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

22/10 2012

0.1.2

0.1.2.0 https://github.com/RWOverdijk/SxBootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

  Sources   Download

BSD-2-Clause

The Requires

 

bootstrap zf2 zend framework twitter assetmanager

22/10 2012

0.1.1

0.1.1.0 https://github.com/RWOverdijk/SxBootstrap

A bootstrap wrapper based on rwoverdijk/assetmanager

  Sources   Download

The Requires

 

bootstrap zf2 zend framework twitter assetmanager