Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

PHP 7.1 ready Smart and Simple Documentation for your PHP project

License

NotificationsYou must be signed in to change notification settings

ApiGen/ApiGen

Repository files navigation

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

Features

Built on Shoulders of Giants

Install

With Docker

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

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

With Phar

This will install ApiGen phar binary totools/apigen.

mkdir -p toolscurl -L https://github.com/ApiGen/ApiGen/releases/latest/download/apigen.phar -o tools/apigenchmod +x tools/apigentools/apigen src --output docs

With Composer

This will install ApiGen totools/apigen directory with executable entry point available intools/apigen/bin/apigen.

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

Usage

Generate API docs by passing source directories and destination option:

apigen src --output docs

Configuration

ApiGen can be configured withapigen.neon configuration file.

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 membersexcludeTagged: ['internal']# string, --output in CLIoutputDir:'%workingDir%/api'# string | null, --theme in CLIthemeDir:null# string, --title in CLItitle:'API Documentation'# string, --base-url in CLIbaseUrl:''# int, --workers in CLI, number of processes that will be forked for parallel renderingworkerCount:8# string, --memory-limit in CLImemoryLimit:'512M'

[8]ページ先頭

©2009-2025 Movatter.jp