Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Developing Web Apps with Symfony2, Doctrine and...

Developing Web Apps with Symfony2, Doctrine and MongoDB

Avatar for Amal Raghav

Amal Raghav

October 26, 2012
Tweet

Other Decks in Programming

Transcript

  1. Who Am I? •Software Engineer at TechJini Solutions •Working with

    PHP/Symfony for last 4 years •@kertz on Twitter and Github Friday, 26 October 12
  2. Symfony2 •Made of reusable components •A community that built Doctrine,

    Behat, Composer, Assetic and more •The backbone for future versions of Drupal & phpBB Friday, 26 October 12
  3. Doctrine •Highly configurable •Supports MySQL, PgSQL, Oracle, SQlite, MongoDB and

    CouchDB •Doctrine Query Language Friday, 26 October 12
  4. Installation • Composer Dependency Manager (http:// getcomposer.org) $ curl -s

    http://getcomposer.org/installer | php $ php composer.phar create-project symfony/framework- standard-edition sf-mongo 2.1.x-dev Friday, 26 October 12
  5. Adding MongoDB { "require": { "doctrine/mongodb-odm-bundle": "3.0.*" }, "minimum-stability": "dev"

    } $ composer.phar update doctrine/mongodb-odm-bundle composer.json AppKernel.php Friday, 26 October 12
  6. What are we building? •A simple image sharing app •Store/Retrieve

    images in/from GridFS •Allow comments for images Friday, 26 October 12
  7. In Retrospect •A form to upload an image and add

    caption •Store images in MongoDB with GridFS •Retrieve images •That was quick, wasn’t it? Friday, 26 October 12