phpdocr 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +676 -0
- data/NEWS +8 -0
- data/README +11 -0
- data/phpdocr +546 -0
- data/phpdocr.1 +102 -0
- metadata +66 -0
data/phpdocr.1
ADDED
@@ -0,0 +1,102 @@
|
|
1
|
+
.IX Title "PHPDOCR 1"
|
2
|
+
.TH PHPDOCR 1 "2009-09-25" "phpdocr 0.1" ""
|
3
|
+
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
4
|
+
.\" way too many mistakes in technical documents.
|
5
|
+
.if n .ad l
|
6
|
+
.nh
|
7
|
+
.SH "NAME"
|
8
|
+
phpdocr \- a simple way to access PHP documentation from the command\-line
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
.IX Header "SYNOPSIS"
|
11
|
+
phpdocr \fI[\s-1OPTIONS\s0]\fR \fI[\s-1FUNCTION/CLASS/SEARCH\s0 \s-1STRING/\s0..]\fR
|
12
|
+
.SH "DESCRIPTION"
|
13
|
+
.IX Header "DESCRIPTION"
|
14
|
+
\&\fBphpdocr\fR is a simple way to access \s-1PHP\s0 documentation from php.net
|
15
|
+
from the command-line.
|
16
|
+
.PP
|
17
|
+
It will download, prettify, and output \s-1PHP\s0 documentation for the
|
18
|
+
function/class/.. that was supplied on the command-line, much like
|
19
|
+
\&\fIperldoc\fR\|(1) does for \fIperl\fR\|(1) and ri does for \fIruby\fR\|(1). Unless you explicitly
|
20
|
+
tell it not to, phpdocr will also cache the documentation locally
|
21
|
+
for fast retrieval in the future.
|
22
|
+
.PP
|
23
|
+
phpdocr will send its output to your \s-1PAGER\s0 (if it is set, otherwise
|
24
|
+
it will default to less).
|
25
|
+
.PP
|
26
|
+
Links to further information are displayed in the output as [link\-text].
|
27
|
+
The link-text can be supplied to phpdocr in a subsequent invocation to
|
28
|
+
get more detailed information on that subject.
|
29
|
+
.SH "OPTIONS"
|
30
|
+
.IX Header "OPTIONS"
|
31
|
+
.IP "\fB\-h, \-\-help\fR" 4
|
32
|
+
.IX Item "-h, --help"
|
33
|
+
Display the help screen
|
34
|
+
.IP "\fB\-v, \-\-verbose\fR" 4
|
35
|
+
.IX Item "-v, --verbose"
|
36
|
+
Increase verbosity. When this is present phpdocr will tell you additional
|
37
|
+
information about what it is doing, ie. what page it is downloading at the
|
38
|
+
moment.
|
39
|
+
.IP "\fB\-u, \-\-comments\fR" 4
|
40
|
+
.IX Item "-u, --comments"
|
41
|
+
php.net has comments associated with most pages. By default phpdocr will
|
42
|
+
filter these away, however sometimes you may want to see them, in that
|
43
|
+
case supply \-\-comments and phpdocr will include them in its output.
|
44
|
+
.IP "\fB\-n, \-\-no\-cache\fR" 4
|
45
|
+
.IX Item "-n, --no-cache"
|
46
|
+
By default, phpdocr will cache documentation locally so that it can
|
47
|
+
easily be retrieved later without having to re-download it. This
|
48
|
+
parameter disables all caching (both reading from the cache, and
|
49
|
+
writing to the cache).
|
50
|
+
.IP "\fB\-m, \-\-mirror\fR \fI\s-1PATH\s0\fR" 4
|
51
|
+
.IX Item "-m, --mirror PATH"
|
52
|
+
By default phpdocr will connect to php.net. Use this to make it connect
|
53
|
+
to a specific mirror instead (ie. no2.php.net).
|
54
|
+
.IP "\fB\-\-man\fR" 4
|
55
|
+
.IX Item "--man"
|
56
|
+
Show the manpage. Normally 'man phpdocr' would do, but when phpdocr is
|
57
|
+
installed from a rubygem the phpdocr manpage isn't placed anywhere
|
58
|
+
in \fIman\fR\|(1)'s path, this will autodetect its location and issue man
|
59
|
+
directly on the phpdocr.1 file (and thus work even when 'man phpdocr'
|
60
|
+
does not).
|
61
|
+
.SH "FILES"
|
62
|
+
.IX Header "FILES"
|
63
|
+
\&\fI~/.phpdocr\fR \- this is where phpdocr will store any cached documentation.
|
64
|
+
It is safe to remove this directory, or any of its contents, at any time
|
65
|
+
if you need the disk space. phpdocr will simply re-download the documentation
|
66
|
+
next time you request it.
|
67
|
+
.SH "EXAMPLES"
|
68
|
+
.IX Header "EXAMPLES"
|
69
|
+
.IP "\fIphpdocr date\fR" 4
|
70
|
+
.IX Item "phpdocr date"
|
71
|
+
Will download and output the documentation for the date function, or
|
72
|
+
load it from cache if it has been cached.
|
73
|
+
.IP "\fIphpdocr \-u localtime\fR" 4
|
74
|
+
.IX Item "phpdocr -u localtime"
|
75
|
+
Will download and output the documentation for the localtime function
|
76
|
+
and the user comments associated with it. If an entry of the localtime
|
77
|
+
documentation with comments is already in cache, it will load it from
|
78
|
+
there instead.
|
79
|
+
.IP "\fIphpdocr \-n foreach\fR" 4
|
80
|
+
.IX Item "phpdocr -n foreach"
|
81
|
+
Will download and output the documentation for the foreach construct,
|
82
|
+
ignoring any cached information and not writing the result to the cache.
|
83
|
+
.SH "DEPENDENCIES"
|
84
|
+
.IX Header "DEPENDENCIES"
|
85
|
+
Requires one of: elinks, links2, links, w3m, html2text or lynx for \s-1HTML\s0 parsing.
|
86
|
+
.PP
|
87
|
+
Requires the mechanize rubygem for fetching stuff over \s-1HTTP\s0.
|
88
|
+
.SH "HELP/SUPPORT"
|
89
|
+
.IX Header "HELP/SUPPORT"
|
90
|
+
If you need help or support please visit the website at <http://random.zerodogg.org/phpdocr>
|
91
|
+
.SH "BUGS AND LIMITATIONS"
|
92
|
+
.IX Header "BUGS AND LIMITATIONS"
|
93
|
+
If you find a bug, please report it at <http://random.zerodogg.org/phpdocr/bugs>
|
94
|
+
.SH "AUTHOR"
|
95
|
+
.IX Header "AUTHOR"
|
96
|
+
\&\fBphpdocr\fR is written by Eskild Hustvedt <\fIcode at zerodogg dot org\fR>
|
97
|
+
.SH "LICENSE AND COPYRIGHT"
|
98
|
+
.IX Header "LICENSE AND COPYRIGHT"
|
99
|
+
Copyright (C) Eskild Hustvedt 2009
|
100
|
+
.PP
|
101
|
+
This is free software; see the source for copying conditions. There is \s-1NO\s0
|
102
|
+
warranty; not even for \s-1MERCHANTABILITY\s0 or \s-1FITNESS\s0 \s-1FOR\s0 A \s-1PARTICULAR\s0 \s-1PURPOSE\s0.
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: phpdocr
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Eskild Hustvedt
|
8
|
+
autorequire:
|
9
|
+
bindir: .
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-09-28 00:00:00 +02:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: mechanize
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
25
|
+
description: A simple way to access PHP documentation from the command-line
|
26
|
+
email: code at zerodogg dot org
|
27
|
+
executables:
|
28
|
+
- phpdocr
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files: []
|
32
|
+
|
33
|
+
files:
|
34
|
+
- phpdocr
|
35
|
+
- README
|
36
|
+
- COPYING
|
37
|
+
- NEWS
|
38
|
+
- phpdocr.1
|
39
|
+
has_rdoc: false
|
40
|
+
homepage: http://random.zerodogg.org/phpdocr
|
41
|
+
post_install_message:
|
42
|
+
rdoc_options: []
|
43
|
+
|
44
|
+
require_paths:
|
45
|
+
- lib
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: "0"
|
51
|
+
version:
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: "0"
|
57
|
+
version:
|
58
|
+
requirements:
|
59
|
+
- "Either of: elinks, links2, links, w3m, html2text or lynx"
|
60
|
+
rubyforge_project:
|
61
|
+
rubygems_version: 1.3.1
|
62
|
+
signing_key:
|
63
|
+
specification_version: 2
|
64
|
+
summary: A simple way to access PHP documentation from the command-line
|
65
|
+
test_files: []
|
66
|
+
|