PHP Classes

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

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 128 All time: 9,326 This week: 115Up
Version License PHP version Categories
php-exe-file-details 1.0.1The PHP License5PHP 5, Files and Folders, Windows, Pa...


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: 286450 in Iran Iran
Week rank: 389 Up6 in Iran Iran Up
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
  • LegalTrademarks1
  • LegalTrademarks2
  • buildid
  • updatesystemversion
  • source control id
  • filesize
  • pathinfo
  • Comments
  • FileBuildPart
  • FileMajorPart
  • FileMinorPart
  • FileName
  • FilePrivatePart
  • IsDebug
  • IsPatched
  • IsPreRelease
  • IsPrivateBuild
  • IsSpecialBuild
  • Language
  • PrivateBuild
  • ProductBuildPart
  • ProductMajorPart
  • ProductMinorPart
  • ProductPrivatePart
  • SpecialBuild

note : not all of these properties are available for all .exe or .dll files.

github :

  Files folder image Files  
File Role Description
Plain text file filedetailsparser.php Class Class source
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,326
This week:115Up