chris13/autoregister-classmap-plugin 问题修复 & 功能扩展

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

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

chris13/autoregister-classmap-plugin

Composer 安装命令:

composer require chris13/autoregister-classmap-plugin

包简介

Plugin composer to register external source code as PSR4.

README 文档

README

This composer plugin allow to register external source code in the autoload of composer from your project

Installation

Step 1: Enable the Plugin

Before downloading it you need to update your composer.json file with the following:

"extra":
    "chris-autoregister-classmap": {
        "path" : "path/to/modules",
        "filename" : ".module.yml"
    }
}

Path : Directory where you store all your external source code (module)

Filename : The file where you have the namespace and the source directory of your module (it can be a hidden file or not)

Step 2: Download the Plugin

Open a command console, enter your project directory and execute the following command to download the latest stable version of this plugin:

$ composer require chris13/autoregister-classmap-plugin "~1"

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Usage

In each external source code (module) directory that you want registered, you need to a YML file containing the namespace and the source directory of your bundle.

namespace: "App\\Module\\Bundle\\ExampleBundle\\"
source_dir: "src/"

Example

Tests

Run Test in the plugin :

$ phpunit --debug --testsuite All

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2016-01-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固