承接 phpstan/php-8-stubs 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

phpstan/php-8-stubs

Composer 安装命令:

composer require phpstan/php-8-stubs

包简介

PHP stubs extracted from php-src

README 文档

README

PHP stub files automatically extracted from php-src. Used by PHPStan to understand signatures of built-in PHP classes and functions for PHP 8.0+.

Features

  • Version-aware stubs covering PHP 8.0 through 8.5, with #[\Since('x.y')] and #[\Until('x.y')] attributes to track when symbols and signatures were added or removed.
  • Comprehensive coverage: core language stubs (Zend/), 69 extensions (ext/), and 6 SAPIs (sapi/).
  • Version-aware class/function map (Php8StubsMap) that accepts a $phpVersionId and returns only the symbols available in that PHP version.
  • Fully automated extraction via extractor/extract.php — stubs are never hand-written.
  • Daily CI updates that extract from all PHP 8.x branches, auto-tag releases, and open PRs in phpstan/phpstan-src.

Usage

$map = new \PHPStan\Php8StubsMap($phpVersionId); // e.g. 80300 for PHP 8.3.0
$map->classes;   // array<string, string> — lowercase class name => stub path
$map->functions; // array<string, string> — lowercase function name => stub path

License

Dual-licensed under MIT and PHP-3.01.

统计信息

  • 总下载量: 6.62M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 31
  • 点击次数: 11
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 31
  • Watchers: 6
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固