piotrpress/composer-classmapper 问题修复 & 功能扩展

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

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

piotrpress/composer-classmapper

最新稳定版本:v3.1.0

Composer 安装命令:

composer require piotrpress/composer-classmapper

包简介

This Composer command generates a classmap.php file based on project files.

README 文档

README

This Composer command generates a classmap.php file based on project files.

NOTE: The command can be executed in projects without composer.json file too.

Installation

  1. Add the command as a global composer plugin:
$ composer global require piotrpress/composer-classmapper
  1. Allow plugin execution:
$ composer config -g allow-plugins.piotrpress/composer-classmapper true

Usage

  1. Execute the command in project's directory:
$ composer map [-e|--exclude [REGEX]]

NOTE: The option exclude is regex that matches file paths to be excluded from the classmap.

  1. After the command execution, simply include autoload file in the project:
require __DIR__ . '/autoload.php';

Example

$ composer map -e"#/vendor/composer/(.*)#"

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-11