Symfony Presentation
Symfony Presentation
Hayden Pierce
[email protected]
https://www.linkedin.com/in/hayden-pierce-68896185/
Tonight
1. What is Symfony?
2. What is MVC?
3. Starting with Symfony
4. Making a Contact Page
5. 3 Major Concepts
Routing
Controllers
Services
6. Pros and Cons
What is Symfony?
Symfony Components Symfony Full Stack Web Framework
Collection of small, reusable components: Generally what people mean when they say
Symfony:
Asset ICU
BrowserKit Intl
Cache
ClassLoader
LDAP Bundle system for file organization
Locale
INCLUDED IN
Config Options Resolver Opinionated file structure (by default)
Console Process
CssSelector Property Access Symfony Profiler
Debug Property Info
DependencyInjection Routing
Includes other non-Symfony tools.
Dotenv Security Doesnt require use of all components
DomCrawler Serializer
Event Dispatcher StopWatch
Expression Language Templating
FileSystem Translation
Finder Validator
Form VarDumper
Guard Workflow
HTTPFoundation YAML
HTTPKernel
Forms
Performance
Events
Routing info
Active Settings
I wouldnt recommend spending time learning this when getting your feet wet with
Symfony.
Symfony Ecosystem
View
Model
Model
Model
Model
Result:
https://github.com/hpierce1102/FVCPSymfony
Up and Running with Symfony
Symfony CLI Installer:
Builds scaffolding
Latest version of the framework
Latest structure recommendations
http://symfony.com/doc/current/setup.html
Setup URL -
Contact Form
Add route to routing.yml.
Routes include:
The URL
A pointer to a controller action
Controller Action -
Contact Form
Handle the specific HTTP request:
HTTPFoundation:
DependencyInjection:
Hayden Pierce
[email protected]
https://www.linkedin.com/in/hayden-pierce-68896185/