mralaminahamed/squad-modules-lite-stubs

Squad Modules for Divi function and class declaration stubs for static analysis.

Maintainers

👁 mralaminahamed

Package info

github.com/mralaminahamed/phpstan-squad-modules-lite-stubs

Language:Shell

pkg:composer/mralaminahamed/squad-modules-lite-stubs

Statistics

Installs: 17

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2025-04-12 15:37 UTC

Requires

Requires (Dev)

Suggests

Provides

None

Conflicts

None

Replaces

None

This package is auto-updated.

Last update: 2026-06-15 07:40:52 UTC


README

👁 Latest Version
👁 Downloads
👁 License
👁 PHP Version
👁 Tweet

PHP stub declarations for the Squad Modules for Divi plugin 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 Squad Modules for Divi versions

📋 Requirements

  • PHP >= 7.4
  • Composer for dependency management

📦 Installation

Via Composer (Recommended)

# Install as a development dependency
composer require --dev mralaminahamed/squad-modules-lite-stubs

# Or specify a version
composer require --dev mralaminahamed/squad-modules-lite-stubs:^1.0

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.

🔍 Quick Usage Example

<?php
// Your code will now have full IDE support
$module = new DiviSquad\Modules\Module();

// Constants are properly defined
if (DISQ_VERSION) {
 // Your implementation
}

// Classes and interfaces are available
class MyModule extends DiviSquad\Modules\Module {
 // Your implementation
}

For advanced usage examples, see the Usage Guide.

📁 Package Structure

phpstan-squad-modules-lite-stubs/
├── bin/ # Scripts for generating and releasing stubs
├── configs/ # Configuration files for stub generation
├── docs/ # Detailed documentation
│ ├── usage.md # Usage guide
│ └── contributing.md # Contribution guidelines
├── squad-modules-lite-constants-stubs.stub # Constants stub file
├── squad-modules-lite-stubs.stub # Main stubs file with classes and functions
├── source/ # Source for generating stubs
└── tests/ # Test files
 ├── bootstrap.php # Test bootstrap
 ├── ConstantsTest.php # Constants tests
 └── SquadModulesTest.php # Squad Modules tests

🛠 Development

For information on building stubs, running tests, and contributing to the project, please see our Contributing Guide.

📚 Documentation

For more detailed information, check out our documentation:

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

💬 Support

For bug reports and feature requests, please use the GitHub Issues.

For questions and discussions, please use the GitHub Discussions.