Successfully reported this slideshow.
Symfony
What is Symfony?
a web application framework for PHP5 projects.

➔

- Opensource, MIT license
- OOP
- MVC
by Fabien Potenc...
Framework
➔

➔

A software framework is a
universal, reusable software
platform to develop
applications, products and
solu...
MVC

(Model–view–controller)

The model consists of
application data, business
rules, logic, and functions.

➔

A view can...
some Symfony features...


Support for multiple platforms



Scaffolding - for CRUD templates



multilingualism and I1...
Reasons to use Symfony
1. Reputation
2. Permanence
3. References
4. Innovation
5. Resources
6. Interoperability
Installation:
www.symfony.com
Download, Extract, Start
What is inside?
Console Commands
Welcome!
Creating Pages in Symfony2
1. Create a route
2. Create a controller
Routing (smart URLs )

✗http://cusearch09.com/user/upload/image
Thumb.php?id=5&width=320

✔http://cusearch09.com/user/imag...
Controller
class HelloController
{
    public function indexAction($name)
    {
        return new Response('<html><body>H...
Model
class Product
{
    /** @ORMId
    @ORMColumn(type="integer") */
    protected $id;
    /** @ORMColumn(type="string"...
http://symfony.com
twitter.com/glennguden
Upcoming SlideShare
Loading in …5
×

PHP Frameworks and Symfony

1,154 views

Published on

An overview of Symfony.
Symfony is a PHP framework for web projects.
Speed up the creation and maintenance of your PHP web applications. Replace the repetitive coding tasks by power, control and pleasure.

Published in: Education, Technology
  • Be the first to comment

  • Be the first to like this

PHP Frameworks and Symfony

  1. 1. Symfony
  2. 2. What is Symfony? a web application framework for PHP5 projects. ➔ - Opensource, MIT license - OOP - MVC by Fabien Potencier, SensioLabs (France) ➔ - 2005. first version was released - 2007. symfony 1.0 - 2011. Symfony2 - ATM Symfony 2.3.4 (LTS)
  3. 3. Framework ➔ ➔ A software framework is a universal, reusable software platform to develop applications, products and solutions. Why? ➔ Avoid “reinventing the wheel” ➔ ➔ ➔ Use proven, tested code Maintainability When? ➔ general vs. specific needs ➔ ➔ ➔ packaged software CMS (content management system) framework 
  4. 4. MVC (Model–view–controller) The model consists of application data, business rules, logic, and functions. ➔ A view can be any output representation of data, such as a chart or a diagram. ➔ Model Controller The controller mediates input, converting it to commands for the model or view. ➔ View
  5. 5. some Symfony features...  Support for multiple platforms  Scaffolding - for CRUD templates  multilingualism and I18N support  Database Engine Independent  cache management
  6. 6. Reasons to use Symfony 1. Reputation 2. Permanence 3. References 4. Innovation 5. Resources 6. Interoperability
  7. 7. Installation: www.symfony.com Download, Extract, Start
  8. 8. What is inside?
  9. 9. Console Commands
  10. 10. Welcome!
  11. 11. Creating Pages in Symfony2 1. Create a route 2. Create a controller
  12. 12. Routing (smart URLs ) ✗http://cusearch09.com/user/upload/image Thumb.php?id=5&width=320 ✔http://cusearch09.com/user/image/5/320
  13. 13. Controller class HelloController {     public function indexAction($name)     {         return new Response('<html><body>Hello '. $name.'!</body></html>');     }     public function successAction()     {         return new Response('<html><body>Process  succeeded!</body></html>');     } }
  14. 14. Model class Product {     /** @ORMId     @ORMColumn(type="integer") */     protected $id;     /** @ORMColumn(type="string", length=100) */     protected $name;     /** @ORMColumn(type="decimal", scale=2) */     protected $price;  /** @ORMColumn(type="text") */     protected $description; }
  15. 15. http://symfony.com
  16. 16. twitter.com/glennguden

×