Tidy up composer.json bin and add proxy for main.php