First-class Aspect-Oriented Programming support for PHP, right inside your IDE.
Bring the full power of Aspect-Oriented Programming to your PHP workflow. This plugin integrates the Go! AOP Framework deeply into PhpStorm and IntelliJ IDEA with a dedicated language engine for pointcut expressions — so your cross-cutting concerns get the same IDE love as the rest of your code.
Version 2 supports Go! AOP 4.0: its pointcut syntax and matching rules, and checks for the changes listed in the upgrade guide.
-
Pointcut Language Engine - A complete custom language implementation for Go! AOP pointcut expressions — with a full lexer, parser, and PSI tree. Write pointcuts with confidence: syntax errors are caught instantly, before you ever run your application. Covers the whole Go! AOP 4.0 syntax: modifier groups (
final public|protected),readonly,private(set)andprotected(set), union, intersection and nullable return types,matchReturningByReference()and named pointcuts of other aspects. -
Go! AOP 4.0 Migration Checks - Removed constructs are reported with a hint on what to use instead:
dynamic()pointcuts (with a quick-fix),cflowbelow(), the?wildcard,#[Aspect]and#[DeclareError]. Inspections flag non-public advice methods (quick-fix: make public), methods with two advice attributes, and advised methods that return by reference, which 4.0 can not weave. -
Smart Code Completion - Auto-complete pointcut keywords, visibility modifiers, PHP class names, method names, and PHP attributes exactly where they are valid. The completion popup triggers automatically as you type inside pointcut expressions.
-
Syntax Highlighting & Color Customization - Pointcut expressions are highlighted with dedicated token colors. Adjust every color to match your theme via Settings > Editor > Color Scheme > Go! AOP Pointcut.
-
Line Markers & Bi-directional Navigation - Jump from any advice method directly to the PHP elements it intercepts and from any advised class or method back to all matching advices, including
#[DeclareParents]introductions andinitialization()pointcuts. Gutter icons make the AOP wiring visible at a glance — no more hunting through aspect classes. -
Language Injection - Pointcut expressions of
Go\Lang\Attribute\*PHP attributes (#[Before],#[Around],#[Pointcut],#[DeclareParents]...) and ofPointcutBuildercalls are automatically recognized as the pointcut language, giving you full IDE support without leaving your PHP file. -
Attribute Validation - Invalid PHP attributes used in
@access,@execution, and@withinpointcuts are flagged inline with actionable error messages — catch mistakes at edit time, not at runtime. -
Find Usages & Rename Refactoring - PHP class names and member names referenced inside pointcut expressions participate in Find Usages and Rename refactoring. Rename a class or method and all pointcut references update automatically.
-
File-based Indexes - Lightning-fast cross-file lookups power navigation and line markers even in large codebases, with a small performance penalty on project indexing.
-
Standalone
.goaopFile Support - Work with pointcut expressions in standalone.goaopfiles with full language support — useful for documentation, snippets, and tooling integration.
From the JetBrains Marketplace (recommended)
Settings > Plugins > Marketplace > search "Go! AOP" > Install
Or install directly: plugins.jetbrains.com/plugin/7785
Manually
Download the latest release and install via:
Settings > Plugins > ⚙ > Install Plugin from Disk…
Suggest the plugin to everyone working on your project
The plugin declares support for the goaop/framework Composer package, so the IDE can suggest it for projects that
require the framework once PhpStorm collects Composer dependencies for plugin suggestions.
To have the IDE prompt for the plugin today, mark it as required for your project: Settings >
Appearance & Behavior > Required Plugins > + > Go! AOP Framework, or
commit .idea/externalDependencies.xml with:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalDependencies">
<plugin id="com.aopphp.go.framework" />
</component>
</project>Anyone who opens the project without the plugin then gets a notification with a one-click install.
# Launch a sandboxed IDE with the plugin loaded
./gradlew runIde
# Build the distributable ZIP
./gradlew buildPlugin
# Verify compatibility across IDE versions
./gradlew runPluginVerifier# Run all tests
./gradlew test
# Run a specific test class
./gradlew test --tests "com.aopphp.go.SomeTestClass"
# Run tests with code coverage
./gradlew test koverXmlReportCoverage report: build/reports/kover/report.xml
| Package | Description |
|---|---|
parser/ |
Lexer and parser tests (LexerTestCase / ParsingTestCase) |
pointcut/ |
AOP pointcut matching logic (And/Or/Not, Signature, Attribute…) |
util/ |
Utility class tests (PhpClassUtil, PluginUtil, AttributeTargetUtil) |
annotator/ |
IDE integration tests for pointcut errors and migration hints |
inspection/ |
IDE integration tests for the PHP inspections of aspects |
completion/ |
IDE integration tests for keyword and modifier completion |
injector/ |
IDE integration tests for language injection into PHP attributes |
Test fixtures (.goaop files) live in src/test/testData/parser/.
Plugin based on the IntelliJ Platform Plugin Template.