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.

v2.1.0(1mo ago)04↓50%MITPHPPHP ^8.3

Since Jun 18Pushed 1mo agoCompare

[ 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 2w ago

READMEChangelogDependencies (8)Versions (4)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',
],

'route_attributes' => [
    'enabled' => true,
],

'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', '')]`. Set `route_attributes.enabled` to `false` if controllers should be generated without `spatie/laravel-route-attributes` imports and PHP attributes. If you have already published the package stubs, re-publish them or update your `controller.stub` to use the route attribute placeholders from the package stub.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance92

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Total

3

Last Release

41d ago

Major Versions

v1.0.0 → v2.0.02026-06-22

### 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 (3 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.

1.1k4.6M275](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

20433.0M1.7k](/packages/illuminate-queue)[erag/laravel-lang-sync-inertia

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

5031.3k](/packages/erag-laravel-lang-sync-inertia)[moonshine/moonshine

Laravel administration panel

1.3k268.2k86](/packages/moonshine-moonshine)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[aedart/athenaeum

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

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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