[PHP] Does something like this exist?

2009-06-29 Thread Christoph Boget
I'm wondering if there isn't something out there that crawls through
your codebase and generates a map of (any of) the following:

* What files are include in which scripts
* The relationships between defined classes (eg A extends B)
* What other classes are utilized by which classes (eg, instantiation)

I've done some looking around but haven't really been able to find
anything that does even some of this.  I could write functionality
that does this but didn't want to reinvent the wheel.

thnx,
Christoph

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Does something like this exist?

2009-06-29 Thread Dotan Cohen
 I'm wondering if there isn't something out there that crawls through
 your codebase and generates a map of (any of) the following:

 * What files are include in which scripts
 * The relationships between defined classes (eg A extends B)
 * What other classes are utilized by which classes (eg, instantiation)

 I've done some looking around but haven't really been able to find
 anything that does even some of this.  I could write functionality
 that does this but didn't want to reinvent the wheel.


I think that you're looking for Perl!

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Does something like this exist?

2009-06-29 Thread Ashley Sheridan
On Mon, 2009-06-29 at 23:16 +0300, Dotan Cohen wrote:
  I'm wondering if there isn't something out there that crawls through
  your codebase and generates a map of (any of) the following:
 
  * What files are include in which scripts
  * The relationships between defined classes (eg A extends B)
  * What other classes are utilized by which classes (eg, instantiation)
 
  I've done some looking around but haven't really been able to find
  anything that does even some of this.  I could write functionality
  that does this but didn't want to reinvent the wheel.
 
 
 I think that you're looking for Perl!
 
 -- 
 Dotan Cohen
 
 http://what-is-what.com
 http://gibberish.co.il
 
Have you looked at PHPDoc? You'll have to comment your code fairly well
and in a specific style (which is a boon in itself) but it will produce
some fairly good documentation.

Thanks
Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Does something like this exist?

2009-06-29 Thread Michael Shadle
On Mon, Jun 29, 2009 at 1:16 PM, Dotan Cohendotanco...@gmail.com wrote:

 * What files are include in which scripts

pecl.php.net/package/inclued  - an awesome tool, will show you
includes/require calls to other ones, show you any redundancy (dotted
lines) etc. helps you clean up any nested and unnecessary includes or
requires. Rasmus approved(tm)

use it with graphviz and you've got visual maps of your entire
include/require structure.

 * The relationships between defined classes (eg A extends B)
 * What other classes are utilized by which classes (eg, instantiation)

doesn't phpdoc or something do this stuff? might need comments before
each function/method to make it really work well. not sure. i think
there's also something called phpxref as well that might work...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Does something like this exist?

2009-06-29 Thread Christoph Boget
 * What files are include in which scripts
 pecl.php.net/package/inclued  - an awesome tool, will show you
 includes/require calls to other ones, show you any redundancy (dotted
 lines) etc. helps you clean up any nested and unnecessary includes or
 requires. Rasmus approved(tm)
 use it with graphviz and you've got visual maps of your entire
 include/require structure.

Ok, I'll look in to it.  Thanks!

 * The relationships between defined classes (eg A extends B)
 * What other classes are utilized by which classes (eg, instantiation)
 doesn't phpdoc or something do this stuff? might need comments before
 each function/method to make it really work well. not sure. i think
 there's also something called phpxref as well that might work...

It does.  But I'm looking to use this on an inherited framework that,
unfortunately, includes very little PHPDoc comments.  Considering how
large the codebase is, it'd be quicker for me to write this
functionality (to at least give us something to reference) than it
would be to add the necessary comments.  Granted, that's something
we'd want to eventually add anyway but it's something we could do over
time as we became much more familiar with the framework.

thnx,
Christoph

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Does something like this exist?

2009-06-29 Thread Eddie Drapkin
Have you looked at class_parents()?
http://www.php.net/manual/en/function.class-parents.php

On Mon, Jun 29, 2009 at 4:42 PM, Christoph Bogetjcbo...@yahoo.com wrote:
 * What files are include in which scripts
 pecl.php.net/package/inclued  - an awesome tool, will show you
 includes/require calls to other ones, show you any redundancy (dotted
 lines) etc. helps you clean up any nested and unnecessary includes or
 requires. Rasmus approved(tm)
 use it with graphviz and you've got visual maps of your entire
 include/require structure.

 Ok, I'll look in to it.  Thanks!

 * The relationships between defined classes (eg A extends B)
 * What other classes are utilized by which classes (eg, instantiation)
 doesn't phpdoc or something do this stuff? might need comments before
 each function/method to make it really work well. not sure. i think
 there's also something called phpxref as well that might work...

 It does.  But I'm looking to use this on an inherited framework that,
 unfortunately, includes very little PHPDoc comments.  Considering how
 large the codebase is, it'd be quicker for me to write this
 functionality (to at least give us something to reference) than it
 would be to add the necessary comments.  Granted, that's something
 we'd want to eventually add anyway but it's something we could do over
 time as we became much more familiar with the framework.

 thnx,
 Christoph

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Does something like this exist?

2009-06-29 Thread Nathan Nobbe
On Mon, Jun 29, 2009 at 2:12 PM, Christoph Boget
christoph.bo...@gmail.comwrote

 I'm wondering if there isn't something out there that crawls through
 your codebase and generates a map of (any of) the following:

 * What files are include in which scripts


the inclued extension

http://pecl.php.net/package/inclued

* The relationships between defined classes (eg A extends B)
 * What other classes are utilized by which classes (eg, instantiation)


doxygen - i like it way more than php documentor or w/e its called..

-nathan