1 / 17

Mobile App Club (An introduction to Symfony )

Mobile App Club (An introduction to Symfony ). Briland Hitaj ICTCO , 08.05.2014. Presentation Outline. What is Symfony Use a Framework??!! WHY??? Ok, but why Symfony ??? Let’s get started (Library Project). What is Symfony ???. Open Source PHP Web applications development framework

reidar
Download Presentation

Mobile App Club (An introduction to Symfony )

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Mobile App Club(An introduction to Symfony) Briland Hitaj ICTCO, 08.05.2014

  2. Presentation Outline • What is Symfony • Use a Framework??!! WHY??? • Ok, but why Symfony??? • Let’s get started (Library Project) ICTCO 2013

  3. What is Symfony??? • Open Source PHP Web applications development framework • Developed by Sensiolabs • Licensed under MIT Open Source License ICTCO 2013 - 2014

  4. Use a Framework??!! WHY??? • Code and File Organization • Utilities and Libraries • Form validation • Input/output filtering • Database Abstraction etc… • The MVC Pattern • Model: representative of your data structures, usually your database • View: page templates and output • Controller: handle requests and bind everything together • Reasons: Cleaner code, easy to extend and maintain faster and more secure application ICTCO 2013 - 2014

  5. OK, but why Symfony??? • Fast • Flexible • Expandable (bundles) • Stable ICTCO 2013 - 2014

  6. Let’s get started • First Download Symfony from http://symphony.com/download ICTCO 2013 - 2014

  7. Download composer • Download COMPOSER.PHAR from https://getcomposer.org/ ICTCO 2013 - 2014

  8. Project Structure ICTCO 2013 - 2014

  9. Execute • phpcomposer.pharupdate • Install the latest and necessary bundles • phpcomposer.pharselfupdate • Periodically get the latest composer.phar distribution ICTCO 2013 - 2014

  10. ICTCO 2013 - 2014

  11. Create a bundle • Symfony works with bundles – a container for your files • Will contain controllers, views and models (MVC architecture) • To generate a bundle execute: • php app/console generate:bundle ICTCO 2013 - 2014

  12. What has generate:bundle done??? ICTCO 2013 - 2014

  13. Now we are good to go… • Configure link to database • app.config/parameters.yml ICTCO 2013 - 2014

  14. ICTCO 2013 - 2014

  15. Execute… • php app/console doctrine:mapping:convert annotation ./src • php app/console doctrine:generate:entitiesMyLibraryMainBundle • NOW WE ARE READY TO DEVELOP… ICTCO 2013 - 2014

  16. ICTCO 2013 - 2014

  17. Thank You!!! ICTCO 2013

More Related