Git Product home page Git Product logo

phpdox's Introduction

phpDox

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

Build Status

Requirements

User Installation

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

Installation is simple:

wget http://phpdox.de/releases/phpdox.phar
chmod +x phpdox.phar
sudo mv phpdox.phar /usr/bin/phpdox

You can now execute phpdox on the command line:

phpdox --version

If everything worked out, you should get an output like this:

phpDox 0.7.0 - Copyright (C) 2010 - 2014 by Arne Blankerts

Note: Starting with release 0.6.6 the pear package distribution is merely a wrapper for the selfcontained phar.

Note: Some Linux distributions ship PHP with ext/suhosin and disabled phar execution. To make use of phpDox in such an environment, you need to enable phar execution by adding phar to the executor white list: suhosin.executor.include.whitelist="phar"

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 the source repository and used composer for the dependency management, you have to use the provided wrapper in composer/bin/phpdox.

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

Usage Examples

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 --skel > phpdox.xml.dist

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

phpdox

Changelog

#####Release 0.7.0

  • Fix: Set default resolution of ${basename} to dirname of realpath of config file instead of only relative dir
  • Fix: Crash on invalid encoding / control chars in source (Issue #146, #148)
  • Fix: Crash on empty namespace name (Issue #150)
  • Fix: Broken cache handling for files that no longer exist (Issue #149)
  • Fix: DocBlock parsing generates invalid tag names in xml in some cases (Thanks to Reno Reckling)
  • Fix: Crash on custom bootstrapping (Thanks to Sebastian Heuer)
  • Updated Templates
  • Added tokenizer xml and highlighted source output
  • Added support for native PHPCS xml format (Thanks to Reno Reckling)
  • Removed dependency to Zeta Components by own (simplified) implementation
  • Unified xml namespace uri format by stripping the # where it was still in place
  • Minor performance tweaks

#####Release 0.6.6.1 (composer only)

  • Fix: Issue with composer based installs

#####Release 0.6.6

  • Updated Dependencies (DirectoryScanner to 1.3.0, PHPParser to 1.0.0, fDOMDocument to 1.5.0)
  • Internal Adjustments for updated Dependencies and API Changes
  • Enhanced HTML Output for Parameter lists
  • Refactored @inheritdoc support
  • Better Windows support (Thanks to Thomas Weinert)
  • Added XSD for phpdox.xml config file (Thanks to Thomas Weinert)
  • Enhanced PHPUnit enricher to not claim empty classes are untested

#####Older Releases

  • Please refer to the git history for now.

phpdox's People

Contributors

theseer avatar lapistano avatar thomasweinert avatar covex-nn avatar yethee avatar sebastianbergmann avatar edorian avatar louislandry avatar tobys avatar jasonhofer avatar fmaz008 avatar alister avatar incognito avatar bergie avatar svscorp avatar eimanavicius avatar rubao avatar swis avatar hilbix avatar

Watchers

okonomi avatar  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.