koalapress/koalastan
Composer 安装命令:
composer require koalapress/koalastan
包简介
PHPStan configuration and stubs for KoalaPress projects
README 文档
README
Simple PHPStan configuration for KoalaPress projects.
Installation
In your KoalaPress project:
composer require --dev koalapress/koalastan
Usage
Create a phpstan.neon in your project root:
includes: - vendor/koalapress/koalastan/extension.neon parameters: paths: - app/ - config/ - resources/ # Add your custom paths
Run PHPStan:
vendor/bin/phpstan analyse
What's Included
- Pre-generated stubs for KoalaPress Framework
- Pre-generated stubs for Corcel and Acorn
- WordPress-optimized PHPStan configuration
- Sensible defaults for WordPress projects
Updating Stubs
Stubs are maintained in this repository. When KoalaPress Framework is updated, the stubs will be regenerated and released.
Generating Stubs
Stubs are generated using a simple docker-compose setup. To generate the stubs, run:
docker compose up
Requirements
- PHP 8.1+
- PHPStan 1.10+
- KoalaPress project structure
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-26