Download the PHP package rayhan2001/module-generator without Composer

On this page you can find all versions of the php package rayhan2001/module-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-generator

Laravel CRUD Module Generator

Laravel PHP Packagist

A powerful Laravel CRUD module generator that quickly scaffolds fully functional modules for both Web (Blade) and API applications. Generate complete CRUD operations with Model, Repository, Controller, Request, Migration, Routes, and Views in seconds.

This package is developer-friendly, supports direct repository injection in controllers, and provides configurable default type (web/api).


✨ Features


📦 Installation

Method 1: Via Packagist (Recommended)

Method 2: Via GitHub (Development)

Add the package repository to your composer.json:

Then install:

Method 3: Local Development

For local development, you can use a path repository:


⚙️ Configuration

After installation, run the setup command:

This will:

Example output:


🚀 Usage

Generate a new module

Available Commands


📁 Generated Files Structure

For a Category module, the following files will be generated:


🛣️ Generated Routes

Web Module Routes

API Module Routes


🎯 Example Usage

1. Generate an API Module

Generated Controller:

2. Generate a Web Module

Generated Controller:


🌐 Access Your Modules

Web Modules

API Modules


⚙️ Configuration

The package publishes a configuration file at config/module-generator.php:


🔧 Customization

Modify Generated Files

After generation, you can customize the generated files:

  1. Add columns to migration: Edit the migration file
  2. Add validation rules: Modify the Request classes
  3. Customize views: Edit the Blade templates
  4. Add business logic: Extend the Repository class

Example: Adding columns to migration


🐛 Troubleshooting

Common Issues

  1. Package not found: Make sure you've added the repository to composer.json
  2. Laravel version compatibility: Ensure you're using Laravel 9-12
  3. Permission issues: Check file permissions for generated files
  4. Route conflicts: Ensure route names don't conflict with existing routes

Getting Help


📋 Requirements


🤝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

Development Setup


📄 License

This package is open-sourced under the MIT License. See the LICENSE file for details.


🙏 Acknowledgments


📊 Stats

GitHub stars GitHub forks GitHub issues GitHub pull requests


All versions of module-generator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/console Version ^9.0|^10.0|^11.0|^12.0
illuminate/filesystem Version ^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^9.0|^10.0|^11.0|^12.0
illuminate/http Version ^9.0|^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rayhan2001/module-generator contains the following files

Loading the files please wait ...