Download the PHP package indykoning/laravel-module-create without Composer
On this page you can find all versions of the php package indykoning/laravel-module-create. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download indykoning/laravel-module-create
More information about indykoning/laravel-module-create
Files in indykoning/laravel-module-create
Package laravel-module-create
Short Description Easily create local modules for modular development
License
Informations about the package laravel-module-create
Laravel Module Create
This module adds a command to easily generate "modules" in Laravel and install them using composer
Installation
Simply install the package using composer
composer require indykoning/laravel-module-create --dev
Since this module uses composer to install and autoload the created modules this module can be removed while still keeping created modules functional.
Usage
php artisan make:module {vendor} {package} {--json-vendor=} {--json-package=} {--stub=}
if json-vendor and json-package are not defined, we will make assumptions based on the vendor and package name
The possible values of stub are:
- spatie (uses the spatie skeleton, may prove a somewhat unstable on old laravel installations but is much more fully featured)
- default (the VERY basics of what you need for an install)
Configuration
If you wish to change the folder that the module installs new modules to you can publish the config
and change the module-folder
NOTE: module-folder
is assumed to be relative from the laravel installation, so do not attempt to use an absolute path. Subfolders are fine though.
Internals
- We very simply create the required folders for the vendor and package name
- Then we add the repository path to the composer.json
- Then we install the repository from that path
- Laravel should now auto discover your newly created module and you can get to work