<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FireLike &#187; phploc</title>
	<atom:link href="http://www.firelike.com/index.php/tag/phploc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.firelike.com</link>
	<description>In search of..</description>
	<lastBuildDate>Mon, 28 Dec 2009 11:31:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>phploc</title>
		<link>http://www.firelike.com/index.php/2009/05/19/phploc/</link>
		<comments>http://www.firelike.com/index.php/2009/05/19/phploc/#comments</comments>
		<pubDate>Wed, 20 May 2009 05:30:09 +0000</pubDate>
		<dc:creator>firelike</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[PEAR]]></category>
		<category><![CDATA[phploc]]></category>
		<category><![CDATA[sebastian bergmann]]></category>

		<guid isPermaLink="false">http://www.firelike.com/?p=48</guid>
		<description><![CDATA[phploc is cool tool, by Sebastian Bergmann, to check the size of your php project. You can install it with PEAR. The short version of the installation goes like this:

// add PEAR channel
user@host ~ % pear channel-discover pear.phpunit.de
// install phploc
user@host ~ % pear install phpunit/phploc
// run
user@host ~ % phploc /path/to/your/project/code/folder

For more detailed instructions and system [...]]]></description>
			<content:encoded><![CDATA[<p><strong>phploc </strong>is cool tool, by <a href="http://sebastian-bergmann.de/" target="_blank">Sebastian Bergmann</a>, to check the size of your php project. You can install it with PEAR. The short version of the installation goes like this:</p>
<pre class="brush: plain;">
// add PEAR channel
user@host ~ % pear channel-discover pear.phpunit.de
// install phploc
user@host ~ % pear install phpunit/phploc
// run
user@host ~ % phploc /path/to/your/project/code/folder
</pre>
<p>For more detailed instructions and system requirements, here is the <a href="http://github.com/sebastianbergmann/phploc/tree/master" target="_blank">link</a>.</p>
<p>Now we are going to play a little honesty game:<br />
Run the tool against your php project library code</p>
<pre class="brush: plain;">
[user@host] phploc ./library/Zend/
phploc 1.0.0 by Sebastian Bergmann.
Directories: 285
Files: 1372
Lines of Code (LOC): 275436
Comment Lines of Code (CLOC): 130251
Non-Comment Lines of Code (NCLOC): 145185
Interfaces: 53
Classes: 1321
Functions/Methods: 9170
</pre>
<p> Run the tool against your php project own code:</p>
<pre class="brush: plain;">
[user@host] phploc ./my_application/my_modules/
phploc 1.0.0 by Sebastian Bergmann.
Directories: 30
Files: 85
Lines of Code (LOC): 6644
Comment Lines of Code (CLOC): 580
Non-Comment Lines of Code (NCLOC): 6064
Interfaces: 0
Classes: 94
Functions/Methods: 284
</pre>
<p> </p>
<p> </p>
<p>Now calculate the percentage of your code vs. your favorite framework library codepercentage = my_code_NCLOC/my_library_NCLOC*100in my case the result is <strong>4.17%</strong> !!! <img src='http://www.firelike.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> :) How about in your project?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.firelike.com/index.php/2009/05/19/phploc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
