koalapress / koalastan
PHPStan configuration and stubs for KoalaPress projects
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:phpstan-extension
Requires
- php: ^8.1
- php-stubs/wordpress-stubs: ^6.4
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10 || ^1.11
- szepeviktor/phpstan-wordpress: ^1.3
Suggests
- koalapress/framework: The KoalaPress framework that these stubs are generated for
This package is auto-updated.
Last update: 2025-08-28 19:31:30 UTC
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