Download the PHP package saeedhosan/module-console without Composer

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

Module Console

This package extends every Laravel artisan make command with a --module flag, so you can generate models, controllers, migrations, and more directly inside any module. It also scaffolds entire module skeletons in one command and lets you publish and customize the stubs to fit your workflow.

Alternative

There are many alternative packages for creating module skeletons, but they don't give you much flexibility and are auto-discovered. This package gives you full control over your modules.

Here are a few popular packages:

Requirements

Installation

Install via Composer:

Suggestions

After creating a module, you need to load it into your application. Here are two ways to do it:

1. Use Composer path repositories (recommended)

Add this to your root composer.json so Composer treats every module as a local package:

Then require the module like any Composer package:

Composer will symlink it and auto-discover the service provider — no manual registration needed.

2. Add the module namespace manually

Register the module's namespace in your composer.json:

Then run composer dump-autoload and register the service provider in bootstrap/providers.php:

Configuration

Want to customize the generated files? Publish the stubs and edit them however you like:

Want to customize how modules are organized? Publish the config file:

Here's what you can tweak in config/module.php:

Quick Start

Create your first module:

This generates a clean module structure based on stubs:

Every Laravel make command works with modules too. Just pass the --module flag:

This package supports almost all make:* commands to create something inside a module.

See all your modules:

Testing

Contributing

Found a bug or want to add a feature? Pull requests are totally welcome. Just make sure the tests pass before submitting.


Module Console was created by Saeed Hosan under the MIT license.


All versions of module-console with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2.0
laravel/framework Version ^11.0 || ^12.0 || ^13.0
saeedhosan/module-support Version ^0.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 saeedhosan/module-console contains the following files

Loading the files please wait ...