Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Lumen
  3. Lumen Generators

Lumen Generators

MITPHP1.3.4

A collection of Artisan generators for Lumen and Laravel 5 to speed up RESTful API development.

GitHubGitHub
350 stars90 forks0 contributors

What is Lumen Generators?

Lumen Generators is a PHP package that provides Artisan command-line tools for generating boilerplate code in Lumen and Laravel 5 applications. It automates the creation of models, migrations, controllers, and routes, specifically tailored for building RESTful APIs. The package solves the problem of repetitive manual coding, speeding up development workflows.

Target Audience

PHP developers building RESTful APIs with Lumen or Laravel 5, particularly those who want to accelerate development by automating common scaffolding tasks.

Value Proposition

Developers choose Lumen Generators because it offers a comprehensive set of generators that follow Laravel conventions, supports complex relationships and validation rules, and allows generating multiple resources from a YAML file—saving significant time compared to manual coding.

Overview

A collection of generators for Lumen and Laravel 5.

Use Cases

Best For

  • Rapidly prototyping RESTful APIs in Lumen or Laravel
  • Generating complete CRUD resources with models, migrations, controllers, and routes
  • Automating migration creation with schema definitions and foreign keys
  • Setting up pivot tables for many-to-many relationships
  • Generating multiple interconnected resources from a configuration file
  • Adding RESTful controllers with built-in validation and JSON responses

Not Ideal For

  • Projects using Laravel 6+ or newer versions, as the package is designed for Laravel 5 and may have compatibility issues
  • Applications requiring GraphQL or custom API architectures beyond standard RESTful CRUD operations
  • Teams that need built-in support for API transformers like Fractal or extensive testing scaffolding, as these are noted as future features but not implemented
  • Development environments where code generation might conflict with existing complex business logic or require significant manual overrides

Pros & Cons

Pros

Complete RESTful Resource Scaffolding

The `wn:resource` command generates a model, migration, controller, and routes in one go, as demonstrated in the quick usage example with a Task resource, streamlining API development.

Automated Relationship Handling

Commands support defining relationships like `--belongs-to` and automatically add foreign keys and relationship methods, as shown in the model generator section for complex data models.

Integrated Validation Rules

Models include validation rules in the `$rules` array, which are used by the REST actions trait for automatic request validation, ensuring data integrity from the start.

Batch Generation via YAML

The `wn:resources` command parses a YAML file to generate multiple interconnected resources, including pivot tables, saving time on complex setups as illustrated in the documentation.

Cons

Outdated and Potentially Unmaintained

The README shows version 1.3.3 and issues from 2016, with requested features like Fractal integration still pending, indicating limited recent development and potential compatibility risks.

Complex Command Syntax

Defining fields with schema, rules, and tags in commands like `wn:resource` requires learning a specific syntax (e.g., 'name;string;required;fillable'), which can be error-prone and cumbersome.

Limited to Basic RESTful Patterns

The generated controllers use a fixed trait for CRUD operations, lacking flexibility for custom business logic, advanced API features like pagination, or non-RESTful endpoints.

Frequently Asked Questions

Quick Stats

Stars350
Forks90
Contributors0
Open Issues30
Last commit4 years ago
CreatedSince 2015

Tags

#eloquent#lumen#productivity#laravel#code-generator#rest-api#artisan-commands#migrations#backend#php#code-generation

Built With

L
Lumen
C
Composer
P
PHP
L
Laravel

Included in

Lumen328
Auto-fetched 1 day ago

Related Projects

Dingo APIDingo API

A RESTful API package for the Laravel and Lumen frameworks.

Stars9,360
Forks1,272
Last commit4 years ago
Facebook SDKFacebook SDK

Fully unit tested Facebook SDK v5 integration for Laravel & Lumen

Stars689
Forks196
Last commit5 years ago
Lumen PassportLumen Passport

Making Laravel Passport work with Lumen

Stars651
Forks138
Last commit2 years ago
REST API With LumenREST API With Lumen

Rest API boilerplate for Lumen micro-framework.

Stars483
Forks136
Last commit8 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub