Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
$Id: README 242918 2007-09-26 02:57:11Z ashnazg $
2
 
3
################################################################################
4
				phpDocumentor
5
 
6
################################################################################
7
Installation
8
################################################################################
9
 
10
Installation for phpDocumentor is as simple as installing PHP and a web server.
11
If you need help installing a webserver or php, refer to the documentation that
12
comes with the webserver or with php.  phpDocumentor also runs from the
13
command-line, and only requires that PHP CLI version be installed.
14
 
15
All users with PEAR should either install this version directly from the
16
package.xml file included in the distribution, or install via
17
"pear install PhpDocumentor."
18
 
19
The command-line interface "phpdoc" will be in the path, you can use it
20
immediately on both windows and unix.  The web interface is in a subdirectory of
21
your document root, be sure to "pear config-set data_dir /path/to/my/htdocs"
22
prior to installation.
23
 
24
To use phpDocumentor as a command-line tool in *nix-based systems, simply run
25
the phpdoc script.  In windows, run
26
"c:\php\php.exe phpdoc" where C:\php is the path to the cli version of php.
27
The phpdoc command-line interface will not run with the ISAPI module of PHP.
28
To see the command line options, use phpdoc -h or read at the bottom of this
29
README.
30
 
31
There is a BASH shell script that you can put inside your project that can save
32
time writing command-line options of phpdoc. Simply copy makedoc.sh to your
33
project path and edit it. When you wish to rebuild the documentation, run it again.
34
Note that .ini scripts are far easier to edit and are supported via "phpdoc -c file.ini"
35
 
36
To use phpDocumentor's web interface, install the files into a subdirectory of
37
your document root (read the webserver's documentation for more information if you
38
don't understand how to install into a subdirectory of your document root).
39
Then, browse to the web page as you would to any other web page.  If you encounter
40
problems, make sure that the web server has write access permissions to the output
41
directory that you choose.  Again, your web server documentation has detailed
42
information on how to do this.  The command-line interface will not have problems
43
with access.
44
 
45
If you need more detailed help, check out INSTALL.
46
 
47
################################################################################
48
Release Notes
49
################################################################################
50
 
51
Release notes for the newest version are in Release-1.4.3.
52
 
53
1.4.3 is out, a stable release.
54
 
55
To learn how to write PHPDoc-style documentation, run phpDocumentor on itself,
56
with ./phpdoc -c makedocs.  Before you do, modify users/makedocs.ini to contain
57
the proper path values.
58
 
59
If you find a bug please post it at:
60
http://pear.php.net/bugs/search.php?cmd=display&package_name%5B%5D=PhpDocumentor
61
 
62
################################################################################
63
General Notes
64
################################################################################
65
phpDocumentor is hosted at phpdoc.org, with downloads and mailing list through
66
sourceforge.net, and primary support at PEAR.
67
 
68
webpage:            http://phpdoc.org/
69
documentation:      http://phpdoc.org/manual.php
70
mirror:             http://phpdocu.sourceforge.net
71
projectpage:        http://www.phpdoc.org
72
PEAR:               http://pear.php.net/package/PhpDocumentor
73
 
74
For a list of people who have helped work on this project please read the
75
Authors file.
76
 
77
phpDocumentor 1.4.3 is released under the LGPL version 2.1, text is in
78
LICENSE.
79
 
80
################################################################################
81
Feature Notes
82
################################################################################
83
 
84
phpDocumentor is a JavaDoc-like automatic documentation generator for PHP,
85
written in PHP.  It is the most versatile tool for documenting PHP.
86
 
87
For users new to phpDocumentor, phpDocumentor uses an event-driven parser
88
and intermediary data structures that allow it to perform at a level other
89
automatic documentors for PHP cannot achieve:
90
  --parsing any php file, with multiple classes and functions in the same file
91
  --fully compliant with even the most esoteric php syntax
92
  	($string = <<< EOF, for example)
93
  --ability to generate multiple output formats
94
  --extremely fast parsing
95
  --error/warnings by line number and file to allow for debugging of
96
	documentation tags
97
  --multiple output templates to easily customize the look of generated
98
	documentation
99
  --extensive documentation of the package, including a detailed specification
100
	for tags and templates
101
  --LGPL License
102
 
103
New since version 1.3.0:
104
  --PHP 5 Parsing
105
  --hundreds of bugfixes from version 1.2.3
106
 
107
If something is missing from this list make sure sure to file
108
a feature request at PEAR:
109
http://pear.php.net/bugs/search.php?cmd=display&package_name%5B%5D=PhpDocumentor
110
 
111
If you want to help code that new feature and get it just right, please let us know.
112
Any help is greatly appreciated, just contact the
113
phpDocumentor team for information on getting started.
114
 
115
phpDocumentor needs php 4.1.0 or greater, but you'll see the best performance
116
in the newest version.  The recommended version for phpDocumentor 1.3.0 and up
117
is PHP 5.1.3 or newer.
118
 
119
################################################################################
120
Command Line notes
121
################################################################################
122
 
123
Read the documentation at http://www.phpdoc.org/docs for the most up-to-date
124
command-line information.
125
 
126
You can also generate documentation from the source using:
127
 
128
phpdoc -c makedocs
129
 
130
Run this command from the installation directory, and make sure you have full
131
write and directory creation permissions or it will not work.
132
 
133
Generated documentation is accessible via Documentation/new/index.html
134
 
135
################################################################################
136
 
137
If you run phpdoc and get :
138
bash: ./phpdoc: No such file or directory
139
 
140
Then you haven't installed the cgi version of php.
141
Go to your php src dir and try
142
make clean
143
./configure
144
make
145
make install
146
 
147
phpdoc should work now.
148
 
149
If you're using php 4.2.0 or higher you will want to use the cli version
150
instead of the cgi.  Checkout php.net for details on these changes
151
 
152
 
153
################################################################################
154
Web Interface notes
155
################################################################################
156
Put phpdoc.php together with the *.inc files someplace on your webserver.
157
NEVER USE THE WEB INTERFACE ON A PRODUCTION WEBSERVER.  Allowing your server
158
to write files to disk is a serious security risk, and phpDocumentor is not
159
designed to work on insecure systems.  Setup php on a development machine
160
that has a firewall or no internet connection, and run phpDocumentor from there.
161
 
162
Make sure your webserver can write to wherever you specify as a target or you
163
will get lots of errors.
164
 
165
################################################################################
166
Thanks
167
################################################################################
168
Thanks to Sam Blum for his assistance with @example and other enhancements.
169
Thanks to William K. Hardeman for his HTML:Smarty:HandS design.
170
Thanks to Marco von Ballmoos for transforming the HTML:frames converter and
171
    templates into a magnificent work of art.
172
Thanks to Andrew Eddie for docbuilder and the CHM Converter enhancements.
173
Thanks to Darren Cook for suggesting exciting new features, and making sure that
174
    they worked when implemented.
175
Thanks to Marko Kaening, Dan Convissor for policing the source and finding bugs
176
    that would have otherwise gone undetected.
177
Thanks to Juan Pablo Morales for the web interface.
178
Thanks to whoever sent me the patch to make phpDocumentor work better in NT...
179
	I have your diff and patched the program but i seem to have lost your name...
180
	if you send it to me i'll add it to the Authors file.
181
Thanks to Florian Clever for the newest set of win32 patches... they seem to have
182
	fixed the last of the problems.
183
 
184
    Thanks to EVERYONE who has provided ideas and input, without you,
185
                     phpDocumentor would be nothing.
186
 
187
################################################################################
188
################################################################################
189
If you have any questions please try our mailing list at
190
phpdocu-general@sourceforge.net.
191
 
192
joshua eichorn jeichorn@phpdoc.org
193
gregory beaver cellog@php.net
194
chuck burgess ashnazg@php.net
195
 
196
 
197
 
198
vim: set expandtab: