Blame | Letzte Änderung | Log anzeigen | RSS feed
$Id: README 242918 2007-09-26 02:57:11Z ashnazg $################################################################################phpDocumentor################################################################################Installation################################################################################Installation for phpDocumentor is as simple as installing PHP and a web server.If you need help installing a webserver or php, refer to the documentation thatcomes with the webserver or with php. phpDocumentor also runs from thecommand-line, and only requires that PHP CLI version be installed.All users with PEAR should either install this version directly from thepackage.xml file included in the distribution, or install via"pear install PhpDocumentor."The command-line interface "phpdoc" will be in the path, you can use itimmediately on both windows and unix. The web interface is in a subdirectory ofyour document root, be sure to "pear config-set data_dir /path/to/my/htdocs"prior to installation.To use phpDocumentor as a command-line tool in *nix-based systems, simply runthe phpdoc script. In windows, run"c:\php\php.exe phpdoc" where C:\php is the path to the cli version of php.The phpdoc command-line interface will not run with the ISAPI module of PHP.To see the command line options, use phpdoc -h or read at the bottom of thisREADME.There is a BASH shell script that you can put inside your project that can savetime writing command-line options of phpdoc. Simply copy makedoc.sh to yourproject path and edit it. When you wish to rebuild the documentation, run it again.Note that .ini scripts are far easier to edit and are supported via "phpdoc -c file.ini"To use phpDocumentor's web interface, install the files into a subdirectory ofyour document root (read the webserver's documentation for more information if youdon't understand how to install into a subdirectory of your document root).Then, browse to the web page as you would to any other web page. If you encounterproblems, make sure that the web server has write access permissions to the outputdirectory that you choose. Again, your web server documentation has detailedinformation on how to do this. The command-line interface will not have problemswith access.If you need more detailed help, check out INSTALL.################################################################################Release Notes################################################################################Release notes for the newest version are in Release-1.4.3.1.4.3 is out, a stable release.To learn how to write PHPDoc-style documentation, run phpDocumentor on itself,with ./phpdoc -c makedocs. Before you do, modify users/makedocs.ini to containthe proper path values.If you find a bug please post it at:http://pear.php.net/bugs/search.php?cmd=display&package_name%5B%5D=PhpDocumentor################################################################################General Notes################################################################################phpDocumentor is hosted at phpdoc.org, with downloads and mailing list throughsourceforge.net, and primary support at PEAR.webpage: http://phpdoc.org/documentation: http://phpdoc.org/manual.phpmirror: http://phpdocu.sourceforge.netprojectpage: http://www.phpdoc.orgPEAR: http://pear.php.net/package/PhpDocumentorFor a list of people who have helped work on this project please read theAuthors file.phpDocumentor 1.4.3 is released under the LGPL version 2.1, text is inLICENSE.################################################################################Feature Notes################################################################################phpDocumentor is a JavaDoc-like automatic documentation generator for PHP,written in PHP. It is the most versatile tool for documenting PHP.For users new to phpDocumentor, phpDocumentor uses an event-driven parserand intermediary data structures that allow it to perform at a level otherautomatic documentors for PHP cannot achieve:--parsing any php file, with multiple classes and functions in the same file--fully compliant with even the most esoteric php syntax($string = <<< EOF, for example)--ability to generate multiple output formats--extremely fast parsing--error/warnings by line number and file to allow for debugging ofdocumentation tags--multiple output templates to easily customize the look of generateddocumentation--extensive documentation of the package, including a detailed specificationfor tags and templates--LGPL LicenseNew since version 1.3.0:--PHP 5 Parsing--hundreds of bugfixes from version 1.2.3If something is missing from this list make sure sure to filea feature request at PEAR:http://pear.php.net/bugs/search.php?cmd=display&package_name%5B%5D=PhpDocumentorIf you want to help code that new feature and get it just right, please let us know.Any help is greatly appreciated, just contact thephpDocumentor team for information on getting started.phpDocumentor needs php 4.1.0 or greater, but you'll see the best performancein the newest version. The recommended version for phpDocumentor 1.3.0 and upis PHP 5.1.3 or newer.################################################################################Command Line notes################################################################################Read the documentation at http://www.phpdoc.org/docs for the most up-to-datecommand-line information.You can also generate documentation from the source using:phpdoc -c makedocsRun this command from the installation directory, and make sure you have fullwrite and directory creation permissions or it will not work.Generated documentation is accessible via Documentation/new/index.html################################################################################If you run phpdoc and get :bash: ./phpdoc: No such file or directoryThen you haven't installed the cgi version of php.Go to your php src dir and trymake clean./configuremakemake installphpdoc should work now.If you're using php 4.2.0 or higher you will want to use the cli versioninstead of the cgi. Checkout php.net for details on these changes################################################################################Web Interface notes################################################################################Put phpdoc.php together with the *.inc files someplace on your webserver.NEVER USE THE WEB INTERFACE ON A PRODUCTION WEBSERVER. Allowing your serverto write files to disk is a serious security risk, and phpDocumentor is notdesigned to work on insecure systems. Setup php on a development machinethat has a firewall or no internet connection, and run phpDocumentor from there.Make sure your webserver can write to wherever you specify as a target or youwill get lots of errors.################################################################################Thanks################################################################################Thanks to Sam Blum for his assistance with @example and other enhancements.Thanks to William K. Hardeman for his HTML:Smarty:HandS design.Thanks to Marco von Ballmoos for transforming the HTML:frames converter andtemplates into a magnificent work of art.Thanks to Andrew Eddie for docbuilder and the CHM Converter enhancements.Thanks to Darren Cook for suggesting exciting new features, and making sure thatthey worked when implemented.Thanks to Marko Kaening, Dan Convissor for policing the source and finding bugsthat would have otherwise gone undetected.Thanks to Juan Pablo Morales for the web interface.Thanks to whoever sent me the patch to make phpDocumentor work better in NT...I have your diff and patched the program but i seem to have lost your name...if you send it to me i'll add it to the Authors file.Thanks to Florian Clever for the newest set of win32 patches... they seem to havefixed the last of the problems.Thanks to EVERYONE who has provided ideas and input, without you,phpDocumentor would be nothing.################################################################################################################################################################If you have any questions please try our mailing list atphpdocu-general@sourceforge.net.joshua eichorn jeichorn@phpdoc.orggregory beaver cellog@php.netchuck burgess ashnazg@php.netvim: set expandtab: