Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PHP-GTK3 SyntaxNew to Visual Studio Code? Get it now.
PHP-GTK3 Syntax

PHP-GTK3 Syntax

Robert Beran

|
771 installs
| (0) | Free
Enables autocomplete, static analysis and error checking for PHP-GTK3 projects.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PHP-GTK3 Syntax

Provides PHP-GTK3 syntax support and a ready-to-use stub file for Intelephense in VS Code, plus a command to copy it into your workspace.

Features

  • 📄 Includes a complete phpgtk3_stubs.php with all GTK3 classes, methods and constants
  • 🚀 Command “PHP-GTK3 Syntax: Copy Stub File into Workspace” to install the stub in your project root
  • ✅ Enables autocomplete, static analysis and error checking for PHP-GTK3 projects

Requirements

  • VS Code ≥ 1.60
  • Intelephense installed and enabled

Installation

  1. Download the latest .vsix from the releases page.
  2. In VS Code press F1 → Extensions: Install from VSIX... → select the file.
  3. Reload the window when prompted.

Usage

  1. Open your PHP-GTK3 project folder in VS Code.

  2. Press F1 and run PHP-GTK3 Syntax: Copy Stub File into Workspace.

  3. A file phpgtk3_stubs.php is copied into your workspace root.

  4. Add it to Intelephense’s include paths:

    // .vscode/settings.json
    {
      "intelephense.environment.includePaths": [
        "./phpgtk3_stubs.php"
      ]
    }
    
  5. Now VS Code will autocomplete and type-check all PHP-GTK3 symbols.

Commands

Command Description
PHP-GTK3 Syntax: Copy Stub File into Workspace Copies phpgtk3_stubs.php into project root

Extension Settings

This extension contributes no custom settings.

Release Notes

1.0.0

  • Initial release
  • Full stub generation for all GTK3 classes, methods & constants
  • Adds static & instance method overloads to satisfy Intelephense

Known Issues

  • If you regenerate your own stubs, you must overwrite phpgtk3_stubs.php manually or re-run the copy command.
  • Intelephense caching may require reloading the window after updating the stub.

Contributing

  1. Fork the repository.
  2. Generate or update phpgtk3_stubs.php in root.
  3. Modify extension.js or packaging files as needed.
  4. Update README.md and bump version in package.json.
  5. Submit a pull request.

License

MIT © Robert Beran

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