|
|
Nombre de visites : 26 Mise en ligne : 06/2008 Dernière modif : 06/2008 PackagesA 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. phpSimpleDoc 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 is handled by the 'default' documentor implementation. To generate documentation for a project using this definition of package, you must set the related options in the user command file (.ini) :
The Zend Framework wayPackages are formed using two tags in doc domments :@package and @subpackage.
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 command 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. |