ApiGen
v7.0.0-alpha.6
ApiGen은 사용하기 쉽고 모든 PHP 8.3 기능을 지원하는 최신 API 문서 생성기입니다.
ApiGen은 직접 사용할 수 있는 apigen/apigen Docker 이미지로 제공됩니다.
docker run --rm --interactive --tty --volume " $PWD : $PWD " --workdir " $PWD "
apigen/apigen:edge
src --output docs
그러면 tools/apigen
에 ApiGen phar 바이너리가 설치됩니다.
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
그러면 tools/apigen/bin/apigen
에서 사용 가능한 실행 가능 진입점이 있는 tools/apigen
디렉터리에 ApiGen이 설치됩니다.
composer create-project --no-dev apigen/apigen:^7.0@alpha tools/apigen
tools/apigen/bin/apigen src --output docs
소스 디렉터리와 대상 옵션을 전달하여 API 문서를 생성합니다.
apigen src --output docs
ApiGen은 apigen.neon
구성 파일로 구성할 수 있습니다.
parameters :
# string[], passed as arguments in CLI, e.g. ['src']
paths : []
# string[], --include in CLI, included files mask, e.g. ['*.php']
include : [ ' *.php ' ]
# string[], --exclude in CLI, excluded files mask, e.g. ['tests/**']
exclude : []
# bool, should protected members be excluded?
excludeProtected : false
# bool, should private members be excluded?
excludePrivate : true
# string[], list of tags used for excluding class-likes and members
excludeTagged : [ ' internal ' ]
# string, --output in CLI
outputDir : ' %workingDir%/api '
# string | null, --theme in CLI
themeDir : null
# string, --title in CLI
title : ' API Documentation '
# string, --base-url in CLI
baseUrl : ' '
# int, --workers in CLI, number of processes that will be forked for parallel rendering
workerCount : 8
# string, --memory-limit in CLI
memoryLimit : ' 512M '