Download the PHP package pradosoft/apigen without Composer
On this page you can find all versions of the php package pradosoft/apigen. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pradosoft/apigen
More information about pradosoft/apigen
Files in pradosoft/apigen
Package apigen
Short Description PHP source code API generator
License MIT
Homepage http://apigen.org/
Informations about the package apigen
Smart and Readable Documentation for your PHP project
Just look at CakePHP Framework or Doctrine ORM API.
Note! This is 4.2
branch, final 4.x
series of ApiGen. The project is
undergoing a rewrite (5.x
series on master
). Please submit any PRs for
versions 4.2.x
to 4.2
branch.
Requirements
- PHP 5.5+
Install
Install using composer as a development dependency in your project:
Or if you want it globally:
Usage
Run ApiGen with source and destination options:
To omit cli options just create apigen.yaml
or apigen.neon
file in your project's root folder:
For all available options, along with descriptions and default values, just run:
Documentation
DocBlock Annotations
This section provides a list of PHP DocBlock annotations (tags) that are supported by ApiGen:
@author
- documents the author of the associated element.@copyright
- documents the copyright information for the associated element.@deprected
- indicated that the associated element is deprecated and can be removed in the future version.@internal
- denotes that the associated elements is internal to this application or library and hides it by default.@license
- indicates which license is applicable for the associated element.@link
- indicates a relation between the associated element and a page of a website.@method
- allows a class to know which ‘magic’ methods are callable.@package
- categorizes the associated element into a logical grouping or subdivision.@param
- documents a single argument of a function or method.@property
- allows a class to know which ‘magic’ properties are present.@return
- documents the return value of functions or methods.@see
- indicates a reference from the associated element to a website or other elements.@subpackage
- categorizes the associated element into a logical grouping or subdivision.@throws
- indicates whether the associated element could throw a specific type of exception.@usedby
indicates a "from" reference with a single associated element.@uses
- indicates a reference to (and from) a single associated element.
Configuration
This section provides information on all available configuration options that
can be included in configuration files (apigen.yml
or apigen.neon
).
Minimal Configuration
A minimal configuration file:
Note! The configuration files match CLI options for generate
command. The only difference is that when defining these options in
configuration file, you have to use camelCased
format (i.e.
--annotation-groups
CLI option becomes annotationGroups
configuration
parameter).
Reference Configuration
A reference configuration file with all of the available and supported configuration options.
CLI Commands
This section provides information on all available CLI commands and their options.
Main ApiGen commands:
- generate - generates API documentation.
To get a list of available apigen list
command. To get help on specific
command use apigen help
, i.e.:
$ apigen help generate
Generate
generate
command is the main command which generates API documentation. The
command relies either on passing it CLI options or reading data from
configuration files.
A list of options accepted by generate
command:
Option | Description |
---|---|
--source (-s ) |
Source directory(-ies) to generate API docs for. Multiple values are allowed. |
--destination (-d ) |
Destination directory for API docs. |
--access-levels |
Access levels of methods and properties to be included in API docs [options: public , protected , private ]. Default: ["public","protected"] . |
--annotation-groups |
Generate page with elements with specific annotation. |
--config |
Custom path to ApiGen configuration file. Default: ./apigen.neon |
--google-cse-id |
Custom Google Search Engine ID (for search box). |
--base-url |
Base URL (used for Sitemap / search box). |
--google-analytics |
Google Analytics tracking code to include in generated API docs. |
--debug |
Turn on debug mode (prints verbose information from low-level parser). Useful when debugging / during development. |
--download |
Pass this option to include a link to a generated ZIP archive in the API docs. |
--extensions |
A list of scanned file extensions. Multiple values are allowed. Default: ["php"] . |
--exclude |
Diretories or files matching provided mask will be excluded (e.g. */tests/* ). Multiple values are allowed. |
--groups |
Define element grouping in the menu [options: namespaces , packages ]. Default: namespaces . |
--main |
Elements with provided main name prefix will be first in the tree. |
--internal |
Include elements marked as @internal . |
--php |
Generate documentation for PHP internal classes. |
--no-source-code |
Do not generate highlighted source code for elements. |
--template-theme |
ApiGen template theme name. [default: "default"]. |
--template-config |
Specify your own template config (this setting will override --template-theme ). |
--title |
Custom title of API docs. |
--tree |
Generate a tree view of classes, interfaces, traits and exceptions. |
--deprecated |
deprecated, only present for BC |
--todo |
deprecated, only present for BC |
--charset |
deprecated, only present for BC |
--skip-doc-path |
deprecated, only present for BC |
--overwrite (-o ) |
Force overwriting of destination directory. |
--help (-h ) |
Display help message for all or specific commands. |
--quiet (-q ) |
Do not output any messages. |
--version (-V ) |
Display version of ApiGen. |
Themes
In order to enable a custom theme, you have to either provide --theme-config
CLI option when runing apigen generate
or add themeConfig
configuration
option in your ApiGen configuration file:
Contributing
Please refer to CONTRIBUTING for details.
Tests
To run tests:
Get Support!
- #apigen on irc.freenode.net - Come chat with us, we have cake.
- GitHub Issues - Got issues? Please tell us!
- Roadmaps - Want to contribute? Get involved!
All versions of apigen with dependencies
popsul/php-token-reflection Version ^1.5
apigen/theme-bootstrap Version 1.1.*
apigen/theme-default Version 1.0.*
herrera-io/phar-update Version ~2.0
kukulich/fshl Version ~2.1
latte/latte Version ^2.3.6
michelf/php-markdown Version ~1.4
nette/bootstrap Version ^2.3
nette/di Version ^2.3
nette/neon Version ^2.3
nette/reflection Version ^2.3
symfony/console Version ^2.7|~3.0
symfony/event-dispatcher Version ^2.7|~3.0
symfony/options-resolver Version ^2.7|~3.0
symfony/yaml Version ^2.7|~3.0
tracy/tracy Version ^2.3