ibexa / bundle-generator
Ibexa DXP 项目使用的 Symfony Bundle 生成器
dev-main / 1.0.x-dev
2024-08-21 09:25 UTC
Requires
- php: >=8.3
- symfony/console: ^5.4
- symfony/filesystem: ^5.4
Requires (Dev)
- composer/composer: ^2.1
- friendsofphp/php-cs-fixer: ^3.0
- ibexa/code-style: ~2.0.0
- phpstan/phpstan: ^0.12.75
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-09-21 09:35:32 UTC
README
Ibexa DXP 项目使用的 Symfony Bundle 生成器。
作为独立应用程序使用生成器
捆绑生成器可以以独立应用程序模式运行。
1. 克隆仓库。
git clone git@github.com:ibexa/bundle-generator.git
2. 切换到捆绑生成器目录。
cd bundle-generator
3. 安装依赖项
composer install
4. 运行捆绑生成器
php bin/ibexa-bundle-generator video-editor --skeleton-name=extension
5. 调整捆绑以满足以下参数的需求
- 包名,例如
video-editor
- 供应商名,例如
ibexa
- 捆绑名,例如
VideoEditor
- 供应商命名空间,例如
Ibexa
- 骨架名,例如
ibexa-ee
这将在 ./target
目录中创建捆绑文件结构。
或者,您可以使用带有所有可用选项的命令
$ php ./ibexa-bundle-generator video-editor video-editor-dir --vendor-name=ibexa --vendor-namespace=Ibexa --bundle-name=VideoEditor --skeleton-name=ibexa-ee
完整概要
Usage:
generate-bundle [options] [--] [<package-name> [<target-dir>]]
Arguments:
package-name Package name e.g page-builder
target-dir Target directory [default: "target"]
Options:
--vendor-name=VENDOR-NAME Package vendor name e.g. ibexa
--vendor-namespace=VENDOR-NAMESPACE e.g. Ibexa
--bundle-name=BUNDLE-NAME e.g. IbexaPageBuilder
--skeleton-name=SKELETON-NAME Skeleton name
-h, --help Display help for the given command. When no command is given display help for the generate-bundle command
-q, --quiet Don't output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Don't ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
版权
版权 (C) 1999-2024 Ibexa AS(前身为 eZ Systems AS)。保留所有权利。
许可证
此源代码可以在以下许可证下单独使用
A - Ibexa 商业使用许可协议(Ibexa BUL),版本 2.3 或更高版本(因为许可条款可能随时更新)Ibexa BUL 通过有效的 Ibexa DXP(前身为 eZ Platform Enterprise)订阅获得,如以下所述:https://www.ibexa.co/product 有关 Ibexa BUL 许可证全文,请参阅:https://www.ibexa.co/software-information/licenses-and-agreements(适用最新版本)
并且
B - GNU 通用公共许可证,版本 2。授予一个绝对没有任何保证的 copyleft 开源许可证。有关 GPL 许可证的全文,请参阅:https://gnu.ac.cn/licenses/old-licenses/gpl-2.0.html