PHPackages                             smarch/motherbox - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. smarch/motherbox

ActivePackage[Utility &amp; Helpers](/categories/utility)

smarch/motherbox
================

A Laravel 5 package generator

v0.0.1(10y ago)6232[1 PRs](https://github.com/SmarchSoftware/motherbox/pulls)MITPHPPHP &gt;=5.5.9

Since Apr 7Pushed 9y agoCompare

[ Source](https://github.com/SmarchSoftware/motherbox)[ Packagist](https://packagist.org/packages/smarch/motherbox)[ Docs](https://github.com/SmarchSoftware/motherbox)[ RSS](/packages/smarch-motherbox/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

[![](https://camo.githubusercontent.com/816276dc487500e93d866194b23e8d2834eaf35978a5954e210eb377725b13c6/687474703a2f2f692e696d6775722e636f6d2f4239586130564f2e706e67)](https://camo.githubusercontent.com/816276dc487500e93d866194b23e8d2834eaf35978a5954e210eb377725b13c6/687474703a2f2f692e696d6775722e636f6d2f4239586130564f2e706e67)

This is probably only of use to me, but I have need of it in multiple apps so I packaged it up in case you want it too. :)

---

Motherbox
=========

[](#motherbox)

A package generator for Laravel 5. I used to use "workbench" all the time in laravel 4 and after not liking the ones I found and getting tired of copying/pasting/manipulating a bunch of files after running a CRUD generator, I decided to make a full package generator that allows me to customize the generated files and fields for the views.

Overview
--------

[](#overview)

From a single line on the command prompt, Motherbox will generate an entire packagist.com ready package for laravel. You can use the provided stub files or you can customize the stub files to work the way you want. You can, optionally, create *(or not)* any of the following files for your package :

- Composer.json file (with configurable options)
    - Vendor
    - Name
    - Author
    - Email
- Config
- Controller
- Facade
- License
- Middleware
- Migration
    - Migrate (if you just want to make the file but not run it, set "migrate" to "no")
- Model
    - Table
    - Primary Key
    - Fields
    - Fillable
    - Guarded
- Policy
- Requests
- Routes
- Seed
- Test
- Views *(create, show/edit and index)*

You can place the info for the config options you don't want to to type out in the motherbox config file. So if you make numerous packages and never need Migration files you can set your config file for migration = 'no' and never make one. If you decide, however, for one package you need a migration you can add the option of --migration=yes and it will create the file regardless. **Command line options always supercede config file options.**

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

[](#installation)

This page is intended for installation, please check out the [wiki](https://github.com/SmarchSoftware/motherbox/wiki) for more information about usage. (In progress)

#### 🔲 Composer

[](#black_square_button-composer)

```
composer require "smarch/motherbox"

```

#### 📝 Service Provider

[](#pencil-service-provider)

Motherbox is a Laravel atristan command but the views it generatesuses the [HTML Forms](https://laravelcollective.com/docs/5.1/html) package from the "Laravel Collective" for Html &amp; Form rendering so composer will install that as well if you don't already have it installed *(you probably do...or should)*. Once composer has installed the necessary packages for Motherbox to function you need to open your laravel config page for service providers and add Motherbox *(and if necessary the Laravel Collective Html provider)*. To properly function you need to have both service providers referenced : [HTML Forms](https://laravelcollective.com/docs/5.1/html) and Motherbox.

*config/app.php*

```
   /*
    * Third Party Service Providers
    */
    Collective\Html\HtmlServiceProvider::class, // For Motherbox to function
    Smarch\Motherbox\MotherboxServiceProvider::class, // For Motherbox

```

#### 📝 Facades

[](#pencil-facades)

Next you will need to add the Forms Facades to your config app file. Motherbox has no facade as it is only an artisan command.

*config/app.php*

```
    /*
    * Third Party Service Providers
    */
    'Form'  => Collective\Html\FormFacade::class,	// required for Motherbox Forms
    'HTML'  => Collective\Html\HtmlFacade::class,	// required for Motherbox Forms

```

#### 📇 Publishing Stub and config files

[](#card_index-publishing-stub-and-config-files)

If you wish to use the motherbox config options or customize the stub files for your own needs you will need to publish the files. From your command prompt (wherever you run your artisan commands) enter the following command php artisan vendor:publish --provider=Smarch\\Motherbox\\MotherboxServiceProvider. This will create the Motherbox config file and puts the stubs files in ROOT\\resources\\motherbox\\stubs.

```
php artisan vendor:publish --provider=Smarch\Motherbox\MotherboxServiceProvider

```

#### 🔱 Why "Motherbox"?

[](#trident-why-motherbox)

I've been a DC geek for over 30 years now and all my packages have a DC Universe name. Motherbox as an entire package generator will make sense to use DC folk. 😄

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3690d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a36bde7336948351191bed7f73dbebb3f0ed4ef691d97d807824b0bf2f09f6e9?d=identicon)[landjea](/maintainers/landjea)

---

Top Contributors

[![landjea](https://avatars.githubusercontent.com/u/4738992?v=4)](https://github.com/landjea "landjea (34 commits)")

---

Tags

laravel 5packagesworkbenchgemerator

### Embed Badge

![Health badge](/badges/smarch-motherbox/health.svg)

```
[![Health](https://phpackages.com/badges/smarch-motherbox/health.svg)](https://phpackages.com/packages/smarch-motherbox)
```

###  Alternatives

[aliyuncs/aliyun-oss-php-sdk-laravel

A simple Laravel 5 and lumen service provider for including the Oss PHP SDK for PHP.

7935.4k2](/packages/aliyuncs-aliyun-oss-php-sdk-laravel)[danielme85/laravel-cconverter

Laravel 5 plug-in for currency conversion

42101.1k](/packages/danielme85-laravel-cconverter)[flarum/extension-manager

An extension manager to install, update and remove extension packages from the interface (Wrapper around composer).

12211.5k](/packages/flarum-extension-manager)[nahid/linkify

Converts URLs and email addresses in text into HTML links its extended from Misd\\Linify its also support laravel 5

11136.0k1](/packages/nahid-linkify)[codewithtony/larathemes

Theme Manager for Laravel 5

123.2k](/packages/codewithtony-larathemes)

PHPackages © 2026

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