mleczakm / pulpo18bundle
Pulpo18 包
dev-master
2017-04-27 20:33 UTC
Requires
- php: >=5.6
- mleczakm/platform-based: ~0.2
- symfony/console: ^2.3 || ^3.0
- symfony/dependency-injection: ~2.3|~3.0
- symfony/framework-bundle: ~2.3|~3.0
Requires (Dev)
- phpunit/phpunit: ^5.4
This package is auto-updated.
Last update: 2024-09-23 09:41:25 UTC
README
Pulpo18Bundle
Symfony Bundle,用于使用免费的 Pulpo 18 库 创建漂亮的架构图像。
安装
1) 下载
composer require --dev mleczakm/pulpo18bundle
2) 启用 Bundle
// app/AppKernel.php
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
// ...
$bundles[] = new mleczakm\Pulpo18Bundle();
}
用法
生成架构图像
运行命令
php bin/console pulpo -import-project src/AppBundle -orm Doctrine2 -export-image output.png
从 AppBundle 使用 Doctrine2 (也支持 Propel 和 Doctrine)生成架构图像,输出到应用主目录下的 output.png。
已知限制
- 仅在 Linux x64 机器上工作
- 需要 Qt 平台插件 "xcb"