Turn Any Backbone Operation Into a CLI Command

GitHub GitHub last commit CI Workflow GitHub code size in bytes GitHub Issues Total Downloads Monthly Downloads

Exposes every operation a SafeExplorerInterface discovers as its own auto-discovered Symfony Console command — no per-operation Command subclass, ever.

Why

Backbone Dispatcher already turns a string operation id and a plain array of parameters into a safe, serializable call. This package is one more transport on top of it — the same idea Backbone API is for HTTP, but for a standalone CLI process, meant to be run by hand or invoked from any other language via exec()/system()/subprocess.run(), not just from PHP.

A business library can expose hundreds of operations. OperationCommandLoader builds a Symfony\Component\Console\Command\Command for exactly one, on demand, only when a bin/console invocation actually needs it — never all of them upfront.

Installation

composer require derafu/backbone-console

Requirements

PHP 8.5+. Depends on derafu/backbone-dispatcher, derafu/console, derafu/xml, and symfony/console/symfony/yaml.

On this page

Last updated on 10/10/2026 by Anonymous