We are very pleased to announce the release of the ApiDoc extension version 4.0.0.
This is a major release that modernizes ApiDoc for current PHP projects. The minimum PHP version is now 8.2, and dependency requirements were raised for nikic/php-parser, phpdocumentor/reflection, and phpdocumentor/type-resolver.
Version 4.0.0 adds support for intersection and nullable types, PHPStan/Psalm syntax, constants in interfaces and traits, inherited descriptions, improved method signatures, better inline @see and @link handling, and links to built-in PHP functions. It also includes a new template for custom projects.
A brief overview of major changes:
- PHP 8.2 is now required.
- Deprecated code was removed.
- nikic/php-parser 5.0+ is now required.
- phpdocumentor/reflection 7.0+ and phpdocumentor/type-resolver 2.0+ are now required.
- FQSEN support in inline @link tags was removed.
- Type extraction and rendering were significantly improved.
- Constants, inheritance, and PHPDoc handling are more complete.
Most of this release is handled by Maksim Spirkov, with the new custom project template also based on work by jcherniak and cebe.
See the CHANGELOG for a full list of changes.