How to get lines of code in PHP with PHPLoc via CLI or using Docker

This video shows how to get the lines of code in a PHP application by using PHPLoc from the command line or using Docker. PHPLoc is a command line application to generate a small but useful report. Adam Culp will show how to use it from a Docker Container using a Docker Image he created. PHPLoc demonstrated on the Concrete5 CMS codebase.

Key Topics:

  • Why find the lines of code
  • PHPLoc is an application to find the lines of code in PHP
  • Different methods to use PHPLoc
  • How to use a Docker image to run PHPLoc
  • Comments as a code smell

Associated Links: – Code smells explained – The place for developers to start with Docker – link to the image used to build the Docker container used in this video – location of the PHPLoc tool – Concrete5 CMS code I’m using in this video

What motivates us?

This animated video from RSA features Dan Pink, a well known speech writer for Al Gore and Robert Reich, has spoken at TED (YouTube), and wrote a book called “Drive: The Surprising Truth About What Motivates Us”, does an awesome job of breaking down what motivates people doing complex tasks.  It is short and easy to “get” presentation with very awesome animation. (I wish I could draw like that.)

I think some may be surprised by the message.