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 today

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

24

—

LowBetter than 31% of packages

Maintenance38

Infrequent updates — may be unmaintained

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

542d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3122336?v=4)[Filipp Shcherbanich](/maintainers/shcherbanich)[@shcherbanich](https://github.com/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

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M571](/packages/shopware-core)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[sulu/sulu

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

1.3k1.4M203](/packages/sulu-sulu)[sproutcms/cms

Enterprise content management and framework

242.5k4](/packages/sproutcms-cms)[whatsdiff/whatsdiff

See what's changed in your project's dependencies

771.2k](/packages/whatsdiff-whatsdiff)

PHPackages © 2026

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