slendium/build
Composer 安装命令:
composer require slendium/build
包简介
Small utility to organize tasks to make a PHP project production ready
README 文档
README
Small utility for making PHP projects production-ready. Validating code using unit tests or static analysis should happen before this tool runs.
Installation
Simply run composer require slendium/build to add it to your project.
Usage
From your project root, run ./vendor/bin/slendium-build to start the "build" in the current working
directory. WARNING: some tasks remove local files, so make sure to only run this command from inside
a production setup.
The script will go through the following steps:
- Run
composer install --no-dev --classmap-authoritative - Find a list of tasks to run
- Either directly from the arguments, where each argument should be a PHP
class-string<Task> - Or from a file called
SlendiumBuild.jsonin the current working directory
- Either directly from the arguments, where each argument should be a PHP
- Run the tasks in the given order, if all classes exist
SlendiumBuild.json
This JSON file can be put in your project root to specify build options. Currently it supports one key:
tasks- a non-empty list ofclass-string<Task>'s to run in the given order
Tasks
To define your own task, simply create a PHP class that implements the Task interface and add the
fully qualified class name to the script arguments or to the JSON configuration file.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-24