PHPackages                             eriktrapman/webcommand-bundle - 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. eriktrapman/webcommand-bundle

AbandonedArchivedSymfony-bundle[CLI &amp; Console](/categories/cli)

eriktrapman/webcommand-bundle
=============================

Enables you to run a Command from a browser when there's no SSH-access

034PHP

Since Mar 23Pushed 13y agoCompare

[ Source](https://github.com/ErikTrapman/WebCommandBundle)[ Packagist](https://packagist.org/packages/eriktrapman/webcommand-bundle)[ RSS](/packages/eriktrapman-webcommand-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

WebCommandBundle
================

[](#webcommandbundle)

The aim of this bundle is to ease managing a Symfony-application on a shared-hosting environment. In a shared-hosting environment there's not always the possibility to execute console-commands. This bundle allows to execute a console-command from a Controller and gives feedback in a flahs-message.

The bundle is not intended to make you run long cron-tasks from the Controller but to provide tools to update your database-schema, or install assets.

Example:

```
    /**
     * @Route("/", name="admin_index")
     * @Template("")
     */
    public function indexAction(\Symfony\Component\HttpFoundation\Request $request)
    {

        $form = $this->createForm('eriktrapman_commandselectortype');
        if ($request->getMethod() == 'POST') {
            $form->bind($request);
            if ($form->isValid()) {
                $event = new \ErikTrapman\Bundle\WebCommandBundle\Event\CommandRunEvent(
                    $form->get('command')->getData(),
                    $form->get('options')->getData());
                $this->get('event_dispatcher')->dispatch('eriktrapman.command.run', $event);
                return $this->redirect($this->generateUrl('admin_index'));
            }
        }
        return array('form' => $form->createView());
    }
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/40c5d546520aceb9e4f4b9bccaf4b630fc4a3ef0d53566b9c385fcb2aa3e149a?d=identicon)[ErikTrapman](/maintainers/ErikTrapman)

---

Top Contributors

[![ErikTrapman](https://avatars.githubusercontent.com/u/1147578?v=4)](https://github.com/ErikTrapman "ErikTrapman (5 commits)")

### Embed Badge

![Health badge](/badges/eriktrapman-webcommand-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/eriktrapman-webcommand-bundle/health.svg)](https://phpackages.com/packages/eriktrapman-webcommand-bundle)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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