PHPackages                             layman/laravel-architect - 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. layman/laravel-architect

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

layman/laravel-architect
========================

Laravel package for generating controllers, requests, models, and repositories from configuration.

v1.0.0(yesterday)02↑2900%MITPHPPHP ^8.3

Since Jun 18Pushed yesterdayCompare

[ Source](https://github.com/cc-layman/laravel-architect)[ Packagist](https://packagist.org/packages/layman/laravel-architect)[ RSS](/packages/layman-laravel-architect/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (2)Used By (0)

Laravel Architect
=================

[](#laravel-architect)

Generate Laravel controllers, form requests, models, and repositories from `config/architect.php`. Generated controllers use `spatie/laravel-route-attributes` by default.

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

[](#installation)

Install the package in a Laravel application:

```
composer require layman/laravel-architect
```

Laravel package discovery registers `Layman\LaravelArchitect\ArchitectServiceProvider` automatically.

Publishing
----------

[](#publishing)

Publish the config file:

```
php artisan vendor:publish --tag=architect-config
```

Publish the default stubs if you want to customize generated code:

```
php artisan vendor:publish --tag=architect-stubs
```

By default, published stubs are copied to `artisan-generator-stubs`.

Usage
-----

[](#usage)

Generate all configured artifacts:

```
php artisan architect:make User
```

Generate selected artifact types:

```
php artisan architect:make User --only=controller --only=request
```

Overwrite existing generated files:

```
php artisan architect:make User --force
```

Nested module names are supported:

```
php artisan architect:make Admin/User
```

Use `{{modulePath}}` in `config/architect.php` paths if nested module names should also affect output namespaces.

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

[](#configuration)

`config/architect.php` controls namespaces and generated files:

```
'namespace' => [
    'controller' => 'App\Http\Controllers',
    'request' => 'App\Http\Requests',
    'repository' => 'App\Repositories',
    'model' => 'App\Models',
],

'template' => [
    'files' => [
        'controller' => [
            'path' => 'Backend',
            'name' => '{{module}}Controller',
            'stub' => 'controller.stub',
        ],
    ],
],
```

Supported placeholders include `{{module}}`, `{{module_snake}}`, `{{module_kebab}}`, `{{module_camel}}`, `{{module_plural}}`, `{{module_plural_snake}}`, `{{table}}`, and `{{variable}}`.

The default controller stub adds `#[Prefix('{{module_snake}}')]`, uses `#[Post(...)]` for every action, and sets `#[Defaults('description', '')]`.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance100

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

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

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/095b12967909c1d57ae0a235cff4ab51fc008994405324f0632a212a4fa61b45?d=identicon)[layman](/maintainers/layman)

---

Top Contributors

[![cc-layman](https://avatars.githubusercontent.com/u/28285020?v=4)](https://github.com/cc-layman "cc-layman (1 commits)")

---

Tags

requestlaravelgeneratormodelcontrollerrepositoryroute-attributes

### Embed Badge

![Health badge](/badges/layman-laravel-architect/health.svg)

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

9782.1M157](/packages/laravel-ai)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.3k449.3k30](/packages/tightenco-jigsaw)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4821.5k](/packages/erag-laravel-lang-sync-inertia)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

954.0k](/packages/zidbih-laravel-deadlock)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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