Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

ApiGen

> 编程语言
Open source

PHP 7.1 ready Smart and Simple Documentation for your PHP project

2.2K stars0 likes0 views
WebsiteGitHub

About

PHP 7.1 ready Smart and Simple Documentation for your PHP project

Smart and Readable Documentation for PHP projects

ApiGen is easy to use and modern API doc generator supporting all PHP 8.3 features.

Features

  • phpDoc
    • all types supported by PHPStan
    • generic class declarations
    • local type aliases
  • PHP 8.3
    • typed class constants
  • PHP 8.2
    • constants in traits
    • fetch enum properties in const expressions
    • disjunctive normal form types
    • readonly classes
    • true, false and null types
  • PHP 8.1
    • enums
    • pure intersection types
    • never type
    • final class constants
    • new in initializers
    • readonly properties
  • PHP 8.0
    • constructor property promotion
    • union types
    • mixed type
    • static return type
  • PHP 7.4
    • typed properties
  • PHP 7.2
    • object type
  • PHP 7.1
    • nullable types
    • iterable type
    • void type
    • class constant visibility
  • PHP 7.0
    • scalar types
    • return types
  • PHP 5.6
    • constant scalar expressions
    • variadic functions
  • PHP 5.4
    • traits
    • callable type
    • binary integer notation

Built on Shoulders of Giants

  • nikic/php-parser
  • phpstan/phpdoc-parser
  • latte/latte
  • league/commonmark

Install

With Docker

ApiGen is available as apigen/apigen Docker image which you can directly use.

bash
docker run --rm --interactive --tty --volume "$PWD:$PWD" --workdir "$PWD" \
  apigen/apigen:edge \
  src --output docs

With Phar

This will install ApiGen phar binary to tools/apigen.

bash
mkdir -p tools
curl -L https://github.com/ApiGen/ApiGen/releases/latest/download/apigen.phar -o tools/apigen
chmod +x tools/apigen
tools/apigen src --output docs

With Composer

This will install ApiGen to tools/apigen directory with executable entry point available in tools/apigen/bin/apigen.

bash
composer create-project --no-dev apigen/apigen:^7.0@alpha tools/apigen
tools/apigen/bin/apigen src --output docs

Usage

Generate API docs by passing source directories and destination option:

bash
apigen src --output docs

Configuration

ApiGen can be configured with apigen.neon configuration file.

…

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPapidocapigendocumentationgenerator

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言