PHPackages                             mralaminahamed/wpforms-lite-stubs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. mralaminahamed/wpforms-lite-stubs

ActiveLibrary[Testing &amp; Quality](/categories/testing)

mralaminahamed/wpforms-lite-stubs
=================================

WPForms Lite function and class declaration stubs for static analysis.

v1.10.0.5(1mo ago)01.6kMITShell

Since May 14Pushed 2w ago1 watchersCompare

[ Source](https://github.com/mralaminahamed/phpstan-wpforms-lite-stubs)[ Packagist](https://packagist.org/packages/mralaminahamed/wpforms-lite-stubs)[ Docs](https://github.com/mralaminahamed/phpstan-wpforms-lite-stubs)[ RSS](/packages/mralaminahamed-wpforms-lite-stubs/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (6)Versions (77)Used By (0)

WPForms Lite Stubs
==================

[](#wpforms-lite-stubs)

[![Latest Version](https://camo.githubusercontent.com/893eab877e6e95844cd7da8486b1c768cbe459c69d4ad1a11a916a92c05d7bae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d72616c616d696e6168616d65642f7770666f726d732d6c6974652d73747562732e7376673f636f6c6f723d344343363145267374796c653d666c61742d737175617265)](https://packagist.org/packages/mralaminahamed/wpforms-lite-stubs)[![Downloads](https://camo.githubusercontent.com/4610bb36e8547a882a2a7d133601b3e3a9661bb41e88b00c893203020bc20c06/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d72616c616d696e6168616d65642f7770666f726d732d6c6974652d73747562732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mralaminahamed/wpforms-lite-stubs/stats)[![License](https://camo.githubusercontent.com/1a305b3e514d55ead795e2d6c209f1128550fa8eb23392372a75565869efa70a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d72616c616d696e6168616d65642f7770666f726d732d6c6974652d73747562732e7376673f7374796c653d666c61742d737175617265)](./LICENSE)[![PHP Version](https://camo.githubusercontent.com/44e175fff9f936d378d84cffe6ec8136bd9567216d77877b2fa0d638b0134a69/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d72616c616d696e6168616d65642f7770666f726d732d6c6974652d73747562732e7376673f7374796c653d666c61742d737175617265)](./composer.json)[![Tweet](https://camo.githubusercontent.com/7cc5e693bda53368a3427bda35ecf05dabe406c7ee29071de798d475dc2c8775/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54776565742d73686172652d3164613166323f7374796c653d666c61742d737175617265266c6f676f3d74776974746572)](https://twitter.com/intent/tweet?text=Check%20out%20WPForms%20Lite%20Stubs%20for%20IDE%20completion%20and%20static%20analysis%20https%3A%2F%2Fgithub.com%2Fmralaminahamed%2Fphpstan-wpforms-lite-stubs)

PHP stub declarations for the [WPForms Lite](https://wordpress.org/plugins/wpforms-lite/) plugin to enhance IDE completion and static analysis capabilities. Generated using [php-stubs/generator](https://github.com/php-stubs/generator) directly from the source code.

🚀 Features
----------

[](#-features)

- Complete function, class, and interface declarations
- Constant definitions for proper static analysis
- IDE autocompletion support
- PHPStan integration
- Regular updates with latest WPForms Lite versions

📋 Requirements
--------------

[](#-requirements)

- PHP &gt;= 7.4
- Composer for dependency management

📦 Installation
--------------

[](#-installation)

### Via Composer (Recommended)

[](#via-composer-recommended)

```
# Install as a development dependency
composer require --dev mralaminahamed/wpforms-lite-stubs

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

### Manual Installation

[](#manual-installation)

Download the stub files directly:

- [wpforms-stubs.stub](https://raw.githubusercontent.com/mralaminahamed/phpstan-wpforms-lite-stubs/main/wpforms-stubs.stub)
- [wpforms-constants-stubs.stub](https://raw.githubusercontent.com/mralaminahamed/phpstan-wpforms-lite-stubs/main/wpforms-constants-stubs.stub)

🔧 Basic Configuration
---------------------

[](#-basic-configuration)

To use these stubs with PHPStan or your IDE, see our [Usage Guide](./docs/usage.md) for detailed instructions.

🔍 Quick Usage Example
---------------------

[](#-quick-usage-example)

```
