I'm trying to use phpDocumentor (for the first time, I have no idea what I'm doing).
Actually, I want to use it only with SublimeText 2 and this plugin. Can you guide me step by step what should I do to make it working?
Here's what I've done now: (I'm using Windows 7)
Downloaded phpDocumentor from here and placed it somewhere.
I've created system PATH's for phpdoc/bin
(so phpdoc.bat can be executed by sublime plugin) and then also added system path to php
(from WAMPserver installation)
When I try to use my plugin (or execute phpdoc
inside console window) I get this error:
Could not open input file: \phpdoc.php
PHP's include_path will need the path to the directory that contains that phpdoc.php file. Otherwise, none of the phpDocumentor code that uses require/include statements with relative paths will be able to find anything.
I have changed phpdoc.bat file to point to exactly location of phpdoc.php
I've got the same error message, the already made answers brought me to the right path.
As I don't use wamp/xampp or any of these programms, I thought: why don't run it directly with PHP?
I had already installed PHP7.0.x globally through WebPI.
Only
php
needs to be prefixed to the command, everything worked:php .\phpDocumentor\bin\phpdoc -d .\src\ -t .\dst\
On my windows 7 system, I have my set up phpDocumentor (version 2.6.1) in wamp and my paths are like:
Now what I did is I edited the
phpdoc.bat
file located at path:It contained code as shown below:
So, I edited the last line
"%PHPBIN%" "%PHP_PEAR_BIN_DIR%\phpdoc" %*
with new code"%PHPBIN%" "phpdoc" %*
. Afterphpdoc.bat
looked like :Thereafter I again ran the below command in
cmd
:And the output was like:
So, the output showed that it worked successfully !!
Run:
it will set
%PHP_PEAR_PHP_BIN%
for you.You will need to set the environmental path for "PHP_PEAR_BIN_DIR" to the directory where "phpdoc.php" is.