b2pweb/bdf-prime-shell

Interactive shell for prime queries

v1.0.5 2024-03-05 13:33 UTC

This package is auto-updated.

Last update: 2024-04-05 13:50:09 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 !