How big is my PHP Project ?

In: PHP| Programming language

18 Mar 2009

I had the chance to attend the PHP Québec Conference this year. It was very interesting. I highly encourage anyone to attend such conferences if he / she is interested by PHP.

Anyway during one of the presentation, I discovered an interesting little script / tool named PHPLoc. It is written by Sebastian Bergmann and It will basically parse php files (of a project for intstance) and return some informations related to its size.

Here is an example directly taken from github.com :

sb@ubuntu ~ % phploc /usr/local/src/ezcomponents/trunk/Workflow
phploc 1.1.0 by Sebastian Bergmann.

Directories: 13
Files: 102

Lines of Code (LOC): 14066
Executable Lines of Code (ELOC): 5710
Comment Lines of Code (CLOC): 5228
Non-Comment Lines of Code (NCLOC): 8838

Interfaces: 7
Classes: 90
Functions/Methods: 566

  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

Comment Form

Who am I?

My name is Bashar Al-Fallouji and this is my Blog. I currently work at Nstein as a Senior Solution Architect & Business Analyst. Nstein Technologies develops and markets multilingual solutions that power digital publishing for the most prestigious newspapers, magazines, and content-driven organizations.

I am particularly interested in Web applications, Open Source Development, Software Engineering, Information Architecture, Unit Testing, XP/Agile development, etc.

On this blog, you will find mostly technical articles and thoughts around PHP, OOP, OOD, Unit Testing, etc. I am also sharing a few open source tools and scripts.

  • r0b: Thanks for sharing that great script! Saved me hundreds lines of includes in my project! [...]
  • anis: Excellent Slide bashar! j'ai rate la presentation [...]
  • Apprendre a utiliser Git | Anis Berejeb: [...] chez github. essayons de « checkouter»  un projet. Je choisis le projet [...]
  • Sheila: BAF rocks! [...]
  • anis berejeb: I think that there is no ambiguity because what is passed in the : $res = changeObj($obj = new StdC [...]