You can create and regenerate PHAR files in the workbench.
Creating a new PHAR file Regenerating a PHAR file
PHAR file exporter