b2pweb/bdf-prime-shell

Interactive shell for prime queries

Installs: 2 505

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/b2pweb/bdf-prime-shell

v1.0.7 2024-10-11 13:57 UTC

This package is auto-updated.

Last update: 2025-10-01 00:06:54 UTC


README

build codecov Packagist Version Total Downloads Type Coverage

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 !