Skip to content

Instantly share code, notes, and snippets.

@hpatoio
Last active December 11, 2015 21:28
Show Gist options
  • Save hpatoio/4662612 to your computer and use it in GitHub Desktop.
Save hpatoio/4662612 to your computer and use it in GitHub Desktop.
composer.json that let you have Symfony bounded to the latest 2.1 stable version but still be able to install other bundles with dev stability
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.1.*@stable",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.1.*@stable",
"twig/extensions": "1.0.*@dev",
"symfony/assetic-bundle": "2.1.*@stable",
"symfony/swiftmailer-bundle": "2.1.*@stable",
"symfony/monolog-bundle": "2.1.*@stable",
"sensio/distribution-bundle": "2.1.*@stable",
"sensio/framework-extra-bundle": "2.1.*@stable",
"sensio/generator-bundle": "2.1.*@stable",
"jms/security-extra-bundle": "1.2.*@stable",
"jms/di-extra-bundle": "1.1.*@stable",
"kriswallsmith/assetic": "1.1.*@dev",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"doctrine/doctrine-migrations-bundle": "dev-master",
"knplabs/knp-menu-bundle": "dev-master",
"friendsofsymfony/user-bundle": "dev-master",
"stof/doctrine-extensions-bundle": "dev-master",
"hpatoio/deploy-bundle": "1.2"
},
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web"
},
"minimum-stability" : "dev"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment