b2pweb / bdf-prime-shell
用于执行质查询的交互式shell
v1.0.5
2024-03-05 13:33 UTC
Requires
- php: ~7.1 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0
- b2pweb/bdf-collections: ~1.1
- b2pweb/bdf-prime: ~1.0|~2.0
- b2pweb/bdf-prime-analyzer: ~1.0
- b2pweb/bdf-util: ~1.0
- psy/psysh: ~0.10
- symfony/console: ~4.0 || ~5.0 || ~6.0
Requires (Dev)
- phpunit/phpunit: ~7.0|~8.0|~9.0
- vimeo/psalm: ~4.0|~5.22
README
用于通过质仓库执行查询的交互式shell。
用法
使用composer安装
composer require b2pweb/bdf-prime-shell
将命令注册到控制台(以symfony为例)
services: Bdf\Prime\Shell\PrimeShellCommand: class: 'Bdf\Prime\Shell\PrimeShellCommand' arguments: ['@prime'] tags: ['console.command']
现在你可以执行shell
bin/console prime:shell -p src/Entity
-p
选项允许预加载实体类以实现自动完成。现在你可以像在真实的PHP中一样调用仓库和查询方法!