does netbeans include phpdocumentator so you can comment your code?
is there some guide on how to use it, eg. how should i comment, how to read them and how to print them out?
It doesn't, but this link contains step-by-step instructions for setting it up.
https://blogs.oracle.com/netbeansphp/entry/generating_php_documentation_from_netbeans
I think the actual PHPDocumentor tool can be installed from PEAR. I doubt it would be included with Netbeans. I imagine Netbeans provides a way to make use of that facility once installed.
The IDE's ability to interpret your docblocks is built in to NetBeans and Eclipse, and probably other IDEs. That's not phpDocumentor working for you (but close I suppose).
Having phpDocumentor installed would mean having the ability to generate API docs from your code and its docblocks.
Related
What do you use for automatic PHP docs generation.
I know about phpdocumentor. but it looks like it didn't have a single release within 2010.
Should I just use it or are there any alternatives?
You can try using DocBlox, a Documentation Generation application inspired on phpDocumentor.
Please see http://www.docblox-project.org for the website and/or http://demo.docblox-project.org/default for a demo.
We use Doxygen at work, but I must confess that I haven't used them much since setting it up in our continuous integration server. NetBeans and other IDEs parse and display the docs when you hover over and auto-complete items.
PHPdocumentor 2 is currently in alpha phase but still usable, so it seams that the project development ist continued.
For those who code in Notepad++, I just want to confirm that Notepad++ does not have any built-in debugging function (i.e. ability to set breakpoints, step one by one and look at values in the middle of execution). I'm new to PHP coding and am looking for a good editor/IDE to use. Since I would like a debugging function, your answer would greatly help me narrow my choices. Note that I've recently downloaded and am in fact using Notepad++ at the moment, and cannot seem to find either a built-in debugger or a debugging plug-in from the Notepad++ menus. Thanks in advance.
There is the DBGP Plugin for NP++ that hooks into xDebug if you want to try it.
I found decent install/setup instructions here, but as with most things computer related, YMMV.
I like the new Eclipse Helios with PDT 2.2 which hooks into xDebug. If you haven't used eclipse in a while you should check out the new version. The new build of PDT is by far the best PHP debugger I have used.
Try Eclipse w/Zend PDT. The Zend debugger is much stronger than xDebug and it also introspects your code so you can ctrl-click a function call and it will take you to the declaration.
hello a friend of mind ask something about php editor for his companion on coding.
PHP Editor that able to trace dependency of all function in a file with models/controllers or another part of a framework (or something we had code).
Basicly we use notepad++ but seeking another alternative.
I used Eclipse PDT, Aptana, Netbeans, and Komodo. For Web development (at least my style: PHP, Python, Perl, HTML, JavaScript, Ruby, CSS, all the goodies) nothing has touched Komodo IDE. There is a free/open source version called Open Komodo that, unfortunately, is not as feature complete as Komodo IDE but still great.
It runs on Windows, Linux, and Mac (which is a plus since I use all three at times), is completely extendible through plugins, has source code repository features, file transfer features (s/ftp, scp, etc) and so much more. What it really wins on is polish (things like multi-language/library code auto complete).
Komodo ide. Able to set up included libraries on the path. Full featured local and remote debugging. As a bonus it runs on Windows / Linux and Mac.
http://www.activestate.com/komodo-ide
I highly recommend NetBeans (netbeans.org). I've had great luck with it, and using the "Included Files" portion, you can include files outside the website source, so it's able to analyze back through something like CakePHP. The latest release includes support for Symfony too.
I can recommend Eclipse and Aptana Studio 1.5 (which is much better than the PDT plugin for Eclipse). I use it daily for some very large PHP projects on Windows PCs and Macs.
Take a look at nWire for PHP. It is an Eclipse PDT plugin which provides real-time code analysis and exploration. You can easily browse and even visualize all kinds of dependencies within your code.
Is there anything similar to netbean's Javadoc auto comment tool for PHP/phpDocumentor/Eclipse? In the netbeans implementation:
A dialog pops up and allows you to run
through all the members of your class
and enter comments, which are added to
the source file. It even verifies that
there are no parameters you have not
accounted for, so you can be sure that
your comments are complete.
Ideally this would be standalone software, but plugins are OK too :)
p.s. netbeans 6+ auto comment was moved/renamed. Now in "Tool->Options", Tab: "Java Code", Javadoc: "Hints"
edit: screengrab of the original Netbeans tool:
(source: vsj.co.uk)
Also if you use vim, you'd be doing yourself a great disservice to not look at Tobias Schlitt's VIP toolset (VIP = VIM integration for PHP).
I'm not sure if eclipse has an auto documenting feature or not, but you might check out http://www.zend.com/community/pdt. Eclipse is basically like netbeans, but it is very easy to obtain plugins for a multitude of other languages. The link I gave should give you eclipse with the php part included.
Not quite automatic, but close. Here is how to generate phpDocs from your PHP code
I recently installed PHP 5 on IIS, however, I am unable to find a PHP syntax highlighting plug-in or extension for VWD. Where can I find a plug-in? I thought there was an official one.
Consider PHP IDE for Visual Studio.
http://www.jcxsoftware.com/vs.php
I have used this and it adds a lot of nice PHP specific features to Visual Studio.
From their site...
Editor and File Management
•PHP4 and PHP5 Support
•Syntax Coloring for PHP, Smarty, HTML, JavaScript, CSS, XML and XSLT
•File templates for PHP, Smarty, HTML, JavaScript, CSS, XML and XSLT
•Intellisense for PHP, Smarty, HTML, JavaScript, CSS, XML and XSLT
Debugging
•XDebug and DBG support
•Debug PHP, JavaScript and .Net in one single session
•Built-in Apache web server for ease of debugging. Preconfigured with Php4, Php5, XDebug and DBG.
I've tried a lot of text editors, some free, some commercial. So far Visual Studio is the only one that has the right combination of features to be most useful to me. So, coding PHP in VS is important to me.
You can trick Visual Studio (and hopefully also Visual Web Developer) into thinking .php files are C++ with a registry hack. The syntax highlighting is close enough to be useful.
This blog post explains how to do it for all versions of VS: http://blog.cumps.be/visual-studio-2008-and-php-coloring/
I don't know about older versions, but VWD 2010 allows you to link any extension to any type of formatting in its options.
Tools->Options
click 'show all options'
Expand 'Text editor'
click on 'file extensions'
type in 'php' and select how you want it to be formatted (I recommend the Automatic Editor Selector), click Add
And there you go! Next time you load the page you will see the changes. If you don't like it, there's 20 other styles to choose from.
There is no official plugin for PHP for Visual Web Developer. I believe that this is because Microsoft would rather you use their .NET products, (notably ASP) which serves most of if not all of (I can't exactly say as I don't really use ASP as much as PHP) of the functionality of PHP.
There are however, some very good PHP IDEs out there. A list of which you Here
thx, I use the last post with "HTML format" instead "automatic editor selector"
I would recommend using Netbeans. It has code completion for PHP and runs xdebug for debugging. I've been using it for over a year and the support for PHP just keeps getting better.
Definitely worth trying.
I would recommend Visual Studio with this Extension :
http://phalanger.codeplex.com/
It is free and gives you more functionality than most of the expensive tools.
if you're using windows there's an application called notepad++ that will do syntax highlighting for dozens of languages. I used it for C but I know it has a php syntax highlighter and many more languages coming along. Check it out on sourceforge. If your using Linux or Unix you can use K Advanced Text Editor (kate). It also has a console window built in.
What I am looking is for a debugger for PHP that is as useful as the one built into Visual Studios. I searched high and low for this and there seems to be none that works well.
What I used is the PHP Designer 2007 - Personal Version 5.0.2 is a fully functional php editor, for free! from mpsoftware[dot]dk/, however I like using MSVWD a lot too, and now that I've seen how to make php files work in it, I gonna stick with that! Thanks!
btw Aptana Studio looks promising too tho
The closest Visual Studio like PHP environment I have found yet is CodeLobster. It has a free version for PHP and CSS, as well as for pay versions that include for the Pro version a plug-in for CakePHP, CodeIgniter, Drupal, Facebook, JQuery, Joomla, Smarty, Symfony, WordPress and Yii.
It isn't perfect, but it is pretty good and free for the basic version.