Online marketing

Where to document your code ?

PHP is a language used by web application php developers. The excitement of its use is due to its many benefits and features that can not be disparaged. It is not only talking about processing speed but also details essential for php developers like documentation. Of course, it will know in the workings in order to best manage the concept to better use.

General information on PHPDocumentor

Code documentation generated when talking about PHP is a plus and sometimes overlooked element yet it is a guarantee of quality. PhpDocumentor the library has a role to generate documentation based on information entered by the PHP code itself. During installation, you must know that PHPdoc is part of the PEAR of pear.php.net directory. To install it, it will install by typing the command PhpDocumentor. It will be possible to have a new order later by typing -help phpdoc. Regarding its use, the preliminary stage of the documentation is to add annotations surrounding the PHP code. After manipulation, we obtain in the doc / the result of the generation of documentation of the file specified by the -f parameter. The result of the operation will, by default, an HTML document consisting of frame that can be opened with a browser.

PHPDoc operation

You should know that the source code of SPIP uses a PHPDoc format to document its functions and files. The PHPDoc or docblocks are specific PHP comments in code to document it. Generally it starts with / ** and ends with * /. Generally, the * creates a vertical net. Specifically, it is composed as follows:

1. / **

2. * This is a docblock

3. * /

Note that the first is the short description of the function. If the description should be longer, it will skip a line as follows:

1. / **

2. * This is the short description, usually on one line

3. *

4. * This is a long description, optional. It starts after the line

5. * vacuum following the short description

6. * /

Also, the contents inside these blocks must be written with a Markdown.

Les publications similaires de "Online marketing tips"

  1. 25 Mars 2020SBG Systems offers a wide range of applications wherever the requirements261 aff.
  2. 12 Mars 2020The new performance of PHP 7229 aff.
  3. 17 Janv. 2020Our Php Programmers are the best ones out there to hire407 aff.
  4. 13 Nov. 2019Php development services from a world leading company603 aff.
  5. 12 Nov. 2019A dedicated team of Php experts @SimplyPhp726 aff.
  6. 16 Oct. 2019Php supports a wide range of databases793 aff.
  7. 25 Août 2019Why Simplyphp are the leaders in web development927 aff.
  8. 12 Mai 2019Simplyphp can offer you the best Php website development1383 aff.
  9. 15 Mars 2019Calling upon a Php development company1473 aff.
  10. 23 Janv. 2019The direction and implementation of individual projects1651 aff.