2017 © Pedro Peláez
 

library doxphp

Dox for PHP, inspired by Dox for JavaScript.

image

doxphp/doxphp

Dox for PHP, inspired by Dox for JavaScript.

  • Sunday, April 1, 2012
  • by avalanche123
  • Repository
  • 1 Watchers
  • 45 Stars
  • 980 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 5 Versions
  • 8 % Grown

The README.md

Dox PHP

Dox for PHP is a documentation engine for PHP inspired by the Dox for JavaScript., (*1)

Installation

Pear

pear channel-discover pear.avalanche123.com
pear install avalanche123/doxphp-beta

Github

Clone this repository and put the doxphp under bin directory in your executable path., (*2)

Usage

Dox PHP operates over stdio:, (*3)

$ doxphp < test.php
...JSON...

test.php, (*4)

<?php

/**
 * Greets the world
 *
 * @author Bulat Shakirzyanov <mallluhuct@gmail.com> (http://avalanche123.com)
 *
 * @param string $world - the world to greet
 *
 * @return void
 */
function hello($world) {
  echo "Hello ${world}";
}

output, (*5)

[
    {
        "tags": [
            {
                "type"   : "author"
              , "email"  : "mallluhuct@gmail.com"
              , "website": "http:\/\/avalanche123.com"
              , "name"   : "Bulat Shakirzyanov"
            }
          , {
                "type"       : "param"
              , "types"      : [ "string" ]
              , "name"       : "world"
              , "description": "- the world to greet"
            }
          , {
                "type" : "return"
              , "types": [ "void" ]
            }
        ]
      , "description": "Greets the world"
      , "isPrivate"  : false
      , "isProtected": false
      , "isPublic"   : true
      , "isAbstract" : false
      , "isFinal"    : false
      , "isStatic"   : false
      , "code"       : "function hello($world)"
      , "type"       : "function"
      , "name"       : "hello()"
      , "line"       : 12
    }
]

Supports

  • classes and interfaces
  • functions and methods (produces slightly different results)
  • namespaces (who phpdocs them really?)
  • class variables and constants (sweet!)

Installation

Use pear to install, (*6)

pear channel-discover pear.avalanche123.com
pear install avalanche123/doxphp-alpha

Renderers

  • doxphp2sphinx
doxphp < test.php | doxphp2sphinx  > test.rst

test.rst:, (*7)

.. php:function:: hello

   Greets the world

   :param string $world: - the world to greet

   :returns void:
  • doxphp2docco
doxphp2docco *.php

this creates docs directory in the current directory and populates it with html files., (*8)

test.html:, (*9)

<!DOCTYPE html>

<html>
<head>
  <title>test.php</title>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <link rel="stylesheet" media="all" href="resources/doxphp.css" />
</head>
<body>


test.php

Greets the world, (*10)

                <?php
                function
                hello
                (
                $world
                )
              
</body> </html>

TODO

implement more renderers, (*11)

The Versions

01/04 2012

dev-master

9999999-dev http://github.com/avalanche123/doxphp/

Dox for PHP, inspired by Dox for JavaScript.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

documentation phpdoc api docs

31/10 2011

0.2.0

0.2.0.0 http://github.com/avalanche123/doxphp/

Dox for PHP, inspired by Dox for JavaScript.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

documentation phpdoc api docs

30/10 2011

dev-docco

dev-docco http://github.com/avalanche123/doxphp/

Dox for PHP, inspired by Dox for JavaScript.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

documentation phpdoc api docs

30/10 2011

0.1.1

0.1.1.0 http://github.com/avalanche123/doxphp/

Dox for PHP, inspired by Dox for JavaScript.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

documentation phpdoc api docs

29/10 2011

0.1.0

0.1.0.0 http://github.com/avalanche123/doxphp/

Dox for PHP, inspired by Dox for JavaScript.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

documentation phpdoc api docs