b2pweb / bdf-prime-shell
Interactive shell for prime queries
Installs: 1 715
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
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 || ~7.0
Requires (Dev)
- phpunit/phpunit: ~7.0|~8.0|~9.0
- vimeo/psalm: ~4.0|~5.22
README
Interactive shell for execute queries using prime repositories.
Usage
Install using composer
composer require b2pweb/bdf-prime-shell
Register the command into the console (symfony example) :
services: Bdf\Prime\Shell\PrimeShellCommand: class: 'Bdf\Prime\Shell\PrimeShellCommand' arguments: ['@prime'] tags: ['console.command']
Now you can execute the shell :
bin/console prime:shell -p src/Entity
The -p
option allow preloading entity classes for autocomplete.
Now you can call repositories and queries methods like in real PHP !