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    
Last Updated Ratings Unique User Downloads Download Rankings
2020-02-28 (4 months ago) RSS 2.0 feedNot enough user ratingsTotal: 109 All time: 9,270 This week: 268Up
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

Recommendations

.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
  Performance   Level  
Name: peyman <contact>
Classes: 4 packages by
Country: Iran Iran
Age: ???
All time rank: 310659 in Iran Iran
Week rank: 263 Up8 in Iran Iran Up
Innovation award
Innovation award
Nominee: 4x

Details

php-exe-file-details-parser

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

usage

$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

getbykeyname

$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

getdatalist

$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
  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 README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:109
This week:0
All time:9,270
This week:268Up

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