https://github.com/b2pweb/bdf-prime-shell
Interactive shell for prime queries
https://github.com/b2pweb/bdf-prime-shell
Last synced: 5 months ago
JSON representation
Interactive shell for prime queries
- Host: GitHub
- URL: https://github.com/b2pweb/bdf-prime-shell
- Owner: b2pweb
- License: mit
- Created: 2021-05-10T14:52:55.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-03T11:14:55.000Z (over 1 year ago)
- Last Synced: 2024-12-18T21:19:23.523Z (over 1 year ago)
- Language: PHP
- Size: 62.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prime Shell
[](https://github.com/b2pweb/bdf-prime-shell/actions/workflows/php.yml)
[](https://app.codecov.io/github/b2pweb/bdf-prime-shell)
[](https://packagist.org/packages/b2pweb/bdf-prime-shell)
[](https://packagist.org/packages/b2pweb/bdf-prime-shell)
[](https://shepherd.dev/github/b2pweb/bdf-prime-shell)
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) :
```yaml
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 !