Skip to content

Instantly share code, notes, and snippets.

@jnankin
Created July 6, 2012 16:45
Show Gist options
  • Save jnankin/3061269 to your computer and use it in GitHub Desktop.
Save jnankin/3061269 to your computer and use it in GitHub Desktop.
Upgrade to Symfony 2.1
# Majority of the work:
# 1) first get a composer.json to work off of:
PROJ_DIR=/var/www/yourproj
wget http://symfony.com/download?v=Symfony_Standard_Vendors_2.1.0-BETA1.zip -O symfony.zip
unzip symfony.zip
cd Symfony
mv composer* $PROJ_DIR
cd $PROJ_DIR
# 2) make changes to composer.json, adding all your dependecies from your deps file. This was the hardest (or most confusing at first) step for me, as you can't just use any git repo you want, it has to have a composer.json at its root. The default repo that composer pulls from when reading a composer.json is Packagist. Check packagist to see if your current dependencies are hosted there already (in most cases they probably are - I searched for Twilio and Stripe API bindings and they were already there).
# 3) install everything:
curl -s http://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
rm -r vendor
composer install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment