Packages
A package can be defined as : a way to group code elements.
This notion is absent from PHP, and different ways to form packages can be found. To organize generated documentation, phpSimpleDoc uses packages, and currently supports two different ways to form packages. The java wayThe first way, coming from java is quite simple : a package is a directory containing source code.Advantages
This definition of package is handled by the 'default' documentor implementation. To generate documentation for a project using this definition of package, you must set the related directives in the user directives file (.ini) :
The Zend Framework wayPackages are formed using two tags in doc domments :@package and @subpackage.
The definition of a package is here : code elements that share the same @package or @subpackage tags.
Advantages
This definition is handled by the 'zendlike' documentor implementation. To generate documentation for a project using this definition of package, you must only set one option in the user directives file (.ini) :
@package tag, it is put in a package called 'default'.
NamespacesThe introduction of namespaces (php 5.3 and higher) will probably give us a way to form packages from namespaces.This is not (yet) implemented in phpsimpledoc. |