GithubHelp home page GithubHelp logo

abdieffendi / phpdox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from theseer/phpdox

0.0 1.0 0.0 2.42 MB

Documentation generator for PHP Code using standard technology (SRC, DOCBLOCK, XML and XSLT)

Home Page: http://phpdox.de

phpdox's Introduction

phpDox

phpDox is a documentation generator for generating API documentation in HTML format, for instance, from PHP source code.

Requirements

User Installation

phpDox is shipping as a selfcontained executable phar archive. You can grab your copy here:

Alternativly, phpDox can be installed using the PEAR Installer, the backbone of the PHP Extension and Application Repository that provides a distribution system for PHP packages.

Depending on your OS distribution and/or your PHP environment, you may need to install PEAR or update your existing PEAR installation before you can proceed with the following instructions. sudo pear upgrade PEAR usually suffices to upgrade an existing PEAR installation. The PEAR Manual explains how to perform a fresh installation of PEAR.

The following two commands (which you may have to run as root) are all that is required to install phpDox using the PEAR Installer:

sudo pear config-set auto_discover 1
sudo pear install pear.netpirates.net/phpDox-0.5.0

This should take care of installing all the required dependencies for you.

Developer Installation

In case you want to go bleeding edge or hack on the source, you will have to clone this repository.

Note: The phpdox.php bootstrap file assumes that all depedencies have been installed using the PEAR Installer. In case you do clone all the source repositories yourself, you have to adjust the include paths for them.

To make things work, you now have to manually install the following dependencies using the PEAR Installer (or clone their repositories and then adjust the paths in the phpdox.php bootstrap file):

pear channel-discover nikic.github.com/pear
pear install channel://nikic.github.com/pear/PHPParser-0.9.2
sudo pear install phpunit/PHP_Timer
sudo pear install ezc/ConsoleTools
sudo pear install theseer/DirectoryScanner
sudo pear install theseer/fDOMDocument
sudo pear install theseer/fXSL

Now you are ready to check out the source code of phpDox from its Git repository:

git clone git://github.com/theseer/phpdox.git

Usage Examples

(The examples assume you installed phpDox from pear. In case you use a developer checkout, you have to replace phpdox by ./phpdox.php in the following paragraph.)

You can run phpDox like this:

phpdox --help

As of version 0.4 phpDox requires an xml configuration file. In case a project you want to generate documentation for does not come with one, you can create it by calling

phpdox.php --skel > phpdox.xml.dist

Sample invocation to parse and generate output based on the default phpdox.xml configuration file

./phpdox.php

Trouble Shooting

  • If you try to install theseer/fXSL and get the following error:

      theseer/fXSL requires PHP extension "xsl"
      No valid packages found
      install failed
    

    Try to install the xsl extention of PHP. On Ubuntu, you can simply use:

      sudo apt-get install php5-xsl
    

    For Redhat based distributions:

      sudo yum install php-xsl
    

    Once the extension is installed, you can retry to install the fXSL package.

The following problems should only occur in case you are on a developer checkout:

  • If you run phpdox.php and get the following error:

      PHP Fatal error:  require_once(): Failed opening required 'ezc/Base/base.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/phpdox/phpdox.php ...
    

    Make sure you have installed ezc/ConsoleTools (see above). Make sure that the ezc/ folder is located in one of the include_path. If not, create a symbolic link or fix your include_path setting.

  • If you run phpdox.php and get the following error:

      PHP Warning:  require(TheSeer/DirectoryScanner/autoload.php): failed to open stream: No such file or directory in /var/www/phpdox/phpdox.php on line 44
    

    Make sure you have installed all the dependencies mentioned above, or in case you have installed an older version upgrade accordingly.

phpdox's People

Contributors

theseer avatar lapistano avatar covex-nn avatar yethee avatar edorian avatar fmaz008 avatar jasonhofer avatar sebastianbergmann avatar tobys avatar louislandry avatar bergie avatar svscorp avatar swis avatar hilbix avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.