PHPackages                             druidweb/genx - 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. [CLI &amp; Console](/categories/cli)
4. /
5. druidweb/genx

ActiveLibrary[CLI &amp; Console](/categories/cli)

druidweb/genx
=============

A console generator/stubs package for the Druid Laravel starter kit.

v1.0.1(3mo ago)0691MITPHPPHP ^8.4CI passing

Since Jan 5Pushed 3mo agoCompare

[ Source](https://github.com/druidweb/genx)[ Packagist](https://packagist.org/packages/druidweb/genx)[ RSS](/packages/druidweb-genx/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (15)Versions (4)Used By (1)

Genx
====

[](#genx)

[![Coverage](https://camo.githubusercontent.com/3d7a66ea4026412aef1a45ead37ec0dc657492d09f146685672d950f17fbf2da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f786d6c3f636f6c6f723d73756363657373266c6162656c3d636f7665726167652671756572793d726f756e64253238253246253246636f76657261676525324670726f6a6563742532466d657472696373253246253430636f7665726564656c656d656e7473253230646976253230253246253246636f76657261676525324670726f6a6563742532466d657472696373253246253430656c656d656e7473253230253241253230313030253239267375666669783d2532352675726c3d68747470732533412532462532467261772e67697468756275736572636f6e74656e742e636f6d253246647275696477656225324667656e782532466d61696e253246636f7665726167652e786d6c)](https://github.com/druidweb/genx/blob/main/coverage.xml)[![Build Status](https://camo.githubusercontent.com/18350f13297d26d3a0a28e76a3e6aa582f53aedaab83b079a8bafb1c61e17b00/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64727569647765622f67656e782f6d61696e2e796d6c3f6272616e63683d6d61696e)](https://github.com/druidweb/genx/actions)[![Total Downloads](https://camo.githubusercontent.com/39082707693fbce4c5ce8cd974b028eea9969cf4195be55e696860e82b8e518f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64727569647765622f67656e78)](https://packagist.org/packages/druidweb/genx)[![Latest Stable Version](https://camo.githubusercontent.com/78f8329d60fe37df7586d33f6b4d239d977f1f78252b45c63afdaa7d26d33d96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64727569647765622f67656e78)](https://packagist.org/packages/druidweb/genx)[![License](https://camo.githubusercontent.com/ed7095491d2068128d7a2390974abb9b4e9298abf5de0a4eda95e4802d2e57f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64727569647765622f67656e782e737667)](https://packagist.org/packages/druidweb/genx)

About
-----

[](#about)

Genx overrides Laravel's Artisan `make:*` commands with Zen-formatted generators that produce clean, consistent PHP files. All generated code follows Zen coding standards with 2-space indentation, strict types, and optional final classes.

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

[](#installation)

```
composer require druid/genx
```

Publish the configuration file:

```
php artisan genx:install
```

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

[](#configuration)

After installation, configure Genx in `config/genx.php`:

### Code Style Options

[](#code-style-options)

```
// Add declare(strict_types=1) to all generated files
'strict_types' => true,

// Make all generated classes final
'final_classes' => true,
```

### Package Integrations

[](#package-integrations)

```
// Add Spatie Route Discovery attributes to controllers
'route_discovery' => false,

// Enable zenphp/modulr integration for modular architecture
'modulr' => false,
```

### Generator Paths

[](#generator-paths)

Customize where each file type is generated:

```
'paths' => [
    'controller' => 'app/Http/Controllers',  // or 'app/Controllers' for flat structure
    'model' => 'app/Models',
    'middleware' => 'app/Http/Middleware',   // or 'app/Middleware' for flat structure
    // ... see config file for all options
],
```

Usage
-----

[](#usage)

Use Laravel's standard `make:*` commands - Genx automatically overrides them:

```
php artisan make:controller UserController
php artisan make:model Post
php artisan make:middleware RateLimiter
php artisan make:request StoreUserRequest
```

### Route Discovery Integration

[](#route-discovery-integration)

When `route_discovery` is enabled, generated controllers include Spatie Route Discovery attributes:

```
#[Route(middleware: ['auth', 'verified'])]
final class UserController extends Controller
{
    // ...
}
```

You'll be prompted to select which middleware to apply to each controller.

### Modulr Integration

[](#modulr-integration)

When `modulr` is enabled and you have [zenphp/modulr](https://github.com/zenphp/modulr) installed, you can generate files within modules:

```
php artisan make:controller UserController --module=billing
```

Or use the interactive module generator which integrates with Genx prompts:

```
php artisan modules:make billing
```

Supported Generators
--------------------

[](#supported-generators)

Genx overrides these Laravel generators:

- `make:cast`
- `make:channel`
- `make:class`
- `make:command`
- `make:component`
- `make:controller`
- `make:enum`
- `make:event`
- `make:exception`
- `make:factory`
- `make:interface`
- `make:job`
- `make:listener`
- `make:mail`
- `make:middleware`
- `make:migration`
- `make:model`
- `make:notification`
- `make:observer`
- `make:policy`
- `make:provider`
- `make:request`
- `make:resource`
- `make:rule`
- `make:scope`
- `make:seeder`
- `make:test`
- `make:trait`
- `make:view`

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](https://github.com/druidweb/genx/security/policy) on how to report security vulnerabilities.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Credits
-------

[](#credits)

- Built by Jetstream Labs

Support
-------

[](#support)

- **Issues**: [GitHub Issues](https://github.com/druidweb/genx/issues)

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance79

Regular maintenance activity

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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 ~11 days

Total

3

Last Release

112d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c31e2989d4b46bff753da02ddc5501063ccbe5c889ae6b4e4f186b1564a93b9?d=identicon)[secondmanveran](/maintainers/secondmanveran)

---

Top Contributors

[![secondmanveran](https://avatars.githubusercontent.com/u/97000801?v=4)](https://github.com/secondmanveran "secondmanveran (7 commits)")[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (2 commits)")

---

Tags

laravelstubsgeneratorsdruidzen

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

### Embed Badge

![Health badge](/badges/druidweb-genx/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.7k509.9M17.0k](/packages/laravel-framework)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/octane

Supercharge your Laravel application's performance.

4.0k21.5M159](/packages/laravel-octane)[laravel/nightwatch

The official Laravel Nightwatch package.

3526.1M13](/packages/laravel-nightwatch)[laravel/browser-kit-testing

Provides backwards compatibility for BrowserKit testing in the latest Laravel release.

5139.4M286](/packages/laravel-browser-kit-testing)[bpocallaghan/generators

Custom Laravel File Generators with config and publishable stubs.

11965.8k3](/packages/bpocallaghan-generators)

PHPackages © 2026

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