php-stubs/facetwp-stubs
Composer 安装命令:
composer require --dev php-stubs/facetwp-stubs
包简介
FacetWP stubs for static analysis.
README 文档
README
It provides stub declarations for FacetWP core functions, classes and interfaces. These stubs can help plugin and theme developers leverage static analysis tools like PHPStan.
The stubs are generated from source code manually placed in source/facetwp
using php-stubs/generator.
The changelog can be found in FacetWP's Help Center.
Requirements
- PHP ^8.0
Installation
Require this package as a development dependency with Composer.
composer require --dev php-stubs/facetwp-stubs
Alternatively you may download facetwp-stubs.php directly.
Versioning
This package is versioned to match the FacetWP version from which the stubs are generated.
Updating stubs
- Run modern PHP version
- Clone this repository and
cdinto it - Download the latest source from your FacetWP account and extract the zip in
source/facetwpdirectory. You can also download the zip and save it assource/facetwp.zip. - Run
./release-latest-versions.shThis will automatically updatefacetwp-stubs.phpper version, tag and commit it.
统计信息
- 总下载量: 1.93k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-27