Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHP Roundtable Podcast:
Episode 78 - DocBlocks, Annotations, PSR-5 & The Like
Oct 10, 2018 @ 17:49:34

The PHP Roundtable podcast, hosted by PHP community member Sammy K Powers, has posted a new episode: Episode #78 - DocBlocks, Annotations, PSR-5 & The Like. In this show Sammy is joined by * Chuck Burgess*, Marco Pivetta, Rasmus Schultz, Margaret Staples and Alexey Gopachenko

We discuss DocBlocks, PSR-5, Annotations, reflection, automatic API documentation generation, and their future in PHP.

You can catch this latest episode either using the in-page video or audio player or by watching it directly on YouTube. If you enjoy the episode, be sure to subscribe to their feed and follow them on Twitter for updates when new shows are being recorded and released.

tagged: phproundtable podcast ep78 docblocks annotation psr5 future language

Link: https://www.phproundtable.com/episode/docblocks-annotations-psr-5-and-the-like

Andrew Podner:
Intro to PHP Comments and Docblocks
Jan 28, 2013 @ 15:21:58

If you've ever looked at your code an wondered about its commenting, if there was a kind of "best practice" to follow when it comes to its structure, you should read this article from Andrew Podner about docblocks.

The subject is how to properly document code with PHP comments and docblocks. This one took a while for me to really just accept as a part of the development process. To me now, the comments are now just as much a part of the application as the code is. I believe it is that important. With IDE’s today, there really is no reason not to have good documentation in your source code.

He talks some about his own reluctance at first to use comments and how it helped him remember what his thought process was behind parts of this code. He includes an example of a typical docblock structure, showing the general description, parameters and a "return" value. He also includes something interesting in the topic of documentation - good variable names. There's links included to two tools that can take these standardized comments from your code and build HTML documentation from it - phpDocumentor and ApiGen.

You can find out more about the PHP docblock standards from this site.

tagged: comments docblocks introduction phpdocumentor

Link:


Trending Topics: