Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mralaminahamed/phpstan-forminator-stubs
Forminator function and class declaration stubs for static analysis.
https://github.com/mralaminahamed/phpstan-forminator-stubs
forminator phpstan phpstan-stubs
Last synced: 26 days ago
JSON representation
Forminator function and class declaration stubs for static analysis.
- Host: GitHub
- URL: https://github.com/mralaminahamed/phpstan-forminator-stubs
- Owner: mralaminahamed
- License: mit
- Created: 2024-07-16T16:00:09.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-30T13:42:54.000Z (about 2 months ago)
- Last Synced: 2024-10-03T10:22:08.369Z (about 1 month ago)
- Topics: forminator, phpstan, phpstan-stubs
- Language: PHP
- Homepage:
- Size: 6.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fluent Forms Stubs
[![Packagist stats](https://img.shields.io/packagist/dt/mralaminahamed/forminator-stubs.svg)](https://packagist.org/packages/mralaminahamed/forminator-stubs/stats)
[![Packagist](https://img.shields.io/packagist/v/mralaminahamed/forminator-stubs.svg?color=4CC61E&style=popout)](https://packagist.org/packages/mralaminahamed/forminator-stubs)
[![Tweet](https://img.shields.io/badge/Tweet-share-d5d5d5?style=social&logo=twitter)](https://twitter.com/intent/tweet?text=https%3A%2F%2Fgithub.com%2Fmralaminahamed%2Fphpstan-forminator-stubs&url=I%20use%20mralaminahamed%2Fphpstan-forminator-stubs%20for%20IDE%20completion%20and%20static%20analysis)
[![Build Status](https://app.travis-ci.com/mralaminahamed/phpstan-forminator-stubs.svg?branch=master)](https://app.travis-ci.com/mralaminahamed/phpstan-forminator-stubs)This package provides stub declarations for the [Fluent Forms plugin](https://wordpress.org/plugins/fluentform/)
functions, classes and interfaces.
These stubs can help plugin and theme developers leverage IDE completion
and static analysis tools like [PHPStan](https://github.com/phpstan/phpstan).The stubs are generated directly from the [source](https://wordpress.org/plugins/fluentform/)
using [php-stubs/generator](https://github.com/php-stubs/generator).## Requirements
- PHP >=7.1
## Installation
Require this package as a development dependency with [Composer](https://getcomposer.org).
```bash
composer require --dev mralaminahamed/forminator-stubs
```Alternatively you may download `forminator-stubs.php` directly.
## Usage in PHPStan
Include stubs in PHPStan configuration file.
```yaml
parameters:
bootstrapFiles:
- vendor/mralaminahamed/forminator-stubs/forminator-constants-stubs.php
- vendor/mralaminahamed/forminator-stubs/forminator-stubs.php
```