GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - phpstan/php-8-stubs

BranchesTags
Open more actions menu

Latest commit

 

History

545 Commits
545 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents
.agents
 
 
.github
.github
 
 
extractor
extractor
 
 
stubs
stubs
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CLAUDE.md
CLAUDE.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
LICENSE
LICENSE
 
 
Php8StubsMap.php
Php8StubsMap.php
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
composer.lock
composer.lock
 
 

Repository files navigation

PHP 8 stubs

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.

About

No description, website, or topics provided.

Resources

Readme
MIT license

Code of conduct

Code of conduct

Security policy

Security policy
Activity
Custom properties

Stars

31 stars

Watchers

6 watching

Forks

12 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.