New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

dyon/flatstrapper

Flatstrap markup generator based on patricktalmadge/bootstrapper.
51
Install
composer require dyon/flatstrapper:dev-master
PHP:>=5.3.0
License:MIT
Last Updated:Apr 17, 2015
Links: GitHub  ·  Packagist
Maintainer: dyon

Flatstrapper

Flatstrapper is a set of classes that allow you to quickly create Flatstrap style markup. It is based on @patricktalmadge's Bootstrapper package for Twitter Bootstrap.

Installation

Add the following to your composer.json file :

"dyon/flatstrapper": "dev-master"

Then register Flatstrapper's service provider with Laravel :

'Dyon\Flatstrapper\FlatstrapperServiceProvider',

You can then (if you want to) add the following aliases to your aliases array in your config/app.php file.

'Alert'          => 'Dyon\\Flatstrapper\\Alert',
'Badge'          => 'Dyon\\Flatstrapper\\Badge',
'Breadcrumb'     => 'Dyon\\Flatstrapper\\Breadcrumb',
'Button'         => 'Dyon\\Flatstrapper\\Button',
'ButtonGroup'    => 'Dyon\\Flatstrapper\\ButtonGroup',
'ButtonToolbar'  => 'Dyon\\Flatstrapper\\ButtonToolbar',
'Carousel'       => 'Dyon\\Flatstrapper\\Carousel',
'DropdownButton' => 'Dyon\\Flatstrapper\\DropdownButton',
'Form'           => 'Dyon\\Flatstrapper\\Form',
'Helpers'        => 'Dyon\\Flatstrapper\\Helpers',
'Icon'           => 'Dyon\\Flatstrapper\\Icon',
'Image'          => 'Dyon\\Flatstrapper\\Image',
'Label'          => 'Dyon\\Flatstrapper\\Label',
'MediaObject'    => 'Dyon\\Flatstrapper\\MediaObject',
'Navbar'         => 'Dyon\\Flatstrapper\\Navbar',
'Navigation'     => 'Dyon\\Flatstrapper\\Navigation',
'Paginator'      => 'Dyon\\Flatstrapper\\Paginator',
'Progress'       => 'Dyon\\Flatstrapper\\Progress',
'Tabbable'       => 'Dyon\\Flatstrapper\\Tabbable',
'Table'          => 'Dyon\\Flatstrapper\\Table',
'Thumbnail'      => 'Dyon\\Flatstrapper\\Thumbnail',
'Typeahead'      => 'Dyon\\Flatstrapper\\Typeahead',
'Typography'     => 'Dyon\\Flatstrapper\\Typography',

Using the included Flatstrap assets

As there is no Asset class in Laravel 4, Flatstrapper uses the famous Basset package to manage its assets. In order to use the Flatstrap version included with Flatstrapper, you first need to add Basset's Service Provider and facade to your app file. For this refer to Basset's installation instructions.

Once this is done, publish the package assets to your public folder.

php artisan asset:publish dyon/flatstrapper

And then add the following to your template view file to include the Flatstrap CSS and Javascript.

{{ Basset::show('flatstrapper.css') }}
{{ Basset::show('flatstrapper.js') }}

Documentation

Related Packages

patricktalmadge/bootstrapper

Twitter Bootstrap markup generator

424,765 551
andersonaragao/bootstrapper

Twitter Bootstrap markup generator

7,496 0
alexwenzel/bselements

Bootstrap shortcuts and elements for Laravel

151 0
bootstrap-app/installer

Bootstrap-app installer.

68 0
giorgiosaud/bootstrapper

Twitter Bootstrap markup generator based on patrick package under development

29 1