symfony demonstration

15
Symfony Demonstration Stephen McAuley @steviebiddles & Best Practices

Upload: stephen-mcauley

Post on 12-Apr-2017

165 views

Category:

Software


2 download

TRANSCRIPT

Page 1: Symfony demonstration

Symfony Demonstration

Stephen McAuley@steviebiddles

& Best Practices

Page 2: Symfony demonstration

What is Symfony?• Symfony is a set of reusable PHP components and

a PHP framework for web applications.

Page 3: Symfony demonstration
Page 4: Symfony demonstration

The Objective• The Book• The Cookbook• The Components

• Best Practices• Reference• API

Page 5: Symfony demonstration

Creating the Project• Symfony Installer

• Structuring the Application

• app/

• src/

• web/

• Running the Application

Page 6: Symfony demonstration

Configuration

• Infrastructure

• Application

• Semantic

• Sensitive Options

• SYMFONY__

Page 7: Symfony demonstration

Organising Your Business Logic

• AppBundle

• Persistence

• Doctrine Mapping

• Data Fixtures

• Services

Page 8: Symfony demonstration

Controllers• extend Controller

• Annotations

• Routing

• Events *

• Commands *

Page 9: Symfony demonstration

Templates

• Naming and Location - AppBundle:Blog:index.html.twig - blog/index.html.twig

• Inheritance (Three-level approach)

• Tags and Helpers

• Extensions

Page 10: Symfony demonstration

Forms

• Building

• Button Configuration

• Rendering

• Handling Submits

Page 11: Symfony demonstration

Internationalisation

• Source File Format (XLIFF)

• Source File Location

• Message Domains

• Translation Keys

Page 12: Symfony demonstration

Security

• Authentication & Firewalls

• Authorisation

• ACL & Security Voters

• FOSUser Bundle / Guard *

Page 13: Symfony demonstration

Resources - Symfony• http://symfony.com/doc/current/index.html

• The Book

• The Cookbook

• The Components

• Symfony Best Practices

• Reference

• http://api.symfony.com/2.7/index.html

Page 14: Symfony demonstration

Resources - Github (Bundles)

schmittjoh

sonata-project

liip

beberlei

whiteoctober KnpLabs

FriendsOfSymfony

nelmio

Atlantic18 willdurand

Behat

doctrinehautelook

kriswallsmith

dunglas

Page 15: Symfony demonstration

Demo