Wednesday, February 6. 2008How reusable, extensible and maintainable is your software?Comments
Display comments as
(Linear | Threaded)
I just tried to install it. The channel discovery was successful, however it failed to install showing the following messages
1. xplib/PHP_Depend requires PHP (version >= 5.2.5), installed version is 5.2.3-1ubuntu6.3 2. xplib/PHP_Depend requires PEAR Installer (version >= 1.6.0), installed version is 1.5.4 I understand there might be something specific to PEAR 1.5.4 to 1.6.0. But why does it require PHP5.2.5 ? Regards H
Hi Hasin, these dependencies are based on my default "generate me a pear package skeleton" script, that uses the installed php and pear version
Thanks for making this available.
I checked it out from SVN. The first problem is that you have two directories within the test path named "Code" and "code". This is not acceptable on Windows and causes the checkout to stop. I manually worked around the problem. Secondly, the pdepend.bat file does not work on Windows XP. Maybe the PEAR install converts it into a workable form. No big deal. I ran the pdepend.php and pointed it at my little framework. The program ran and created a PNG file with a graph. The graph was empty. I assume my classes somehow don't comply with whatever structure your analysis depends on. Could this be because I use __autoload and a custom ClassLoader? No big deal, I just thought I'd mention this. Since I didn't see any documentation on what structure is needed, I probably won't pursue this further.
Hi Tony,
thanks for the hint with the same named directories, I haven't thought about windows in this case. In terms of the *.bat file you are right, the PEAR installer sets the php executable during the installation process. Windows users, that use the svn check out have to execute the pdepend.php file. php -f pdepend.php Autoload code should not produce any problems. I use this mechanism in most of my projects and I have also tested PHP_Depend against the eZComponents that also makes use of php's autoload mechanism. It would be nice if you send me some sample code that reproduces the described behaviour.
Hi,
If you would provide an e-mail address, I could send you some sample code.
Hello Tony,
you can find my email address in every doc- and file-comment of the source files in your PHP_Depend checkout.
After getting blank output from this I spent some time digging through the source. It appears you have to assign @package phpdoc tags to your files for it to output anything to the PNG/XML.
I ended up hacking it a bit and using it to just do automated dependency detection for my documentation instead of using @uses PHPDoc tags.
Hello Will,
the current early development version of PHP_Depend requires @package Tags, because at the moment it only visualizes a package based metric Future version will include and visualize much more metrics, like PHPUnit does it today. I hope to release a new version of PHP_Depend until mid/end-June. Greetings Manuel
HI Manuel,
Would it be possible to have a graph generated by pdepent like the one in this post? The current release generates an svg which is great for web but impossible to use in OpenOffice for example as you need the rollover effect to see the class name. Also it would be great to have the data which the graph is based on to get as text somehow. |
ProjectsFurther stuffCategories |


Manuel Pichler's recent blog entry on PHP_Depend propmpted me to write about my opinion on the future of software metrics and project mess detection in PHPUnit. When I started to work on these projects, there was no other place for me then to develop t
Tracked: Feb 06, 19:26