phpdoc

Is there any replacement for PHPDocumentor that supports PHP 5.3?

前提是你 提交于 2019-12-03 05:43:59
问题 Some of the new PHP 5.3 features, including namespaces and anonymous functions, are not compatible with PHPDocumentor, even with the latest release. For example, it just raises an error when it encounters "a function with no name", i.e. a closure. So, are there any other open-source tools that generate API documentation (preferably in HTML) from Javadoc-style comments in PHP 5.3 code? 回答1: You could try DocBlox; which is intended to be an alternative for phpDocumentor but with support for

Sublime Text 2 Comment/Doc Block

依然范特西╮ 提交于 2019-12-03 04:10:05
问题 Recently, I decided to try out Sublime Text 2 as a TextMate alternative (which it is). I'm absolutely loving it but the only issue that bugs me is that it doesn't continue the PHP Comment/Doc Block upon pressing "Enter". It just adds new blank lines instead of lines starting with "* " as seen here http://cl.ly/AFcP/o Is there a solution to this? I tried doing a key binding for it but it was just too complicated for me, especially because I'm not too experienced with the editor. Thanks in

VIM Insert PHPdoc automatically

☆樱花仙子☆ 提交于 2019-12-03 03:51:16
问题 Is there a way to insert PHPDoc in VIM using a command or key combination? For example, I have a class: class MyClass { public function __construct() { } public function __destruct() { } /* command here to insert PHP doc */ public function abc() { } } I would like to insert something like: /** * method() * * description * * @access * @author * @param type $varname description * @return type description * @copyright * @version */ And then I can full out the rest manually. Thank you 回答1: This

PHPDoc documentation generator in or out of Eclipse? [closed]

邮差的信 提交于 2019-12-03 02:48:12
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. I am developing with Eclipse + PDT. I've been adding phpdoc comments into my code, but actually never generated a resulting documentation in Eclipse. How should I do it - is there some functionality in Eclipse, or doc generation should be done externally? Pascal MARTIN To generate the documentation, you should use phpDocumentor , which can be installed as a PEAR package. Then, you have to call it from command-line ; I've

phpDocumentor - Could not open input file: phpdoc.php

放肆的年华 提交于 2019-12-03 01:50:47
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

PHP Function Comments

家住魔仙堡 提交于 2019-12-03 00:29:03
问题 Just a quick question: I've seen that some PHP functions are commented at the top, using a format that is unknown to me: /** * * Convert an object to an array * * @param object $object The object to convert * @return array * */ My IDE gives me a dropdown selection for the things such as @param and @return, so it must be documented somewhere. I've tried searching google but it won't include the @ symbol in its search. What is this format of commenting and where can I find some information on

Is there any replacement for PHPDocumentor that supports PHP 5.3?

你说的曾经没有我的故事 提交于 2019-12-02 20:21:48
Some of the new PHP 5.3 features, including namespaces and anonymous functions, are not compatible with PHPDocumentor, even with the latest release. For example, it just raises an error when it encounters "a function with no name", i.e. a closure. So, are there any other open-source tools that generate API documentation (preferably in HTML) from Javadoc-style comments in PHP 5.3 code? You could try DocBlox; which is intended to be an alternative for phpDocumentor but with support for additional features of which full PHP 5.3 support is one. An additional benefit is that is it quite fast and

Sublime Text 2 Comment/Doc Block

笑着哭i 提交于 2019-12-02 17:28:57
Recently, I decided to try out Sublime Text 2 as a TextMate alternative (which it is). I'm absolutely loving it but the only issue that bugs me is that it doesn't continue the PHP Comment/Doc Block upon pressing "Enter". It just adds new blank lines instead of lines starting with "* " as seen here http://cl.ly/AFcP/o Is there a solution to this? I tried doing a key binding for it but it was just too complicated for me, especially because I'm not too experienced with the editor. Thanks in advance. And now an even better solution has become available: https://github.com/spadgos/sublime-jsdocs It

PHP Function Comments

血红的双手。 提交于 2019-12-02 14:05:38
Just a quick question: I've seen that some PHP functions are commented at the top, using a format that is unknown to me: /** * * Convert an object to an array * * @param object $object The object to convert * @return array * */ My IDE gives me a dropdown selection for the things such as @param and @return, so it must be documented somewhere. I've tried searching google but it won't include the @ symbol in its search. What is this format of commenting and where can I find some information on it? That's phpDoc syntax. Read more here: phpDocumentor Waqar Alamgir Functions: /** * Does something

Aptana won't generate phpdoc blocks for functions within classes

放肆的年华 提交于 2019-12-02 05:43:34
问题 In Aptana, I have somehow broken the functionality to auto-generate phpdoc comments for functions within classes. It appears to only affect my current project. Normally I can type /** on the line before a function and press enter, and Aptana will create a phpdoc comment with the correct @param values, etc. For some reason when I do this now Aptana creates 2 comments, one within the other. e.g. /** * /** * */ */ public static function getByLogin($loginID, $ip, $userAgent) { } It works normally