An IntelliJ plugin for editing Zephir code. Provides syntax highlighting, autocompletion, code folding, structure view, and live templates.
Zephir is a high level programming language that eases the creation and maintainability of extensions for PHP. Zephir extensions are exported to C code that can be compiled and optimized by major C compilers such as gcc/clang/vc++. Functionality is exposed to the PHP language.
-
Syntax highlighting
-
Syntax definition and autocompletion
-
Syntax check support
-
Structure View — browse classes, interfaces, methods, properties, and constants via the IDE structure panel
-
Code Folding — fold class/interface bodies, method blocks, inline C blocks (
%{ }%), and multi-line block comments -
Live Templates — expand common Zephir snippets with a short abbreviation:
Abbreviation Expands to clclass definition pubfpublic function protfprotected function privfprivate function forefor key, value in collectionloopforifor value in collectionlooprevfor value in reverse collectionloopwhwhile loop dowhiledo-while loop tctry-catch block -
Rename Refactoring — rename classes, interfaces, methods, properties, and constants across the file
-
Implementations Gutter — see subclass and implementation counts next to class and interface declarations in the editor gutter
-
Go To Declaration — Ctrl+click a class or interface name to jump to its declaration; qualified names resolve via namespace-to-directory mapping, and aliases navigate to their
usestatement
You can install the plugin from within the JetBrains IDE by going to Settings > Plugins > Marketplace and then searching for "Zephir". After installing the plugin, restart the IDE and then open your existing Zephir project or create a new project.
You're encouraged to contribute to the plugin if you've found any issues or missing functionality that you would want to see. Check out CONTRIBUTING.md to learn how to set up the project.
Copyright (c) 2014-2026 Zephir Team.
Licensed under the MIT License.