PHPackages                             llm-agents/agent-symfony-console - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. llm-agents/agent-symfony-console

ActiveLibrary[CLI &amp; Console](/categories/cli)

llm-agents/agent-symfony-console
================================

Simple agent that can handle Symfony Console commands based on user input

1.1.0(1y ago)183MITPHPPHP ^8.3

Since Sep 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/llm-agents-php/agent-symfony-console)[ Packagist](https://packagist.org/packages/llm-agents/agent-symfony-console)[ RSS](/packages/llm-agents-agent-symfony-console/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (8)Versions (8)Used By (0)

Symfony Console Agent 🎭
=======================

[](#symfony-console-agent-)

[![PHP](https://camo.githubusercontent.com/c3d0e033118fee95a4a962095037eb85c1821eea31609e530593d8333de72764/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6c6c6d2d6167656e74732f6167656e742d73796d666f6e792d636f6e736f6c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/llm-agents/agent-symfony-console)[![Latest Version on Packagist](https://camo.githubusercontent.com/e5f8388a522c98388d7b70ef5840eb67fe06dbaeed7dd1687091cb4f37710d35/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6c6d2d6167656e74732f6167656e742d73796d666f6e792d636f6e736f6c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/llm-agents/agent-symfony-console)[![Total Downloads](https://camo.githubusercontent.com/575923f3b768d716d674502070ca32dcbd7ae6aa7337c77ef4bda534c09a38a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6c6d2d6167656e74732f6167656e742d73796d666f6e792d636f6e736f6c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/llm-agents/agent-symfony-console)

Welcome to the Symfony Console Agent, your new bestie for turning natural language into command-line magic. This nifty agent understands your human babble and translates it into console commands. It's like having a super-smart CLI assistant right at your fingertips!

### What's the deal? 🤔

[](#whats-the-deal-)

Ever wished you could just tell your console what to do in plain English? Well, now you can! This agent takes your casual requests and figures out which Symfony command to run. It's perfect for devs who are new to a project, can't remember exact command syntax, or just feeling a bit lazy (we've all been there).

**Here's a short video to show you how it works:**

[![Symfony Console Agent Demo](https://private-user-images.githubusercontent.com/773481/364282458-e3a0efd6-486f-48d6-a90a-5595efa9fc45.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUxMDI0ODQsIm5iZiI6MTc3NTEwMjE4NCwicGF0aCI6Ii83NzM0ODEvMzY0MjgyNDU4LWUzYTBlZmQ2LTQ4NmYtNDhkNi1hOTBhLTU1OTVlZmE5ZmM0NS5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNDAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDQwMlQwMzU2MjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMmE0YTI5MmJkMWY3YWM1MjNlMWRmMzkwMGM1YzcwODNlYjRmODRjY2QxZjMwNmVkZWJiZWIwMjhkMTVmYWE4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.DqOrV2HW9odnZPIAYXzs06YSuKLhptKFraNDNVR6Sys)](https://youtu.be/Tlu6PyL3Ur4)

### Requirements 📋

[](#requirements-)

- PHP 8.3 or higher (we're living in the future, baby!)
- Symfony Console component
- A sense of humor (optional, but highly recommended)

### Installation

[](#installation)

First, make sure you've got Composer installed. Then, run this command to add the Symfony Console Agent to your project:

```
composer require llm-agents/agent-symfony-console
```

### Setup in Spiral Framework

[](#setup-in-spiral-framework)

1. Open up your `app/src/Application/Kernel.php` file.
2. Add the bootloader like this: ```
    public function defineBootloaders(): array
    {
        return [
            // ... other bootloaders ...
            \LLM\Agents\Agent\SymfonyConsole\Integrations\Spiral\SymfonyConsoleBootloader::class,
        ];
    }
    ```

And that's it! Your Spiral app is now ready to use the agent.

### Laravel

[](#laravel)

For Laravel, there's a service provider you can use:

```
// bootstrap/providers.php
return [
    // ... other providers ...
    LLM\Agents\Agent\SymfonyConsole\Integrations\Laravel\SymfonyConsoleServiceProvider::class,
];
```

Usage
-----

[](#usage)

To start using the Symfony Console Agent, you'll need to implement the `LLM\Agents\Agent\SymfonyConsole\CommandManagerInterface`. interface. This interface is responsible for fetching command help, listing available commands, and executing commands.

**Here's an example of how you might use it in a Laravel application:**

```
