rhubarbphp / custard
为 Rhubarb 项目提供命令行工具。
1.1.1
2020-06-16 19:53 UTC
Requires
- symfony/console: >=2.7.5
README
Rhubarb 的命令行工具
添加到您的项目
composer require rhubarbphp/custard
从命令行调用
确保您当前位于 Rhubarb 项目的根目录,然后调用
php vendor/rhubarbphp/custard/src/custard.php list
将 "list" 替换为您想要运行的任何命令。
文档模型命令
php vendor/rhubarbphp/custard/src/custard.php document-models [您的模式名称]
此方法将检查 SolutionSchema 中的所有模型,并为所有模型列和关系添加 phpDoc @property 定义。这允许在诸如 PhpStorm 之类的智能 IDE 中进行代码补全和类型提示。