Skip to content

Instantly share code, notes, and snippets.

@jderusse
Created December 11, 2014 15:57
Show Gist options
  • Save jderusse/f06181623c1d32f6f02d to your computer and use it in GitHub Desktop.
Save jderusse/f06181623c1d32f6f02d to your computer and use it in GitHub Desktop.
<?php
<<<CONFIG
packages:
- "symfony/symfony-installer: *"
CONFIG;
if (PHP_VERSION_ID < 50400) {
file_put_contents('php://stderr', sprintf(
"Symfony Installer requires PHP 5.4 version or higher and your system has\n".
"PHP %s version installed.\n\n".
"To solve this issue, upgrade your PHP installation or install Symfony manually\n".
"executing the following command:\n\n".
"composer create-project symfony/framework-standard-edition <project-name> <symfony-version>\n\n",
PHP_VERSION
));
exit(1);
}
$appVersion = '0.5.0-DEV';
$app = new Symfony\Component\Console\Application('Symfony Installer', $appVersion);
$app->add(new Symfony\Installer\AboutCommand($appVersion));
$app->add(new Symfony\Installer\NewCommand());
$app->setDefaultCommand('about');
$app->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment