themosis/composer-exclude-files
最新稳定版本:1.0.1
Composer 安装命令:
composer require themosis/composer-exclude-files
包简介
Composer plugin that allows you to exclude files from autoloader.
README 文档
README
This plugin allows you to exclude files from your project's autoloader.
Installation
The plugin can be installed globally or on a project basis. Run the following command from your terminal:
composer require themosis/composer-exclude-files
Usage
In order to exclude files from being autoloaded upon a Composer operation, simply specify an exclude-from-files key, followed with a list of files to exclude, under the extra property of your composer.json file like so:
"extra": { "exclude-from-files": { "laravel/framework": [ "src/Foundation/helpers.php" ], "symfony/var-dumper": [ "Resources/functions/dump.php" ] } },
First defined the package name you wish to target and then pass it an array of relative paths to files to exclude from that package.
Notes
This Composer plugin automatically exclude files from your project by looking at all its dependencies. Meaning that exclude rules can be defined in both your root package or into one of its dependencies.
Credits
This Composer plugin has been inspired by the mcaskill/composer-plugin-exclude-files package.
The plugin is a working piece of the Themosis framework.
统计信息
- 总下载量: 37.09k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2026-01-04