dyon / flatstrapper by dyon

Flatstrap markup generator based on patricktalmadge/bootstrapper.
51
0
2
Package Data
Maintainer Username: dyon
Maintainer Contact: hello@dyon.me (Daniel Hurtado)
Package Create Date: 2013-08-16
Package Last Update: 2015-04-17
Language: PHP
License: MIT
Last Refreshed: 2024-05-04 15:12:50
Package Statistics
Total Downloads: 51
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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