2017 © Pedro Peláez
 

library apigen

PHP 7.1 source code API generator.

image

tomflidr/apigen

PHP 7.1 source code API generator.

  • Wednesday, April 4, 2018
  • by tomFlidr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 292 Forks
  • 0 Open issues
  • 20 Versions
  • 0 % Grown

The README.md

Smart and Readable Documentation for your PHP project

Build Status Coverage Status Downloads Latest stable, (*1)

ApiGen is the simplest, the easiest to use and the most modern api doc generator. It is all PHP 7.1 features ready easy to extend with own Finder, Annotation Subscriber or even Generator., (*2)

Just look at ApiGen API:, (*3)

ApiGen Preview, (*4)

Your Help is Needed to Finish 5.x Release

:heart: We need your help to test new version of ApiGen., (*5)

How to install it?

Add to your composer.json:, (*6)

{
    "require": {
        "apigen/apigen": "dev-master",
        "roave/better-reflection": "dev-master#c87d856"
    }
}

then update:, (*7)

composer update

Test it, report issues or send PRs., (*8)

:skull: Version 4.x is not supported, since there was huge change of Reflection library and the code was almost completely rewritten., (*9)

Built on Shoulders of Giants

Install

composer require apigen/apigen --dev

Usage

Generate API docs by passing single source and destination options:, (*10)

vendor/bin/apigen generate src --destination docs

Or generate API docs for multiple directories:, (*11)

vendor/bin/apigen generate src tests --destination docs

Configuration

Below is a minimal example configuration. Save it as a apigen.yml file in the root of your project:, (*12)

parameters:
    visibilityLevels: [public, protected] # array
    annotationGroups: [todo, deprecated] # array
    title: "ApiGen Docs" # string
    baseUrl: "http://apigen.org/api" # string
    overwrite: false # bool

What Annotations Have Extra Care?

@see, @covers, @uses

Reference to Class, Function, Property, Method etc. element., (*13)

In Code, (*14)

/**
 * @see SomeClass
 * @see SomeClass::$propety
 * @see SomeClass::someFunction()
 */

Generated, (*15)

@see <a href="class-SomeClass.html">SomeClass</a>
@see <a href="class-SomeClass.html#$someProperty">SomeClass::$property</a>
@see <a href="class-SomeClass.html#_someFunction">SomeClass::someFunction()</a>

A website url., (*16)

In Code, (*17)

/**
 * This is already mentioned on Wiki.
 * @link https://en.wikipedia.org/wiki/United_we_stand,_divided_we_fall Click to see a cool quote  
 */

Generated, (*18)

This is already mentioned on Wiki.
@link <a href="https://en.wikipedia.org/wiki/United_we_stand,_divided_we_fall">Click to see a cool quote</a> 

@internal

Associated element is internal, so ApiGen hides it., (*19)

Themes

To enable a custom theme just provide themeDirectory configuration option in your apigen.yml:, (*20)

parameters:
    themeDirectory: path/to/theme # path to theme's config file

Contributing

Rules are simple:, (*21)

  • new feature needs tests
  • all tests must pass bash composer complete-check
  • 1 feature per PR

We would be happy to merge your feature then., (*22)

The Versions

01/09 2014

v2.8.1

2.8.1.0 http://apigen.org/

API documentation generator for PHP 5.3+

  Sources   Download

BSD-3-Clause

The Requires

 

api generator documentation phpdoc phpdocumentor docblock

29/09 2012

2.8.0

2.8.0.0 http://apigen.org/

API documentation generator for PHP 5.3+

  Sources   Download

BSD-3-Clause

The Requires

 

api generator documentation phpdoc phpdocumentor docblock