rawilk/laravel-modules 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rawilk/laravel-modules

最新稳定版本:0.3

Composer 安装命令:

composer require rawilk/laravel-modules

包简介

Laravel module management

README 文档

README

Latest Version on Packagist Build Status GitHub issues Software License Quality Score Total Downloads

rawilk/laravel-modules is a Laravel package to help build modular apps using modules. A module is like a Laravel package; it has some views, controllers and models. Laravel-Modules is supported and tested in Laravel 6.

This package is inspired by nWidart/laravel-modules. Although laravel-modules is mainly intended for my own use and has certain parts written to cater to my needs, you are free to use it.

Installation

To install the package through composer, run the following command

composer require rawilk/laravel-modules

The package will automatically register its service provider and alias.

You can optionally publish the package's configuration file by running:

php artisan vendor:publish --provider="Rawilk\LaravelModules\LaravelModulesServiceProvider"

Autoloading Modules

By default the modules are not loaded automatically. You can autoload the modules by using psr-4 in your composer.json file:

{
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Modules\\": "Modules/"
        }
    }
}
  • If you changed the module namespace in the config file, be sure to change "Modules\\" to your new namespace.
  • If you changed the directory where the modules get stored in the config file, be sure to change "Modules/" to the directory they will be stored in.

Tip: Be sure sure to run composer dump-autoload afterwards.

Database

Database installation and activation of modules is still a work in progress and is not ready for production yet. I do have plans to finish this functionality in a future release.

Documentation

Further information and instructions can be found at: https://rawilk.github.io/laravel-modules/

Credits

License

The MIT License (MIT). Please see the License file for more information.

统计信息

  • 总下载量: 29.05k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-06-16