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);
info at phpclasses dot org