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 yesterday

READMEChangelog (3)Dependencies (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 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

9

Last Release

1054d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)

PHPackages © 2026

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