PHPackages                             ferdinandfrank/laravel-file-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ferdinandfrank/laravel-file-generator

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

ferdinandfrank/laravel-file-generator
=====================================

An easy extension of the Artisan make commands to modify the command's stubs and to generate fully implemented php files.

v1.3(7y ago)520MITPHPPHP &gt;=7.0.0

Since Feb 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ferdinandfrank/laravel-file-generator)[ Packagist](https://packagist.org/packages/ferdinandfrank/laravel-file-generator)[ RSS](/packages/ferdinandfrank-laravel-file-generator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

Laravel File Generator
======================

[](#laravel-file-generator)

[![Packagist Version](https://camo.githubusercontent.com/ebf6215a314ed823681aa8bb283861ce7e245753c938da6c9392d93a48702411/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66657264696e616e646672616e6b2f6c61726176656c2d66696c652d67656e657261746f722e737667)](https://packagist.org/packages/ferdinandfrank/laravel-file-generator)[![Packagist](https://camo.githubusercontent.com/58670685ca08372356e5fcffaec387d2909397bd491f8c8ce717ea031661998d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66657264696e616e646672616e6b2f6c61726176656c2d66696c652d67656e657261746f722e737667)](https://github.com/ferdinandfrank/laravel-file-generator)[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

> ⚠️ This repository has been archived since the functionality of the package is now natively supported by Laravel 7. [See the Laravel 7 changelog for details](https://laravel.com/docs/7.x/releases#laravel-7).

This package is an easy extension of the Artisan make commands provided by your Laravel application to have the ability to modify the command's stubs to your personal needs and to generate fully implemented php classes (controller, requests, policies, etc.) for a specified model.

Requirements
------------

[](#requirements)

- [PHP](https://php.net) &gt;=7.0.0
- An existing &gt;= [Laravel 5.5](https://laravel.com/docs/master/installation) project (For Laravel 5.4 see version 1.0)

For the latest command options as described in the Wiki of this package use the latest Laravel version.

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

[](#installation)

1. To get started, install the package via the Composer package manager:

    ```
    composer require ferdinandfrank/laravel-file-generator --dev
    ```
2. Replace the entry ` Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class` within your providers array in `config/app.php`:

    ```
    'providers' => [
       ...
       // Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
       FerdinandFrank\LaravelFileGenerator\Providers\ConsoleSupportServiceProvider::class,
       ...
    ]
    ```
3. The package should be auto-discovered by Laravel. For manual registration, add the following entry to your providers array in `config/app.php`:

    ```
    'providers' => [
       ...
       ...
       FerdinandFrank\LaravelFileGenerator\Providers\FileGeneratorServiceProvider::class
    ]
    ```

That's it!

Usage
-----

[](#usage)

You can use the Artisan make commands provided by your Laravel application as always. This package is just an extension to provide more options and the flexibility to specify your own stub files. For example, just execute the following command to create a new controller class with the name `UserController` but with your custom specified stub file (if one exist):

```
php artisan make:controller UserController

```

For more details as well as a list of all available commands have a look at the [wiki of this package](https://github.com/ferdinandfrank/laravel-file-generator/wiki).

### Publishing stub files

[](#publishing-stub-files)

To have the full benefits of this package you can execute the following command to publish all the stub files which are used to create the php files when executing an Artisan make command.

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

```

By default the stub files will be copied to the `resources\stubs` folder of your application. As soon as you call an Artisan make command after you executed this publishing command the stub files for generating a new php file will be used as the template from this folder. To modify the path to your stubs file have a look on the next section 'Configuration'.

### Configuration

[](#configuration)

You have the possibility to modify the path to your stub files as well as other configuration options. Therefore you need to publish the configuration file of this package by the following command.

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

```

This command will generate the file `laravel-file-generator.php` within your config folder of your Laravel application.

Commands
--------

[](#commands)

You can see all details and documentation about the available make commands on the [wiki of this package](https://github.com/ferdinandfrank/laravel-file-generator/wiki).

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

2568d ago

PHP version history (2 changes)v1.0PHP &gt;=5.6.4

v1.3PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ee4eec45f5e0140eb39e7b5aa282e6ad082eff31dbfb8130d9c76d54b99f550e?d=identicon)[ferdinandfrank](/maintainers/ferdinandfrank)

---

Top Contributors

[![ferdinandfrank](https://avatars.githubusercontent.com/u/19409640?v=4)](https://github.com/ferdinandfrank "ferdinandfrank (33 commits)")

---

Tags

artisancommandfilegeneratorlaravelphplaravelstubsartisancommandcontrollermakegenerate

### Embed Badge

![Health badge](/badges/ferdinandfrank-laravel-file-generator/health.svg)

```
[![Health](https://phpackages.com/badges/ferdinandfrank-laravel-file-generator/health.svg)](https://phpackages.com/packages/ferdinandfrank-laravel-file-generator)
```

###  Alternatives

[msztorc/laravel-env

Laravel env helper commands

7855.4k](/packages/msztorc-laravel-env)

PHPackages © 2026

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