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
Installation
- Download the latest
.vsix from the releases page.
- In VS Code press F1 → Extensions: Install from VSIX... → select the file.
- Reload the window when prompted.
Usage
Open your PHP-GTK3 project folder in VS Code.
Press F1 and run PHP-GTK3 Syntax: Copy Stub File into Workspace.
A file phpgtk3_stubs.php is copied into your workspace root.
Add it to Intelephense’s include paths:
// .vscode/settings.json
{
"intelephense.environment.includePaths": [
"./phpgtk3_stubs.php"
]
}
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
- Fork the repository.
- Generate or update
phpgtk3_stubs.php in root.
- Modify
extension.js or packaging files as needed.
- Update
README.md and bump version in package.json .
- Submit a pull request.
License
MIT © Robert Beran
| |