PHP stub declarations for the SureCart plugin to enhance IDE completion and static analysis capabilities. Generated using php-stubs/generator directly from the source code.
- Complete function, class, and interface declarations
- Constant definitions for proper static analysis
- IDE autocompletion support
- PHPStan integration
- Regular updates with latest SureCart plugin versions
- PHP >= 7.4
- Composer for dependency management
composer require --dev mralaminahamed/phpstan-surecart-stubsDownload the stub files directly:
To use these stubs with PHPStan or your IDE, see our Usage Guide for detailed instructions.
phpstan-surecart-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
├── surecart-constants-stubs.php # Constants stub file
├── surecart-stubs.php # Main stubs file with classes and functions
├── phpstan.neon # PHPStan configuration
├── source/ # Source for generating stubs
└── tests/ # Test files
composer generatecomposer testcomposer releaseContributions are welcome! Please feel free to submit a Pull Request.
This package is open-sourced software licensed under the MIT license.