PHPackages                             filippo-toso/controllers-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. [Framework](/categories/framework)
4. /
5. filippo-toso/controllers-generator

ActiveLibrary[Framework](/categories/framework)

filippo-toso/controllers-generator
==================================

A Laravel Artisan command to automatically generate controllers and tests

v1.3.0(6y ago)164MITPHPPHP ^7.1.3

Since May 3Pushed 6y agoCompare

[ Source](https://github.com/filippotoso/controllers-generator)[ Packagist](https://packagist.org/packages/filippo-toso/controllers-generator)[ RSS](/packages/filippo-toso-controllers-generator/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (13)Used By (0)

Controllers Generator
=====================

[](#controllers-generator)

A Laravel Artisan command to automatically generate controllers.

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

[](#requirements)

- PHP 5.6+
- Laravel 5.4+

Installing
----------

[](#installing)

Use Composer to install it:

```
composer require filippo-toso/controllers-generator

```

How does it work?
-----------------

[](#how-does-it-work)

This generator is very simple. It builds a simple controller with CRUD capabilities (plus list) from a specified model.

By default the generator doesn't overwrite existing controllers.

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

[](#configuration)

You can publish the configuration file with the following command:

```
php artisan vendor:publish --tag=config --provider="FilippoToso\ControllersGenerator\ServiceProvider"

```

The config/controller-generator.php file allows you to:

- specify if flash messages should be added (requires laracasts/flash to work)
- specify the path format of the generated views
- specify the route format of the routes
- specify the url format of the routes

Just open the file and read the comments :)

Options
-------

[](#options)

The predefined use from command line is:

```
php artisan generate:controller {contoller} {model}

```

This command creates a {controller} with CRUD capabilities for the specified {model}.

If there is an existing controller in the App\\Http\\Controllers namespace it will not overwritten.

You can modify the default behavior using the following parameters:

```
php artisan generate:controller {contoller} {model} --overwrite

```

With the overwrite option the generator will always overwrite the controller in the App\\Http\\Controllers namespace.

Other options include:

- --test : When set the generator creates also a test suite for the controller.
- --protected : When set the generator adds code to protect the routes from users without the required permissions.
- --owned : When both this option and --protected are set, the generator ads checks for ownership before updating and deleting resources.
- --routes : When set the generator will add the required routes to the routes/web.php file.
- --base-controller= : Specify the base controller that the generated controller will extend on.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

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

Total

12

Last Release

2437d ago

Major Versions

v0.0.1 → v1.0.02019-05-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/55d89f2d44fb12225de2119994028ee69e36770bcf33c2b1ddf0d6672d28151b?d=identicon)[filippo.toso](/maintainers/filippo.toso)

---

Top Contributors

[![filippotoso](https://avatars.githubusercontent.com/u/26958813?v=4)](https://github.com/filippotoso "filippotoso (12 commits)")

### Embed Badge

![Health badge](/badges/filippo-toso-controllers-generator/health.svg)

```
[![Health](https://phpackages.com/badges/filippo-toso-controllers-generator/health.svg)](https://phpackages.com/packages/filippo-toso-controllers-generator)
```

###  Alternatives

[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[internachi/modular

Modularize your Laravel apps

1.1k662.4k8](/packages/internachi-modular)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[nova-kit/nova-packages-tool

Tool for Laravel Nova Packages Development

275.2M57](/packages/nova-kit-nova-packages-tool)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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