Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Webcommand Bundle Laravel Package

eriktrapman/webcommand-bundle

View on GitHub
Deep Wiki
Context7

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());
    }
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
stevenay/myanfont
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge