webspot/modulemanager 问题修复 & 功能扩展

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

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

webspot/modulemanager

最新稳定版本:2.0.0-alpha2

Composer 安装命令:

composer require webspot/modulemanager

包简介

Webspot Module Manager library

README 文档

README

Build Status Code Climate Test Coverage

The ModuleManager allows you to split up your code into logical modules and still be able to easily use them together. It integrates seamlessly with the Webspot Application package but has no dependency on it. The ModuleManager is however heavily dependent upon Composer's autoloader and needs it to be instantiated, after which it will add any Module path for autoloading when the Module is added to the ModuleManager.

The Module object

A Module is a simple object describing the Namespace and local root path of the module.

The base interface consists just of the methods necessary to make this possible: getNamespace() to return the base namespace; getPath() to get the module's root path; and finally getFile() to find a file path within the Module.

The ModuleManager

The ModuleManager keeps track of added Modules and helps you find files across modules. You can retrieve individual modules by their Namespace or get all of them in an array. Modules are prioritized in reverse order (this is implemented using the SplStack) from which they were added, thus the last in is the first to be checked with getFile()/getFiles() or in the array returned from getModules(). Modules can be added by using $moduleManager->addModule($module); where the $module is a configured Webspot\ModuleManager\ModuleInterface object.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-01-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固