PHPackages                             jeroen-g/laravel-builder - 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. jeroen-g/laravel-builder

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

jeroen-g/laravel-builder
========================

Build rapidly classes based on stubs.

v0.2(10y ago)5861[1 PRs](https://github.com/Jeroen-G/laravel-builder/pulls)EUPL-1.1PHPPHP ~5.5|~7.0

Since Mar 4Pushed 8y ago2 watchersCompare

[ Source](https://github.com/Jeroen-G/laravel-builder)[ Packagist](https://packagist.org/packages/jeroen-g/laravel-builder)[ Docs](https://github.com/Jeroen-G/laravel-builder)[ RSS](/packages/jeroen-g-laravel-builder/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

Laravel Builder
===============

[](#laravel-builder)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b30aac05c55eab7962aeca4dcdcf71090b18396540b609d5f45e288bd59c73c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a65726f656e2d672f6c61726176656c2d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeroen-g/laravel-builder)[![Build Status](https://camo.githubusercontent.com/67a26453aae4197f352e46f7cc76b42832ff063f7b3e3b9d3e40dc9ce0150794/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4a65726f656e2d472f6c61726176656c2d6275696c6465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Jeroen-G/laravel-builder)

Build your Laravel application from the command line or, at some point in the future, through an interface.

Install
-------

[](#install)

Via Composer

```
$ composer require jeroen-g/laravel-builder
```

In config/app.php add

```
        JeroenG\LaravelBuilder\LaravelBuilderServiceProvider::class,
```

Usage
-----

[](#usage)

### In your code

[](#in-your-code)

An instance of the builder class is binded in the service provider. You can use the Builder in your code in one of the following ways. Stubs are searched in the `stubs/` directory, so run the command first (see next section).

1. With variables

```
$builder->stub = 'model';  // model.stub found in stubs/
$builder->namespace = 'App\\Models';
$builder->class = 'Test';
$builder->path = 'app/Models/Test';  // Relative to base_path().
$builder->run()->save();  // Creates and then saves the file.
$builder->reset();  // Resets the variables for a completely new build process.
```

2. With an array

```
$builder->fromArray([
    'stub' => 'model',
    'namespace' => 'App\\Models',
    'class' => 'Test',
    'path' => 'app/Models/Test'
]);  // No need to run() or save() or reset().
```

3. With Json

```
$json = json_encode([  // You could for example have .json files for this.
    'stub' => 'model',
    'namespace' => 'App\\Models',
    'class' => 'Test',
    'path' => 'app/Models/Test'
]);
$builder->fromJson($json);  // No need to run() or save() or reset().
```

### The command line

[](#the-command-line)

You can also use the following commands.

1. Publish all the included stubs to the `stubs/` directory.

```
$ php artisan build:stubs
```

You can add your own stubs to this directory as well. It currently ships with very little stubs, if you have made your own, feel free to add them to the package with a Pull Request.

2. Building a file

```
$ php artisan build model App\\Models Test app/Models/Test
```

### Through the web interface

[](#through-the-web-interface)

After installing the package and publishing the stubs, the web interface is accessible by visiting `/builder`. You can create single files or a resource (controller, model, form request, policy, migration, views).

Change log
----------

[](#change-log)

Please see [changelog](changelog.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [contributing](contributing.md) for details.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

The EUPL License. Please see the [License File](license.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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 ~12 days

Total

2

Last Release

3708d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d8700d69abe733de151f8cf49084e99ded7b9d34d7b0d1cd8f3825f5d925ff3?d=identicon)[JeroenG](/maintainers/JeroenG)

---

Top Contributors

[![Jeroen-G](https://avatars.githubusercontent.com/u/1116853?v=4)](https://github.com/Jeroen-G "Jeroen-G (20 commits)")

---

Tags

laravelpackagebuilderclassesbuild

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jeroen-g-laravel-builder/health.svg)

```
[![Health](https://phpackages.com/badges/jeroen-g-laravel-builder/health.svg)](https://phpackages.com/packages/jeroen-g-laravel-builder)
```

###  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)[tehwave/laravel-achievements

Simple, elegant Achievements the Laravel way

7012.8k](/packages/tehwave-laravel-achievements)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)[melihovv/laravel-package-generator

A laravel package generator

14434.7k1](/packages/melihovv-laravel-package-generator)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

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