PhpRiot
Download This Article
Download this article in PDF format with all listings and files.

Price: $5.00 AUD
(Approx. $4.10 USD)

More information
Browse Articles
Ajax (4), APC (1), CAPTCHA (1), CSS (3), Debugging (1), File Upload (1), Google (3), Google Maps (2), JavaScript (12), JSON (2), MVC (1), MySQL (7), onbeforeunload (1), OOP (1), PHP (28), PhpDoc (1), PostgreSQL (6), Prototype (11), Reflection (1), RFC 1867 (1), Robots (1), Scriptaculous (1), SEO (1), Sessions (1), SimpleXML (1), Smarty (5), SOAP (1), SPL (1), Templates (2), W3C (1), XHTML (1), Zend Framework (1), Zend_Search_Lucene (1)

PhpRiot Newsletter
Your Email Address:

Advanced Documentation With Reflection In PHP 5

Summary

In summary, using Reflection, SPL and phpdoc commenting style you can create a dynamic in-memory site documentation system that does not require updating documentation. Rather, documentation can be simply generated on demand.

This will save you or your staff from having to spend a lot of time managing documentation releases and updates.

If used effectively, it guarantees that all the documentation is accurate for the version of the code you are running. This is especially useful in organizations that utilize CVS or SVN development as documentation can also be effectively versioned without extra management of branches and modules. In short, it solves a lot of the common workflow problems related to documentation.

For a working example of these concepts please see StormAPI from StormTide Digital Studios Inc at http://www.stormtide.ca/StormAPIMVC.

A native documentation generator can be located in /model/docgen of our trac source code browser.

I hope this article proves useful and if you are in need of professional PHP consulting please contact StormTide Digital Studios Inc..

Kevin McArthur is the CEO of StormTide Digital Studios Inc and has been working with PHP for over 6 years developing some of the most innovative scaled web-applications around.

References and resources

In This Article


Tagged in , ,