mralaminahamed / phpstan-action-scheduler-stubs
Action Scheduler function and class declaration stubs for static analysis.
Package info
github.com/mralaminahamed/phpstan-action-scheduler-stubs
pkg:composer/mralaminahamed/phpstan-action-scheduler-stubs
Requires
- php: >=7.4
- php-stubs/wordpress-stubs: ^5.3 || ^6.0
Requires (Dev)
- php-stubs/generator: ^0.8.0
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^7.5 || ^8.5 || ^9.5
- squizlabs/php_codesniffer: ^3.7
Suggests
- szepeviktor/phpstan-wordpress: WordPress extensions for PHPStan
This package is auto-updated.
Last update: 2026-06-15 07:41:04 UTC
README
PHP stub declarations for Action Scheduler (woocommerce/action-scheduler) to enhance IDE completion and static analysis capabilities. Generated using php-stubs/generator directly from the source code.
Features
- Complete function, class, and interface declarations
- Constant definitions for proper static analysis
- IDE autocompletion support
- PHPStan integration
- Regular updates with latest Action Scheduler versions
Requirements
- PHP >= 7.4
- Composer for dependency management
Installation
Via Composer (Recommended)
composer require --dev mralaminahamed/phpstan-action-scheduler-stubs
Manual Installation
Download the stub files directly:
Basic Configuration
To use these stubs with PHPStan or your IDE, see our Usage Guide for detailed instructions.
Package Structure
phpstan-action-scheduler-stubs/
├── bin/ # Scripts for generating and releasing stubs
│ ├── generate.sh # Stub generation script
│ └── release-latest-versions.sh # Release automation script
├── configs/ # Configuration files for stub generation
│ ├── bootstrap.php # PHPStan bootstrap with WP constants
│ └── finder.php # File finder configuration
├── action-scheduler-constants-stubs.php # Constants stub file
├── action-scheduler-stubs.php # Main stubs file with classes and functions
├── phpstan.neon # PHPStan configuration
├── source/ # Source for generating stubs
└── tests/ # Test files
Development
Generating Stubs
composer generate
Running Tests
composer test
Releasing a New Version
composer release
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This package is open-sourced software licensed under the MIT license.