Rename bin file phactory.php to phactory and add it as a bin in composer