PHPackages                             moharamiamir/codegen - 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. moharamiamir/codegen

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

moharamiamir/codegen
====================

generate code for you

0.1.8(2y ago)020MITPHP

Since Aug 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/moharami/codegen)[ Packagist](https://packagist.org/packages/moharamiamir/codegen)[ RSS](/packages/moharamiamir-codegen/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (10)Used By (0)

Laravel Prompt API Generator
============================

[](#laravel-prompt-api-generator)

This project provides a fast and streamlined way to create a RESTful API using Laravel Prompt. By answering a few questions, you can generate all the necessary code to set up your API.

Getting Started
---------------

[](#getting-started)

To get started with the Laravel Prompt API Generator, please follow these steps:

#### Install the necessary dependencies:

[](#install-the-necessary-dependencies)

composer require this package

```
composer require moharami/codegen --dev
```

### Set your database variable

[](#set-your-database-variable)

open .env file and put your database variable that your program can connect to database correctly.

### Run the following command:

[](#run-the-following-command)

```
php artisan make:code
```

Answer the prompted questions to configure your API. These questions will include details about routes, controllers, models, and database migration.

Once you have answered all the questions, the Laravel Prompt API Generator will generate all the necessary code files and configurations for your RESTful API.

Finally, run the following command to start your API server:

```
php artisan serve
```

Your RESTful API is now up and running! You can access it by visiting  in your browser.

### What files does it create?

[](#what-files-does-it-create)

the list of files that this command creates is :

1. Model
2. Migration (add fields you write in propmt)
3. Controller
4. BaseController
5. Request(save and update) - for validation base on your input
6. Reource
7. Factory
8. Seeder
9. Route ( add a new route )
10. Exception

### Contributing

[](#contributing)

Contributions are welcome! If you encounter any issues or have any suggestions for the Laravel Prompt API Generator, feel free to open an issue or submit a pull request.

### License

[](#license)

This project is licensed under the MIT License - see the LICENSE file for details.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

9

Last Release

1004d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/moharamiamir-codegen/health.svg)

```
[![Health](https://phpackages.com/badges/moharamiamir-codegen/health.svg)](https://phpackages.com/packages/moharamiamir-codegen)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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