Slide 1

Slide 1 text

Symfony, the PHP framework for Open-Source & Enterprise Friday March 20th 2015 – Cluj – Romania

Slide 2

Slide 2 text

Hugo HAMON Head of training at SensioLabs Book author Speaker at Conferences Symfony contributor @hhamon

Slide 3

Slide 3 text

What is Symfony?

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

Framework Philosophy Community Professional Toolkit

Slide 6

Slide 6 text

Symfony2 is a set of reusable, standalone, decoupled, and cohesive PHP components that solve common web development problems.

Slide 7

Slide 7 text

Dependency Injection BrowserKit ClassLoader Config Console CssSelector Debug DomCrawler EventDispatcher ExpressionLanguage Filesystem Finder Form HttpFoundation HttpKernel Locale Intl Icu OptionsResolver Process PropertyAccess Routing Security Serializer Stopwatch Templating Translation Validator Yaml

Slide 8

Slide 8 text

Symfony is also an HTTP full-stack web framework made of bundles and third party libraries.

Slide 9

Slide 9 text

app/ is the application folder src/ is the libraries folder web/ is the general public folder contains the configuration, templates and generated files contains the PHP code of your application contains front controllers and web assets (images, Javascripts, stylesheets, ...) . ├─ app/ │ ├─ AppCache.php │ ├─ AppKernel.php │ ├─ cache/ │ ├─ config/ │ ├─ console │ ├─ logs/ │ ├─ autoload.php │ ├─ check.php │ ├─ phpunit.xml.dist │ └─ Resources/ │ └─ views/ │ └─ admin/ ├─ src/ │ └─ AppBundle/ ├─ vendor/ └─ web/ ├─ config.php ├─ app.php └─ app_dev.php vendor/ hosts third party code contains libraries and resources installed with Composer utility tool.

Slide 10

Slide 10 text

A « Bundle » is a directory containing a set of files that implement a single feature and can be shared with the Community.

Slide 11

Slide 11 text

src/AppBundle/ ├── AppBundle.php ├── Controller/ │ └── BlogController.php ├── DataFixtures/ │ └── ORM/ │ └── LoadBlogPostData.php ├── Entity/ │ ├── BlogPost.php │ ├── Comment.php │ └── Repository/ │ └── BlogPostRepository.php └── Form/ └── BlogPostType.php

Slide 12

Slide 12 text

Philosophy

Slide 13

Slide 13 text

Symfony is an HTTP framework that converts a Request object into a Response object.

Slide 14

Slide 14 text

# web/app.php use Symfony\Component\HttpFoundation\Request; $kernel = new AppKernel('prod', false); $kernel->loadClassCache(); $request = Request::createFromGlobals(); $response = $kernel->handle($request); $response->send(); $kernel->terminate($request, $response);

Slide 15

Slide 15 text

# web/app.php use Symfony\Component\HttpFoundation\Request; $kernel = new AppKernel('prod', false); $kernel->loadClassCache(); $request = Request::createFromGlobals(); $response = $kernel->handle($request); $response->send(); $kernel->terminate($request, $response);

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

Symfony also takes inspiration on leading professional Open- Source projects from other communities.

Slide 18

Slide 18 text

What makes Symfony popular?

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

+5,000,000 Installs with Composer

Slide 21

Slide 21 text

+1,250 code contributors

Slide 22

Slide 22 text

Official Documentation

Slide 23

Slide 23 text

+900 documentation contributors

Slide 24

Slide 24 text

+2 500 Community Bundles

Slide 25

Slide 25 text

Promoting PHP Standards

Slide 26

Slide 26 text

Modern Development Features

Slide 27

Slide 27 text

Easy Runtime Debugging

Slide 28

Slide 28 text

Symfony for Open-Source projects

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

Symfony for Start-Ups

Slide 42

Slide 42 text

RAD & Prototyping https://www.flickr.com/photos/collylogic

Slide 43

Slide 43 text

§ Code Generators § Admin Generators § ORM Layers § Automation § Annotations

Slide 44

Slide 44 text

Simple & Versatile https://www.flickr.com/photos/58621196@N05/6338435691/sizes/l

Slide 45

Slide 45 text

https://farm8.staticflickr.com/7243/7079126699_d8f34a8425_b.jpg Open

Slide 46

Slide 46 text

https://www.flickr.com/photos/usnavy/5711222106/sizes/l Easy to ship & deploy

Slide 47

Slide 47 text

https://www.flickr.com/photos/sensiolabsuk/7999168719/sizes/l Community Involvment

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

Success Stories

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

Symfony for Enterprise

Slide 58

Slide 58 text

Maturity & Stability

Slide 59

Slide 59 text

Highly Configurable imports: - { resource: parameters.yml } - { resource: security.yml } - { resource: services.yml } framework: #esi: ~ #translator: { fallbacks: ["%locale%"] } secret: "%secret%" router: resource: "%kernel.root_dir%/config/routing.yml" strict_requirements: ~ form: ~ csrf_protection: ~ validation: { enable_annotations: true } # ...

Slide 60

Slide 60 text

End of 2015 Symfony 3.0 Clear Roadmap

Slide 61

Slide 61 text

Symfony major versions are backward compatible to ensure smooth upgrades when new versions are published. http://symfony.com/bc

Slide 62

Slide 62 text

Cloud Deployment

Slide 63

Slide 63 text

Interoperability

Slide 64

Slide 64 text

Professional Services & Support

Slide 65

Slide 65 text

Success Stories

Slide 66

Slide 66 text

Over 100 millions hits per day!

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

No content

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

No content

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

Symfony is made for everyone!

Slide 75

Slide 75 text

Questions? h"p://www.flickr.com/photos/mkrigsman/