PHPackages                             atnic/lumen-generator - 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. atnic/lumen-generator

ActivePackage

atnic/lumen-generator
=====================

Generator for Lumen Framework.

v0.1.1(6y ago)212[1 issues](https://github.com/Atnic/lumen-generator/issues)MITPHPPHP &gt;=7.1.3

Since Jun 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Atnic/lumen-generator)[ Packagist](https://packagist.org/packages/atnic/lumen-generator)[ RSS](/packages/atnic-lumen-generator/feed)WikiDiscussions develop Synced yesterday

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

Lumen Generator
===============

[](#lumen-generator)

[![Latest Stable Version](https://camo.githubusercontent.com/eba93102ae3d5d05f6a328225d8361276c6a7ca778da4a20874f1cab428a8b3b/68747470733a2f2f706f7365722e707567782e6f72672f61746e69632f6c756d656e2d67656e657261746f722f762f737461626c65)](https://packagist.org/packages/atnic/lumen-generator)[![Total Downloads](https://camo.githubusercontent.com/b8673621ec2184b99b514ad57c70a37747c550caefe722b34d4cb368d870beb4/68747470733a2f2f706f7365722e707567782e6f72672f61746e69632f6c756d656e2d67656e657261746f722f646f776e6c6f616473)](https://packagist.org/packages/atnic/lumen-generator)[![Latest Unstable Version](https://camo.githubusercontent.com/3563579ad6306be7c5b765080c42555430361a0b88bd6ce7c0f1540b0e377358/68747470733a2f2f706f7365722e707567782e6f72672f61746e69632f6c756d656e2d67656e657261746f722f762f756e737461626c65)](https://packagist.org/packages/atnic/lumen-generator)[![License](https://camo.githubusercontent.com/0b3f878256eed1b09ed210857655466fd939c978a11edbc25264357b0c663438/68747470733a2f2f706f7365722e707567782e6f72672f61746e69632f6c756d656e2d67656e657261746f722f6c6963656e7365)](https://packagist.org/packages/atnic/lumen-generator)[![Monthly Downloads](https://camo.githubusercontent.com/ec363218d88308563772dabfeb6009c3e60b3dddea52dd9838f4cab91169fd54/68747470733a2f2f706f7365722e707567782e6f72672f61746e69632f6c756d656e2d67656e657261746f722f642f6d6f6e74686c79)](https://packagist.org/packages/atnic/lumen-generator)[![Daily Downloads](https://camo.githubusercontent.com/56367d58de29c5c34da101754f60f9e1ff673aeb11b8c8ce5abde7b6ff7cfaac/68747470733a2f2f706f7365722e707567782e6f72672f61746e69632f6c756d656e2d67656e657261746f722f642f6461696c79)](https://packagist.org/packages/atnic/lumen-generator)

Requirement
-----------

[](#requirement)

- php: &gt;=7.1.3,
- [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit): ^7.0

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

[](#installation)

Edit `composer.json`

```
{
  "require": {
    "atnic/lumen-generator": "^0.1"
  },
  "require-dev": {
    "phpunit/phpunit": "^7.0"
  }
}
```

Then run `composer update`. After that do this initial steps:

- Setup your `.env` file.
- In `app/User.php`, add `api_token` in `$hidden` property.
- In `bootstrap/app.php`, uncomment and add some lines ```
    ...
    $app->withFacades();

    $app->withEloquent();
    ...
    $app->routeMiddleware([
        'auth' => App\Http\Middleware\Authenticate::class,
    ]);
    ...
    $app->register(App\Providers\AppServiceProvider::class);
    $app->register(App\Providers\AuthServiceProvider::class);
    $app->register(App\Providers\EventServiceProvider::class);

    $app->register(Atnic\LumenGenerator\Providers\AppServiceProvider::class);
    $app->register(Atnic\LumenGenerator\Providers\ConsoleServiceProvider::class);

    $app->register(Laravel\Passport\PassportServiceProvider::class);
    ...
    ```
- Update `database/factories/ModelFactory.php`, add `password` and `api_token````
    $factory->define(App\User::class, function (Faker\Generator $faker) {
        return [
            'name' => $faker->name,
            'email' => $faker->email,
            'password' => app('hash')->make('password'),
            'api_token' => str_random()
        ];
    });
    ```
- Update `.gitignore````
    /database/*.sqlite
    /storage/*.key

    ```
- In `phpunit.xml`, remove attribute `syntaxCheck="false"` if exists (ex: Lumen 5.5), because its not compatible with new phpunit package
- Then run ```
    php artisan app:install
    ```

Make Module (CRUD)
------------------

[](#make-module-crud)

This package is overriding some laravel artisan command.

This is example to make Foo module in this project

```
php artisan make:controller --model=Foo FooController
```

Then do this steps:

- Check new migration in `database/migrations/`, add column needed.
- Check new factory in `database/factories/`, add atrribute needed.
- Check new model in `app/`, add changes needed.
- Check new filter in `app/Filters/`, do all `TODO:` and remove the comment if done.
- Check lang en `resources/lang/en` and copy from en to lang id `resources/lang/id`, add language as needed.
- Check new controller in `app/Http/Controllers/`, complete returned array in method `relations()` `visibles()` `fields()` `rules()`, do all `TODO:`, and remove comment if done.
- Check new policy in `app/Policies/`, do all `TODO:` and remove the comment if done.
- No need to append new Policy to `$policies` attribute in `app/Providers/AuthServiceProvider.php`. This package handle policy auto discovery, even for Laravel &lt; 5.8.
- Check new tests in `tests/Feature/`, do all `TODO:` and remove the comment if done.

Other Useful command
--------------------

[](#other-useful-command)

```
# Creating Nested Controller
php artisan make:controller --parent=Foo --model=Bar Foo/BarController

# Create Single Action Controller
php artisan make:controller DashboardController
```

All new/overrided command can be viewed in `vendor/atnic/lumen-generator/app/Console/Commands`.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

2530d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4856bbafb70a46f14e078d91593d9117e564b4e025dce785efd0779915639972?d=identicon)[frdteknikelektro](/maintainers/frdteknikelektro)

---

Top Contributors

[![frdteknikelektro](https://avatars.githubusercontent.com/u/14815819?v=4)](https://github.com/frdteknikelektro "frdteknikelektro (6 commits)")

---

Tags

generatorlumenpackagegeneratorlumen

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/atnic-lumen-generator/health.svg)

```
[![Health](https://phpackages.com/badges/atnic-lumen-generator/health.svg)](https://phpackages.com/packages/atnic-lumen-generator)
```

###  Alternatives

[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[atnic/laravel-generator

Generator for Laravel Framework.

151.7k1](/packages/atnic-laravel-generator)

PHPackages © 2026

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