PHPackages                             acoustep/component-generator - 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. [CLI &amp; Console](/categories/cli)
4. /
5. acoustep/component-generator

ActiveLibrary[CLI &amp; Console](/categories/cli)

acoustep/component-generator
============================

Laravel 4 package for generating HTML components from Web Frameworks such as Twitter Bootstrap via command line.

v0.3.0(11y ago)4100MITPHPPHP &gt;=5.4.0

Since Jun 25Pushed 11y agoCompare

[ Source](https://github.com/acoustep/component-generator)[ Packagist](https://packagist.org/packages/acoustep/component-generator)[ RSS](/packages/acoustep-component-generator/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (5)Versions (6)Used By (0)

Component Generator
===================

[](#component-generator)

[![Build Status](https://camo.githubusercontent.com/5c8ef8e48757e7d0b32b19f79fa68c6a7954896bb4e35699a76bcd6614369983/68747470733a2f2f7472617669732d63692e6f72672f61636f75737465702f636f6d706f6e656e742d67656e657261746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/acoustep/component-generator)

Inspired by [Bourbon Refill's](http://refills.bourbon.io/) 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
---------------

[](#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.

```
php artisan component:generate navbar

```

If you want to change the directory the file is created in your can use the --path option

```
php artisan component:generate navbar --path="app/views"

```

To append a component to an already existing file use `component:append`

```
php artisan component:append navbar layouts.default

```

The first argument is the component. The second argument is the template to append to - located inside of app/views.

Installation
------------

[](#installation)

```
"acoustep/component-generator": "dev-master"

```

Add the service provider

```
'Acoustep\ComponentGenerator\ComponentGeneratorServiceProvider',

```

If you wish to change your settings you can run

```
php artisan config:publish acoustep/component-generator

```

Or

```
php artisan component:setup

```

Configuration
-------------

[](#configuration)

```
'framework' => 'bootstrap3'

```

This is the name of the directory to copy views from. Alternatives include [foundation5](http://foundation.zurb.com/docs/) and [pure1](http://purecss.io/).

```
'directory' => 'components'

```

Where the components are copied to. This will be in the `app/views` directory. To copy them to the root of `views` change it to an empty string.

```
'prefix' => ''

```

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.

```
'postfix' => '.blade.php',
'syntax' => 'blade',

```

Don't use blade? You can change to normal PHP templates with the following settings

```
'postfix' => '.php',
'syntax' => 'php',

```

Components
----------

[](#components)

To list all the components via command line use

```
php artisan component:list

```

To view a specific framework's components pass in the framework option

```
php artisan component:list --framework=bootstrap3

```

### Twitter Bootstrap

[](#twitter-bootstrap)

- [alerts](http://getbootstrap.com/components/#alerts)
- [breadcrumb](http://getbootstrap.com/components/#breadcrumbs)
- [button-group](http://getbootstrap.com/components/#btn-groups)
- [button-dropdown](http://getbootstrap.com/components/#btn-dropdowns)
- [carousel](http://getbootstrap.com/javascript/#carousel)
- [collapse](http://getbootstrap.com/javascript/#collapse)
- [dropdown](http://getbootstrap.com/components/#dropdowns-example)
- [layout](http://getbootstrap.com/getting-started/#template)
- [form](http://getbootstrap.com/css/#forms-example)
- [form-inline](http://getbootstrap.com/css/#forms-inline)
- [form-horizontal](http://getbootstrap.com/css/#forms-horizontal)
- [jumbotron](http://getbootstrap.com/components/#jumbotron)
- [list-group](http://getbootstrap.com/components/#list-group)
- [media](http://getbootstrap.com/components/#media)
- [modal](http://getbootstrap.com/javascript/#modals)
- [nav-tabs](http://getbootstrap.com/components/#nav-tabs)
- [nav-pills](http://getbootstrap.com/components/#nav-pills)
- [navbar](http://getbootstrap.com/components/#navbar-default)
- [navbar-fixed-top](http://getbootstrap.com/components/#navbar-fixed-top)
- [navbar-fixed-bottom](http://getbootstrap.com/components/#navbar-fixed-bottom)
- [navbar-static-top](http://getbootstrap.com/components/#navbar-static-top)
- [pagination](http://getbootstrap.com/components/#pagination)
- [pagination-pager](http://getbootstrap.com/components/#pagination-pager)
- [page-header](http://getbootstrap.com/components/#page-header)
- [panels](http://getbootstrap.com/components/#panels)
- [progress](http://getbootstrap.com/components/#progress)
- [progress-animated](http://getbootstrap.com/components/#progress-animated)
- [progress-stacked](http://getbootstrap.com/components/#progress-stacked)
- [thumbnails](http://getbootstrap.com/components/#thumbnails)
- [wells](http://getbootstrap.com/components/#wells)

### Zurb Foundation

[](#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

[](#pure)

- form-aligned
- form-inline
- form-multi
- form
- layout
- menu
- pagination
- table

To do
-----

[](#to-do)

- Ability to publish views for customising before generation.

Credits
-------

[](#credits)

The base of this code is from Jeffrey Way's Book [Laravel Testing Decoded](https://leanpub.com/laravel-testing-decoded). A great book which has helped me a lot!

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~6 days

Total

5

Last Release

4318d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6677c022fb8e71893a456505fe455ef6621e5ee9090cb471746edb03885c5975?d=identicon)[acoustep](/maintainers/acoustep)

---

Top Contributors

[![acoustep](https://avatars.githubusercontent.com/u/2813287?v=4)](https://github.com/acoustep "acoustep (31 commits)")

---

Tags

laravelgeneratorbootstrapfoundationcomponent-generator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/acoustep-component-generator/health.svg)

```
[![Health](https://phpackages.com/badges/acoustep-component-generator/health.svg)](https://phpackages.com/packages/acoustep-component-generator)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
