Download the PHP package teksite/module without Composer
On this page you can find all versions of the php package teksite/module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package module
Modular laravel Package
About
This package has been developed to enable modularity in Laravel. All its commands are similar to Laravel native commands, with the difference that you need to prepend module:
to the commands. Additionally, the name of the created file and the target module should be specified at the beginning of the command, followed by the arguments and options.
By default, teksite/lareon make a directories in the root of the application "Lareon/Modules
" and generate small version of laravel directories and files, so you can deal with them as you do with Laravel
example
module:make-controller <ControllerName> <ModuleName> <--option>
Author
Sina Zangiband
Contact
- Website: laratek.ir
- Alternate Website: teksite.net
-
email: [email protected]
Installation
Laravel | package |
---|---|
11.0 | ^1.0 |
Step 1: Install via Composer
Run the following command in your CLI:
wikimedia/composer-merge-plugin
if you face to Do you trust "wikimedia/composer-merge-plugin" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?]
press y
and enter. this package is used to recognize and merge composer.json files of modules.
Step 2: Register the Service Provider
Note: This step is not required for newer versions of Laravel (5.x and above) but in case:.
Laravel 10 and 11
Add the following line to the bootstrap/providers
file:
Laravel 5.x and earlier
If you are using Laravel 5.x or earlier, register the service provider in the config/app.php
file under the providers
array:
Step 3: publish Service Provider (optional)
Optionally, publish the package's configuration file by running:
Step 4: add to Composer.json
By default, modules classes are not loaded automatically. You can autoload your modules by adding below codes:
Step 6: publish Service Provider (optional)
Tip: do not forget: composer dump-autoload
.
How to work with the package
make a module
make a model in a module
make a controller in a module
all commands of this package is same as Laravel with their options.
Change module priority
To change priority of loading modules you can change the order of modules in the config/modules
.
Credits
License
The MIT License (MIT). Please see License File for more information.
Feel free to reach out if you have any questions or need assistance with this package!
All versions of module with dependencies
illuminate/support Version ~11.0
teksite/handler Version *
teksite/extralaravel Version *
ext-dom Version *
ext-json Version *
ext-simplexml Version *
wikimedia/composer-merge-plugin Version ^2.1