PHPackages                             shcherbanich/symfony-console-gpt - 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. shcherbanich/symfony-console-gpt

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

shcherbanich/symfony-console-gpt
================================

Use console application through regular chat with ConsoleGpt!

v0.1.0(1y ago)85MITPHPPHP ^8.1.0

Since Jan 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/shcherbanich/symfony-console-gpt)[ Packagist](https://packagist.org/packages/shcherbanich/symfony-console-gpt)[ Docs](https://github.com/shcherbanich/symfony-console-gpt)[ RSS](/packages/shcherbanich-symfony-console-gpt/feed)WikiDiscussions 0.1.x Synced 1mo ago

READMEChangelog (1)Dependencies (10)Versions (2)Used By (0)

ConsoleGpt - Symfony GPT Console Assistant
==========================================

[](#consolegpt---symfony-gpt-console-assistant)

This library allows seamless integration of a GPT-based chat interface with `symfony/console`, enabling users to execute one command or a sequence of commands and manipulate them interactively via chat.

**Have you dreamed of speaking the same language with your application? 😀**

[![](docs/assets/demo.gif)](docs/assets/demo.gif)

*Try chatting with the demo app*

```
$ OPENAI_API_KEY='' php demo/demo.php chat
```

Features
--------

[](#features)

- **Run Console Commands**: Execute a single Symfony console command or a sequence of commands through an interactive chat.
- **Processing the result**: Dynamically change and modify the return result of console commands. If you want to display it in the form of a table, please do so. Translating into any language is not a problem.
- **Easy to use**: Integrate ConsoleGpt into your existing Symfony console application and start talking to it today!

Installation
------------

[](#installation)

1. Add the library to your project via Composer:

    ```
    composer require shcherbanich/symfony-console-gpt
    ```
2. Ensure your project uses Symfony Console (`symfony/console`).
3. Add the `Chat` command to your Symfony console application.
4. Set the environment variable `OPENAI_API_KEY`.

Usage
-----

[](#usage)

### Basic Setup

[](#basic-setup)

The library provides a ready-to-use command: `ConsoleGpt\Command\ChatCommand`. You can use it in your project in two ways:

1. **Add the Command to Your Application**
    Include the `ChatCommand` in your console application:

    ```
    use ConsoleGpt\Command\ChatCommand;
    use Symfony\Component\Console\Application;

    $application = new Application();
    $application->add(new ChatCommand());
    $application->run();
    ```
2. **Inherit from the Chat Application**

    ```
    namespace MyApp\Console;

    use ConsoleGpt\Application as ChatApplication;

    final class SomeApp extends ChatApplication
    {
        // Add custom behavior here
    }
    ```

In this case, the command will be available in your application.

### Running the Chat Command

[](#running-the-chat-command)

Run the `chat` command in your console:

```
$ OPENAI_API_KEY='' php console chat
```

and enjoy the magic :)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance41

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

491d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b5b538dd6b74f71a541338284ecb23d74b3784328a2f8dc1cc7804cadc4f304?d=identicon)[shcherbanich](/maintainers/shcherbanich)

---

Top Contributors

[![shcherbanich](https://avatars.githubusercontent.com/u/3122336?v=4)](https://github.com/shcherbanich "shcherbanich (9 commits)")

---

Tags

chatgptconsole-applicationgpt-assistanthaktoberfesthelperphp-libraryphpconsolesymfonyopenaiChatGptllmssymfony-console

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/shcherbanich-symfony-console-gpt/health.svg)

```
[![Health](https://phpackages.com/badges/shcherbanich-symfony-console-gpt/health.svg)](https://phpackages.com/packages/shcherbanich-symfony-console-gpt)
```

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[nunomaduro/phpinsights

Instant PHP quality checks from your console.

5.6k10.8M426](/packages/nunomaduro-phpinsights)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[drupal/console-core

Drupal Console Core

13514.7M12](/packages/drupal-console-core)[mahocommerce/maho

Free and open source ecommerce platform, created in 2024 on the M1 platform, PHP 8.3+

1322.1k12](/packages/mahocommerce-maho)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
