Table of contents

  1. Unique Data Source - parsing only one file or string
  2. Multiple Data Source - parsing a directory, some files, or an array of files and strings
  3. Conditional Code Analysis - ignore optional code

  1. Unique Data Source
    1. How to parse a unique file
      to find out the minimum version and extensions required for it to run, and display results with the default renderer (Array)
    2. How to parse a chunk of code (string)
      and display results with the CSV renderer
  2. Multiple Data Source
    1. How to parse two different data sources with the same parser instance.
      All files into a directory and a file outside this directory
  3. Conditional Code Analysis
    1. How to ignore PHP5 optional code from files list and found minimum PHP4 version.