title: How can I count all the lines of code in a directory recursively?
body: <p>We've got a PHP application and want to count all the lines of code under a specific directory and its subdirectories.</p>
  <p>We don't need to ignore comments, as we're just trying to get a rough idea.</p>
  <pre><code>wc -l *.php 
  </code></pre>
  <p>That command works great for a given directory, but it ignores subdirectories. I was thinking the following comment might work, but it is returning 74, which is definitely not the case...</p>
  <pre><code>find . -name '*.php' | wc -l
  </code></pre>
  <p>What's the correct syntax to feed in all the files from a directory resursively?</p>