add bin/ph-pkg2json as a helper for package generator