Parse deb files using php
If you are on PHP 7 or lower, replace this:
if(str_starts_with($line, 'Package: '))
$bundleid = substr($line, 9);
with this:
if(substr($line, 0, 9) === "Package: ")
$bundleid = substr($line, 9);
- Put file.deb in the same directory as index.php
- Run index.php
- Done
- $bundleid
- $packagename
- $depends
- $description
- $author
- $section
- $version