Generating PHP documentation from NetBeans 6.5

Posted by Eyden Haze . on February 4, 2016

NetBeans 6.5 don’t offer any mission for developers to come up with any PHP documentation method. However you’ll be able to reach it with the assistance of following examples. Let’s have a sound look on those tricks. It will simply be done by operating with a replacement Run Configuration method that calls a little script process to make a correct documentation.

After downloading 1st PHP Documentor from the project pages, unfasten your files and alter the rights of phpdoc to make it work in proper ways.

For following step, produce a new bash script file and work with it from NetBeans. You’ll be able to write the script directly in NetBeans. NetBeans PHP documentation method comes with terribly straightforward syntax pattern options for bash scripting process and bat files. The image displays NetBeans PHP RC2, showing my phpdocNB.sh script to come up with the documentation easily.

Software as a Service in NetBeans PHP

1.Software as a Service in NetBeans PHP

NetBeans IDE supports computer code as a Service (SaaS) applications while you are working with PHP language. There square measures numerous of registered internet services within the service tabs. Whereas when you begin operating with these internet Services , you may see that its quite straightforward to handle all PHP services by simply using drag and drop service node option into the php editor tool, wherever you would like to use it. NetBeans can generate the code for you easily.

Many of such services needs a key service and therefore you’ve got to get your key from the supplier of the service. If you’re inquisitive about this feature, browse the tutorial on internet Service.

Code Templates in NetBeans PHP

The NetBeans editor contain several options that may increase your programming skills. Code template is one such feature. Code templates encourages you to paste a code into your document at the mark position via associate degree abbreviation or code completion. The list of obtainable code templates is within the choices dialog section, class Editor and Tab Code Templates. If you would like to ascertain the PHP code templates, you’ve got to pick PHP within the Language box.

2. Code Templates in NetBeans PHP

Project specific PHP interpreter attainable

Recently, we’ve superimposed a support system to outline PHP interpreter per project. It can simply be done on your own. What you have to do is just to invoke Project Properties and then choose run configuration Script. You can select not only PHP interpreter, but also you can read:

3. Project specific PHP interpreter attainable

Code Folding in PHP editor

What is code folding? I actually have hunted for a definition and that I found this on wikipedia:
Code folding could be a feature of some text editors and ASCII text file editors that enables the user to hide any selection process and show few sections of a currently-edited file as an area of routine edit operations. This further enables a user to manage giant regions of probably difficult text sections among one window, whereas still you can view solely those subsections of the text that are specifically relevant throughout a selected piece of writing session.

The PHP editor, like different editors in NetBeans, provides this advantage. The setting that you will specify normally is editor choices (Tools -> choices -> Editor). On the image below you’ll see that code folds are supported in PHP and they’re mapped in editor choices.

When you collapse a fold, you can see the hidden content, if you place the mouse cursor over the fold description.

4. Code Folding in PHP editor

The PHP editor additionally supports custome folds, that are outlined by users. At the end, wherever you would like to begin the folding process, place the comment //. Content between these tags, are collapsed. These folds will be additionally nested.

4.1

New PHP project wizard

5. New PHP project wizard

Based on various feedbacks of our users, we’ve determined to implement a brand new version of latest PHP project wizard. We have created 2 varieties of New PHP project wizard – one for a very new, empty project and one for a project with existing sources. Please achieve it by using the newest development building process of NetBeans PHP IDE) and in fact, if you discover any issue, it is mandatory to report it.

New PHP project wizard

6. New PHP project wizard

New PHP project wizard (with existing sources):

7. New PHP project wizard (with existing sources)

Better Error Messages within the PHP editor

8. Better Error Messages within the PHP editor

Today I actually have committed for coding that modifies various error messages that are displayed within the PHP editor. It’s not still that good and still needs to be enforced with higher rules to display various additional programming messages, however currently it’s far better then it had been in early stage.

Code Completion for PHPDoc Tags

We’ve simply superimposed code completion process for PHPDoc tags. It pops up automatically when user sorts ‘@’ within a PHPDoc comment. There are several areas to boost your coding process, and in future ofcourse, we have a tendency to attend various additional intelligent techniques to work with the parameters for every used tasks.

9. Code Completion for PHPDoc Tags

Database Code Snippets within the NetBeans PHP editor

One of my favorite options in NetBeans is that the ability to generate Java codes quickly. By invoking the Insert Code [Alt+Insert] action you’ll generate an oversized style of items of Java code: constructors, getters, setters, properties, and so on.

6. New PHP project wizard

Until yesterday, this feature was solely offered within the Java editor. however currently you’ll invoke the Insert Code action within the PHP editor too. 2 code snippets are available: to come up with code that connects to a MySQL info, and to show a info table.

Author Bio :

Ella Cooper works in a leading web development company as a programmer. Apart from programming she has a penchant for writing and thus she shares her development experience through blogging.

Leave a Comment

Your email address will not be published. Required fields are marked *