Download the PHP package acoustep/component-generator without Composer
On this page you can find all versions of the php package acoustep/component-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download acoustep/component-generator
More information about acoustep/component-generator
Files in acoustep/component-generator
Package component-generator
Short Description Laravel 4 package for generating HTML components from Web Frameworks such as Twitter Bootstrap via command line.
License MIT
Informations about the package component-generator
Component Generator
Inspired by Bourbon Refill's Rails generators, Component Generator is a Laravel 4 package to quickly generate HTML components from Web Frameworks such as Twitter Bootstrap via command line.
Getting Started
By default running the following command will create a new file in views/components/navbar.blade.php with the Twitter Bootstrap navigation bar.
If you want to change the directory the file is created in your can use the --path option
To append a component to an already existing file use
The first argument is the component. The second argument is the template to append to - located inside of app/views.
Installation
Add the service provider
If you wish to change your settings you can run
Or
Configuration
This is the name of the directory to copy views from. Alternatives include foundation5 and pure1.
Where the components are copied to. This will be in the directory. To copy them to the root of change it to an empty string.
Put a prefix on filenames. For instance, if you come from a Rails background and prefer to use an underscore to prefix partials then you can set that here.
Don't use blade? You can change to normal PHP templates with the following settings
Components
To list all the components via command line use
To view a specific framework's components pass in the framework option
Twitter Bootstrap
- alerts
- breadcrumb
- button-group
- button-dropdown
- carousel
- collapse
- dropdown
- layout
- form
- form-inline
- form-horizontal
- jumbotron
- list-group
- media
- modal
- nav-tabs
- nav-pills
- navbar
- navbar-fixed-top
- navbar-fixed-bottom
- navbar-static-top
- pagination
- pagination-pager
- page-header
- panels
- progress
- progress-animated
- progress-stacked
- thumbnails
- wells
Zurb Foundation
- accordion
- alerts
- breadcrumb
- button-dropdown
- button-group
- button-split
- equalizer
- form
- iconbar
- joyride
- layout
- modal
- offcanvas
- orbit
- pagination
- panel
- pricing-table
- progress
- range-slider
- table
- tabs-vertical
- tabs
- thumbnails
- tooltip
- topbar
- video
Pure
- form-aligned
- form-inline
- form-multi
- form
- layout
- menu
- pagination
- table
To do
- Ability to publish views for customising before generation.
Credits
The base of this code is from Jeffrey Way's Book Laravel Testing Decoded. A great book which has helped me a lot!
All versions of component-generator with dependencies
illuminate/support Version 4.2.*
illuminate/console Version 4.2.*
illuminate/filesystem Version 4.2.*