Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Chevere WorkflowNew to Visual Studio Code? Get it now.
Chevere Workflow

Chevere Workflow

FERAS ABDALRAHMAN

|
3 installs
| (0) | Free
Provides autocompletion support for Chevere Workflow PHP package
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Chevere Workflow VSCode Extension

A Visual Studio Code extension that provides autocompletion support for the Chevere Workflow PHP package.

Chevere Workflow Extension Screenshot

Features

  • Intelligent autocompletion for Chevere Workflow functions and methods
  • Code snippets for common patterns
  • Quick help command with examples

Autocompletion

The extension provides context-aware autocompletions for:

  • Core Workflow functions: workflow(), sync(), async(), variable(), response(), run()
  • Job methods: withRunIf(), withDepends()

Autocompletions include detailed descriptions and appropriate parameter placeholders.

Snippets

The following snippets are available:

  • chevere-workflow-import: Import all Chevere Workflow functions
  • chevere-workflow-class: Create a class with WorkflowTrait
  • chevere-workflow-try: Add a try-catch block for workflow error handling
  • chevere-action: Create a basic Chevere Action class

Command

  • Chevere Workflow: Show Help: Opens a help panel with examples and documentation

Requirements

  • Visual Studio Code 1.70.0 or newer
  • PHP files must use the Chevere Workflow package imports for autocompletion to work

Installation

From VS Code Marketplace

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Chevere Workflow"
  4. Click Install

From VSIX File

  1. Download the .vsix file from Releases
  2. Open VS Code
  3. Go to Extensions (Ctrl+Shift+X)
  4. Click the "..." menu in the top-right of the Extensions panel
  5. Select "Install from VSIX..." and choose the downloaded file

Example Usage

<?php

use function Chevere\Workflow\{workflow, sync, async, variable, response, run};

// Define a workflow
$workflow = workflow(
    validate: sync(
        new ValidateImage(),
        file: variable('file')
    ),
    thumb: async(
        new ResizeImage(),
        file: variable('file'),
        width: 150
    ),
    store: sync(
        new StoreFile(),
        file: response('thumb', 'path')
    )
);

// Run the workflow
try {
    $run = run(
        workflow: $workflow,
        arguments: [
            'file' => '/path/to/image.jpg'
        ]
    );
    $storedPath = $run->response('store')->string();
} catch (\Chevere\Workflow\Exceptions\WorkflowException $e) {
    // Handle error
}

Development

Building from Source

  1. Clone the repository
git clone https://gitlab.com/trinavoprivate/chevere-workflow-vscode.git
cd chevere-workflow-vscode
  1. Install dependencies
npm install
  1. Run ESLint
npm run lint
  1. Package the extension
npm run package

License

This extension is licensed under the Apache License 2.0 - see the LICENSE file for details.

Acknowledgments

  • Chevere Workflow - The PHP library this extension supports

Support

If you like this extension, please consider supporting me with a coffee. Buy Me A Coffee

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft