phpdox icon indicating copy to clipboard operation
phpdox copied to clipboard

Is it possible to add suport for @package

Open maykelsb opened this issue 9 years ago • 1 comments

It'd allow us to use phpdox with pre 5.3 code.

maykelsb avatar May 18 '16 14:05 maykelsb

Technically phpDox will parse any OOP based PHP code just fine, regardless of namespaces or package annotations. If it fails some where, open a bug.

With regards to supporting @package as an (alternative?) to namespaces, I'd have to look into that. It's a completely different parsing approach since the namespace information is taken from the token stream (usually via the phpparser backend) whereas @package would require to use the annotation of the class.

Technically that sounds doable, but unfortunately i'm currently very busy and thus have not much time to work on phpDox so it might take some time to land.

theseer avatar May 18 '16 18:05 theseer