PHP Windows exe Parser: Parse and extract details from Windows exe files

Recommend this page to a friend!
  Info   Example   View files (4)   Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-02-28 (5 months ago) Not enough user ratingsTotal: 109 All time: 9,278 This week: 268
Version License PHP version Categories
php-exe-file-details 1.0.0The PHP License5PHP 5, Files and Folders, Windows, Pa...
Description Author

This class can be used to parse and extract details from Windows exe files.

It takes the path of a given .exe file on a Windows based system and read its contents to parse it and extract several types of details details. Currently it can extract:

- Name of the company that produced the file
- Description
- Version
- Internal name
- Copyright information
- Product name
- Last change date
- Build id
- Update system version
- Source control id
- File size


.exe Parser
Is possible parse Windows a .exe file?

Innovation Award
PHP Programming Innovation award nominee
February 2020
Number 5
Some applications need to check executable programs for the Windows operating system to extract relevant information that they may contain about those programs.

This class can parse and extract those program details from Windows executable program files by reading and parsing the files using built-in PHP functions, so it can be used also when running PHP on non-Windows operating systems.

Manuel Lemos
Picture of peyman
  Performance   Level  
Name: peyman <contact>
Classes: 4 packages by
Country: Iran Iran
Age: ???
All time rank: 309559 in Iran Iran
Week rank: 771 17 in Iran Iran
Innovation award
Innovation award
Nominee: 4x



a php class for parsing exe file details ( without COM ) also works for files with same file detail format as exe (.dll , sys , ..)


$filedetails = new filedetailsparser($filepath);
$data = $filedetails->getdata($type);
  • filepath : exe file path
  • type : data type 'array' | 'object' (optional) default:'array' ### return : return array/object on success or exception on fail


$keyvalue = $filedetails->getbykeyname($keyname,$type);
  • keyname : file detail key name (from list)
  • type : data type 'array' | 'object' (optional) default:'array' ### return : return string/array/object on find or 'false' on notfind


$data = $filedetails->getdatalist($keylist,$type);
  • keylist : list of keys for extraction from data
  • type : data type 'array' | 'object' (optional) default:'array' ### return : return array/object

filedetails list

  • companyname
  • filedescription
  • fileversion
  • internalname
  • legalcopyright
  • originalfilename
  • productname
  • productversion
  • companyshortName
  • productshortName
  • lastchange
  • legaltrademarks
  • buildid
  • updatesystemversion
  • source control id
  • filesize
  • pathinfo
File Role Description
filedetailsparser.php Class Class source
index.php Example Example script
LICENSE Lic. License text Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,278
This week:268

For more information send a message to info at phpclasses dot org.