title: PHP library/class for extracting information from variety of file formats
body: <p>I'm looking for a <code>PHP</code> class/library that would dynamically extract information from files without any manual work required. For instance:</p>
  
  <p><strong>any type of file:</strong> size, name, path, extension, mime type, md5sum...<br>
  <strong>images:</strong> width, height, colors used...<br>
  <strong>archives:</strong> compression level, list of files contained in archive...<br>
  <strong>video/audio files:</strong> duration, metadata...<br>
  <strong>documents:</strong> number of words / characters / pages...  </p>
  
  <p>I'm not looking for a frontend like these <a href="https://stackoverflow.com/questions/209103/what-is-the-best-web-based-file-explorer"><code>PHP</code>-based file managers/explorers</a>, what I want is a library that can return as much information as possible from as many file formats as possible (I had a look at re-using some code from these file managers/explorers, but it can only be few lines here and there, as what I'm looking for is usually mangled in the file manager/explorer's logic).</p>
  
  <p>So far all I have found are wrappers and small implementations that focus on 1 type of file (e.g. <a href="http://php.net/manual/en/book.fileinfo.php" rel="nofollow noreferrer"><code>FileInfo</code></a> for general purpose, <a href="http://www.imagemagick.org/script/api.php#php" rel="nofollow noreferrer"><code>ImageMagick</code></a> for images, <a href="http://www.phplivedocx.org/articles/pdf-generation-with-zend-framework/" rel="nofollow noreferrer"><code>Zend_Service_LiveDocx</code></a> for documents...) but would like to ask the question anyway just to make sure I'm not missing anything major.</p>
  
  <p><strong>Are there PHP classes/libraries already available out there that can retrieve a lot of info about many different file formats?</strong></p>