PHPackages                             ipunkt/laravel-scaffolding - 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. ipunkt/laravel-scaffolding

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

ipunkt/laravel-scaffolding
==========================

Generator for various source file types of a running laravel project.

1.1.2(8y ago)02.4kMITPHPPHP &gt;=7.0.0

Since Nov 19Pushed 8y ago2 watchersCompare

[ Source](https://github.com/ipunkt/laravel-scaffolding)[ Packagist](https://packagist.org/packages/ipunkt/laravel-scaffolding)[ RSS](/packages/ipunkt-laravel-scaffolding/feed)WikiDiscussions master Synced 2d ago

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

Scaffolding for your project
============================

[](#scaffolding-for-your-project)

[![Latest Stable Version](https://camo.githubusercontent.com/dca3f95c8030218171e68e55ff42354c87a0731dcacf7418a265900b1bd32127/68747470733a2f2f706f7365722e707567782e6f72672f6970756e6b742f6c61726176656c2d73636166666f6c64696e672f762f737461626c652e737667)](https://packagist.org/packages/ipunkt/laravel-scaffolding) [![Latest Unstable Version](https://camo.githubusercontent.com/9d71c136d7c2852764527338cabbe588aa18acd6648dba53949296737ac2a742/68747470733a2f2f706f7365722e707567782e6f72672f6970756e6b742f6c61726176656c2d73636166666f6c64696e672f762f756e737461626c652e737667)](https://packagist.org/packages/ipunkt/laravel-scaffolding) [![License](https://camo.githubusercontent.com/75243f996661da86c66d027365843740bb193b3d70d1d17477329ceff1b1d1f4/68747470733a2f2f706f7365722e707567782e6f72672f6970756e6b742f6c61726176656c2d73636166666f6c64696e672f6c6963656e73652e737667)](https://packagist.org/packages/ipunkt/laravel-scaffolding) [![Total Downloads](https://camo.githubusercontent.com/7c6386bfccbfbd79124c8d1aaf9f0bd7f8fef7e6785e1d99a19e06e759eead79/68747470733a2f2f706f7365722e707567782e6f72672f6970756e6b742f6c61726176656c2d73636166666f6c64696e672f646f776e6c6f6164732e737667)](https://packagist.org/packages/ipunkt/laravel-scaffolding) [![Build Status](https://camo.githubusercontent.com/e708e08c366ef1641bf8cdd0e5085da67df75b0b2f4294751a83a2231d675105/68747470733a2f2f7472617669732d63692e6f72672f6970756e6b742f6c61726176656c2d73636166666f6c64696e672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ipunkt/laravel-scaffolding)

This laravel package can scaffold a new resource within seconds. It uses all project-based template stubs to get your project-based setup within the stubs.

You provide your type of scaffolding by providing your stubs. We seed the first stubs with the package publishing. Afterwards you can modify all stubs to suit your needs. After configuring your stubs they will automatically be generated.

This boosts your development time a lot.

Quickstart
----------

[](#quickstart)

```
composer require --dev ipunkt/laravel-scaffolding

```

We support package auto-discovery for laravel, so you are ready to use the package.

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

[](#installation)

Add to your composer.json following lines

```
"require-dev": {
	"ipunkt/laravel-scaffolding": "*"
}

```

You can publish all provided files by typing `php artisan vendor:publish` and select the `LaravelScaffoldingServiceProvider`. We also provide tags `scaffolding-config` and `scaffolding-stubs` for the corresponding resources.

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

[](#configuration)

The main configuration is divided into two parts: `resources` and `placeholder`.

### Resources Configuration

[](#resources-configuration)

Here is a full example resource configuration:

```
/**
 * Resource Model
 */
'Model' => [
	'stub' => resource_path('stubs/model.stub'),
	'target' => app_path('Models/{{Model}}.php'),
	'append' => false, // optional, false by default
],
```

Foreach resource you have to configure one or more sets of an array with the keys `stub` (the stub file), `target` (transformed file will be saved there) and optional `append` to configure whether the file gets appended or created.

The `stub` represents a text file with placeholders. The `target` property can handle placeholders and resolves the directory a resource gets saved to. Namespace separator will be automatically replaced by a directory separator.

### Placeholder Configuration

[](#placeholder-configuration)

You can add necessary placeholders yourself. Simply add your keys and a callback as value. The callback gets resolved by calling `value()` function with it internally.

Within the stubs and target values you can use them with the prefix `{{` and the suffix `}}` surrounded.

These placeholders are provided internally:

PlaceholderValue for Resource `User`Value for Resource `Administration\User``{{Namespace}}`empty string`Administration``{{\Namespace}}`empty string`\Administration``{{Namespace\}}`empty string`Administration\``{{namespace}}`empty string`administration``{{\namespace}}`empty string`\administration``{{namespace\}}`empty string`administration\``{{.namespace}}`empty string`.administration``{{namespace.}}`empty string`administration.``{{Model}}``User``User``{{model}}``user``user``{{Models}}``Users``Users``{{models}}``users``users`PlaceholderValue for Resource `UserModel``{{Model}}``UserModel``{{model}}``user-model``{{Models}}``UserModels``{{models}}``user-models`Usage
-----

[](#usage)

First you have to publish the scaffold stubs.

Then you can scaffold your first resource:

```
php artisan scaffold ModelName
```

### Command parameter

[](#command-parameter)

You can force the creation with overwriting already existing files with the option `--force`.

If you wan only some resources to be generated use `--with` or `--except` for each resource type you want to include or exclude. Each parameter can be used multiple with lowercased resource type names like `model`, `controller` and so on.

### Show resource types configured

[](#show-resource-types-configured)

You can display all configured resource types with this command:

```
php artisan scaffold:show
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

3138d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4946056?v=4)[Robert Kummer](/maintainers/rokde)[@rokde](https://github.com/rokde)

---

Tags

laravellaravel-5-packagelaravel-packagescaffoldscaffolding

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ipunkt-laravel-scaffolding/health.svg)

```
[![Health](https://phpackages.com/badges/ipunkt-laravel-scaffolding/health.svg)](https://phpackages.com/packages/ipunkt-laravel-scaffolding)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M169](/packages/laravel-ai)[livewire/flux

The official UI component library for Livewire.

9527.8M124](/packages/livewire-flux)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M131](/packages/laravel-mcp)[illuminate/queue

The Illuminate Queue package.

21332.6M1.5k](/packages/illuminate-queue)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M337](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

673139.5k6](/packages/spatie-laravel-export)

PHPackages © 2026

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