소스 정보
- 저장소
- mglaman/phpstan-drupal
- 최근 소스 활동
- 2026년 2월 14일 12:43
- 감지된 SKILL.md 언어
- 영어
- 스타
- 208
- 포크
- 85
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/mglaman/phpstan-drupal --skill phpstan-internals명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | phpstan-internals |
| description | Navigate and read PHPStan's internal source code from the phar file |
| user-invocable | false |
PHPStan is distributed as a phar file. Claude's normal file tools (Read, Grep, Glob) cannot access phar contents. Use the methods below to explore PHPStan's internal APIs when developing rules and type extensions.
vendor/phpstan/phpstan/phpstan.pharphar:///Users/mglaman/Projects/php/phpstan-drupal/vendor/phpstan/phpstan/phpstan.phar/Use the JetBrains MCP get_symbol_info tool to look up PHPStan classes and interfaces. It resolves symbols via PhpStorm's index and returns declarations and documentation.
Find a use statement referencing the PHPStan class in any src/ file, then call get_symbol_info with the fully qualified class name.
When JetBrains MCP is unavailable or you need to browse directories, use PHP CLI commands via Bash.
php -r "echo file_get_contents('phar:///Users/mglaman/Projects/php/phpstan-drupal/vendor/phpstan/phpstan/phpstan.phar/src/Type/DynamicMethodReturnTypeExtension.php');"
php -r "print_r(scandir('phar:///Users/mglaman/Projects/php/phpstan-drupal/vendor/phpstan/phpstan/phpstan.phar/src/Type/'));"
php -r "echo file_get_contents('phar:///Users/mglaman/Projects/php/phpstan-drupal/vendor/phpstan/phpstan/phpstan.phar/src/Type/DynamicMethodReturnTypeExtension.php');" | grep -n 'getTypeFromMethodCall'
php -r "\$dir = 'phar:///Users/mglaman/Projects/php/phpstan-drupal/vendor/phpstan/phpstan/phpstan.phar/src/Type/'; foreach (scandir(\$dir) as \$f) { if (substr(\$f, -4) === '.php') { \$c = file_get_contents(\$dir . \$f); if (strpos(\$c, 'SearchTerm') !== false) echo \$f . PHP_EOL; }}"
| Directory | Contents |
|---|---|
src/Analyser/ | Scope, NodeScopeResolver, analysis engine |
src/Type/ | Type system, type extensions interfaces |
src/Rules/ | Built-in rules, Rule interface |
src/Reflection/ | ReflectionProvider, class/method/property reflection |
src/PhpDoc/ | PHPDoc parsing, type resolving |
src/DependencyInjection/ | Container, extension loading |
src/Testing/ | RuleTestCase, TypeInferenceTestCase base classes |
src/Node/ | Virtual nodes (InClassNode, InClassMethodNode, etc.) |
These are the PHPStan interfaces and classes that phpstan-drupal most frequently extends:
PHPStan\Rules\Rule — Custom analysis rulesPHPStan\Type\DynamicMethodReturnTypeExtension — Dynamic return types for method callsPHPStan\Type\DynamicStaticMethodReturnTypeExtension — Dynamic return types for static method callsPHPStan\Type\DynamicFunctionReturnTypeExtension — Dynamic return types for function callsPHPStan\Analyser\Scope — Analysis scope (variable types, context)PHPStan\Reflection\ReflectionProvider — Look up class/function reflectionsPHPStan\Reflection\MethodReflection — Method reflection dataPHPStan\Type\Type — Base type interfacePHPStan\Type\ObjectType — Represents a class instance typePHPStan\Testing\RuleTestCase — Base class for rule tests