PHPackages                             coding-partners/auto-controller - 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. coding-partners/auto-controller

ActiveLibrary[Framework](/categories/framework)

coding-partners/auto-controller
===============================

The "Auto Controller" package for Laravel allows you to quickly generate fully functional controllers for any model in your application. With a single command, the package will create a controller with all the standard CRUD (Create, Read, Update, Delete) methods, saving you significant time and effort. This enables you to focus on building the core features of your project.

1.5.5(1y ago)3452MITPHPPHP ^8.0

Since Aug 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/YousefSaleh1/AutoController)[ Packagist](https://packagist.org/packages/coding-partners/auto-controller)[ RSS](/packages/coding-partners-auto-controller/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (8)Used By (0)

coding-partners/auto-controller
===============================

[](#coding-partnersauto-controller)

Description
-----------

[](#description)

`coding-partners/auto-controller` is a Laravel package allows you to quickly create fully functional controllers for any model in your project. With a single command, the package will create a console with all standard CRUD methods (create, read, update, delete) as well as soft-delete methods, saving you a lot of time and effort. This enables you to focus on building the core features of your project. And let's not forget its support for uploading all types of files with high security

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

[](#installation)

To install the package, use the following command via Composer:

```
composer require coding-partners/auto-controller
```

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

[](#requirements)

- PHP version 8.0 or higher is required.

Usage
-----

[](#usage)

To use the package: You must first set up the model and migration. For file fields:

- You must add the suffix `_img` to the image field. EX: image\_img
- You must add the suffix `_vid` to the video field. EX: video\_vid
- You must add the suffix `_aud` to the audio field, EX: audio\_aud
- You must add the suffix `_docs` to the document, EX: file\_docs

```
    public function up(): void
  {
      Schema::create('files', function (Blueprint $table) {
          $table->id();
          $table->string('image_img');
          $table->string('video_vid');
          $table->string('audio_aud');
          $table->string('file_docs');
          $table->timestamps();
      });
  }
```

After ensuring that you have performed all the previous steps, you can run the following command via the Artisan Console:

```
php artisan crud:generate ModelName
```

### Workflow:

[](#workflow)

1. The command will generate `FormRequest` classes for the Store and Update operations.
2. It will then generate an API `Resource` file for the model.
3. You will be prompted to choose whether to add a Service layer:
    - If you answer `yes`, a Service file specific to the controller will be generated, followed by the controller.
    - If you answer `no`, only the controller will be generated.
4. Finally, the necessary routes will be added to the `api.php` file.

#### Example with Service

[](#example-with-service)

```
EUROPELAPTOP@DESKTOP-P3SVV3J MINGW64 /d/CRUD
$ php artisan crud:generate Post
Generating store FormRequest for Post...
FormRequest StorePostRequest created successfully in folder PostRequest.
Generating update FormRequest for Post...
FormRequest UpdatePostRequest created successfully in folder PostRequest.

 Do you want to generate a Service for Post? (yes/no) [no]:
 > yes

Generating Service for Post...
Service PostService created successfully.
Generating CRUD with service for Post...
Controller PostController created successfully.
Generating routes/api.php for Post...
Post Route added successfully.
```

#### Example without Service

[](#example-without-service)

```
EUROPELAPTOP@DESKTOP-P3SVV3J MINGW64 /d/CRUD
$ php artisan crud:generate User
Generating store FormRequest for User...
FormRequest StoreUserRequest created successfully in folder UserRequest.
Generating update FormRequest for User...
FormRequest UpdateUserRequest created successfully in folder UserRequest.
Generating Resource for User...
Resource UserResource created successfully.

 Do you want to generate a Service for User? (yes/no) [no]:
 >

Generating CRUD without service for User...
Controller UserController created successfully.
Generating routes/api.php for User...
User Route added successfully.
```

License
-------

[](#license)

This package is licensed under the [MIT License](https://opensource.org/licenses/MIT).

Contributions
-------------

[](#contributions)

Contributions are welcome! If you'd like to contribute to the development of this package, you can start by opening an `Issue` or submitting a `Pull Request`.

Authors
-------

[](#authors)

- YousefSaleh1
- Ayham-Ibrahim

```

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.5% 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 ~4 days

Total

7

Last Release

617d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e84e68f370016f55e9b845f2a737265c50a5190bbc505c6fb8ab3e3a06cbeb5?d=identicon)[YousefSaleh](/maintainers/YousefSaleh)

---

Top Contributors

[![YousefSaleh1](https://avatars.githubusercontent.com/u/148710592?v=4)](https://github.com/YousefSaleh1 "YousefSaleh1 (19 commits)")[![Ayham-Ibrahim](https://avatars.githubusercontent.com/u/146968216?v=4)](https://github.com/Ayham-Ibrahim "Ayham-Ibrahim (2 commits)")

### Embed Badge

![Health badge](/badges/coding-partners-auto-controller/health.svg)

```
[![Health](https://phpackages.com/badges/coding-partners-auto-controller/health.svg)](https://phpackages.com/packages/coding-partners-auto-controller)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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