Download the PHP package ixspx/module-generator without Composer

On this page you can find all versions of the php package ixspx/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

Module-Generator

PHP Version

Module-Generator in Laravel

Laravel Module Generator with layered architecture: Model, Repository, Service, Controller, Provider. Generate a complete module structure in Laravel, including:

🏗 Architecture Overview

Generate Module

Generated modules follow a layered service–repository architecture:

Generate Standard API

This package provides a standardized API foundation for Laravel applications by implementing a Centralized API Response & Exception Handling Pattern. All HTTP responses are forced into a unified JSON format, and all exceptions are handled in a single, centralized layer, ensuring consistency across the entire application. High-level flow

✨ Key Features

🧠 Architectural Principles

This package follows Clean Architecture–inspired layering, where each layer has a single and well-defined responsibility.

  1. Model Represents the database table (Eloquent ORM).
    • ❌ No business logic
    • ❌ No complex queries
  2. Repository + Interface Encapsulates all data access logic and abstracts the persistence layer.

    • Defines contracts via interfaces
    • Implements database queries (Eloquent, Query Builder, etc.)

    Benefits:

    • ✅ Enables easy testing (mocking repositories)
    • ✅ Allows swapping data sources without affecting business logic 3. Service
  3. Service Contains business rules and application use cases. Responsibilities:

    • Orchestrates workflows
    • Applies domain validation

    Throws domain-specific exceptions

    • ✅ HTTP-agnostic
    • ❌ No request / response handling
    • ❌ No direct database queries
  4. Controller Acts as the delivery layer. Responsibilities:

    • Receives HTTP requests.
    • Delegates execution to services.
    • Returns standardized API responses.

    Controllers remain thin and predictable.

  5. Service Provider Responsible for dependency injection configuration.

    • Binds interfaces to concrete implementations.
    • Registers package services, middleware, and handlers.

    This ensures loose coupling and extensibility.

Centralized Exception Handling

All exceptions—framework, validation, authorization, or domain-specific—are handled in a single place and transformed into a standardized API response. This pattern is also known as:

- Exception-to-Response Mapping.
- API Response Envelope Pattern.
- Opinionated API Layer.

Requirements

Installation

Install via Composer:

⚙ Manual Provider Registration

If package discovery is disabled, register the provider manually in bootstrap/providers.php:

🛠 Usage

Generate Standard API Structure

Run the following command to generate the standard API structure:

You may add the --force option to overwrite existing API files.

Register API Configuration

After running make:api-install, you must manually register the API configuration in bootstrap/app.php:

Generate a Module

Generate a new module using the following command:

Example:

After the command finished, you will see a notification simillar to the flowing:

⚠️ Important:

You must register the generated module service provider manually in bootstrap/providers.php. This command generates a complete module structure based on a predefined layered architecture (Controller, Service, Repository, Interface, etc.).

OR Generate API Response Helper

To generate the API response helper, run:

📄 License

This project is open-source software licensed under the MIT License. See the see LICENSE


All versions of module-generator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1 || ^8.3
illuminate/console Version ^10.0 || ^11.0 || ^12.0
illuminate/filesystem Version ^10.0 || ^11.0 || ^12.0
illuminate/support Version ^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 ixspx/module-generator contains the following files

Loading the files please wait ...