pondermatic/composer-archive-project
Composer 安装命令:
composer require pondermatic/composer-archive-project
包简介
Creates an archive of a composer package with a root project directory.
README 文档
README
This composer plugin adds an archive-project command that is similar to the composer
archive command, except that it creates a project directory at the root of the archive.
For example, if the name field in composer.json is pondermatic/xapi,
then the archive hierarchy would be:
.
|-- xapi/
| |-- src/
| | |-- main.php
| |-- composer.json
| |-- readme.md
instead of:
.
|-- src/
| |-- main.php
|-- composer.json
|-- readme.md
Usage
Installation can be done with Composer, by requiring this package as a development dependency:
composer require --dev pondermatic/composer-archive-project
When using Composer 2.2 or higher, Composer will ask for your permission to allow this plugin to execute code. For this plugin to be functional, permission needs to be granted.
When permission has been granted, the following snippet will be automatically added
to your composer.json file by Composer:
{
"config": {
"allow-plugins": {
"pondermatic/composer-archive-project": true
}
}
}
When using Composer < 2.2, you can add the permission flag ahead of the upgrade to Composer 2.2, by running:
composer config allow-plugins.pondermatic/composer-archive-project true
Now Composer has a new archive-project command. Here is how to use it.
$ composer help archive-project
Description:
Creates an archive of this composer package with a root project directory
Usage:
archive-project [options] [--] [<package> [<version>]]
Arguments:
package The package to archive instead of the current project
version A version constraint to find the package to archive
Options:
-f, --format=FORMAT Format of the resulting archive: tar, tar.gz, tar.bz2 or zip (default tar)
--dir=DIR Write the archive to this directory
--file=FILE Write the archive with the given file name. Note that the format will be appended.
--ignore-filters Ignore filters when saving package
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
--profile Display timing and memory usage information
--no-plugins Whether to disable plugins.
--no-scripts Skips the execution of all scripts defined in composer.json file.
-d, --working-dir=WORKING-DIR If specified, use the given directory as working directory.
--no-cache Prevent use of the cache
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Help:
The archive-project command creates an archive of the specified format
containing the files and directories of the Composer project or the specified
package in the specified version and writes it to the specified directory.
php composer.phar archive-project [--format=zip] [--dir=/foo] [--file=filename] [package [version]]
Read more at https://getcomposer.org/doc/03-cli.md#archive
Compatibility
This plugin is compatible with:
- PHP 7.2, 7.3, 7.4, and 8.0
- Composer 2.3 and 2.4
How it works
The name of the project is taken from the name property in your package's
composer.json file. For example, if your package name is pondermatic/xapi,
then the project name is xapi.
Changelog
1.0.0 (2022-09-29)
- Initial release.
License
Copyright (c) 2022 Pondermatic LLC
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
pondermatic/composer-archive-project 适用场景与选型建议
pondermatic/composer-archive-project 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 26.33k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 09 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 「project」 「archive」 「composer-plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 pondermatic/composer-archive-project 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pondermatic/composer-archive-project 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 pondermatic/composer-archive-project 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A trait to make an Eloquent model archivable
Task system for APPUI
Smart compressed files extractor
OriginPHP Zip
An introduction to machine learning in Rubix ML using the famous Iris dataset and the K Nearest Neighbors classifier.
Class for creation of .tar.zip Archives
统计信息
- 总下载量: 26.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 19
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-29