SlideShare a Scribd company logo
MILANO
20 ottobre 2017
@mar_gab
GabMar
gabrielemartini1990@gmail.com
EVERY SOLUTION COMES FROM A PROBLEM
OUR FRONTEND FRAMEWORK CHOICE
ASSETS MANAGEMENT
INTEGRATION WITH SYMFONY
BASIC EXAMPLE
FINAL CONSIDERATIONS
Symfony and frontend: a better way
A DEVELOPER OF YOUR TEAM CREATES
A NEW FRONTEND FRAMEWORK
A DEVELOPER OF YOUR TEAM CREATES
A NEW FRONTEND FRAMEWORK
YOU USE THIS NEW FRAMEWORK
IN YOUR APPLICATION
A DEVELOPER OF YOUR TEAM CREATES
A NEW FRONTEND FRAMEWORK
YOU USE THIS NEW FRAMEWORK
IN YOUR APPLICATION
THE DEVELOPER WHO BUILT THE
FRAMEWORK LEAVES THE COMPANY
“
I learn from my mistakes. It's a very
painful way to learn, but without pain,
the old saying is, there's no gain.
Johnny Cash
Symfony and frontend: a better way
DO ALL THE THINGS THAT THE OLD ONE DOES
EASY TO LEARN
EASY TO USE
BE STABLE
BE SUPPORTED
EASY TO INTEGRATE WITH SYMFONY
Symfony and frontend: a better way
Symfony and frontend: a better way
DOES ALL THE THINGS THAT THE OLD ONE DOES
EASY TO LEARN
EASY TO USE
STABLE
SUPPORTED
EASY TO INTEGRATE WITH SYMFONY
= VIRTUAL DOM
= COMPONENTS
= FOCUS ON CORE
+ HTML & CSS
+ SCOPED CSS
± TYPESCRIPT
+ FLEXIBLE
+ SMALLER
= SIMILAR EXPRESSIONS
+ FLEXIBLE
+ ONE-WAY DATA FLOW
VUE IS FASTER AND EASIER TO LEARN
REACT ANGULAR ANGULAR V1
ASSETS MANAGEMENT
WEBPACKSASS
(SCSS)
ESLINTYARN
GIVES THE SUPERPOWERS TO CSS
VARIABLES
NESTED RULES
@IMPORT
(DIFFERENT FROM CSS @IMPORT)
OTHER SUPERPOWERS:
MIXINS
OPERATORS
INHERITANCE
AND MANY MORE...
BUILD A DEPENDENCY GRAPH
OF ALL YOUR ASSETS
Symfony and frontend: a better way
WEBPACK CONFIGURATION CONSISTS
OF 4 COMPONENTS (BASICALLY):
ENTRY: THE STARTING POINT OF THE GRAPH
OUTPUT: WHERE TO PUT THE BUNDLES
LOADERS: TRANSFORM ALL FILES INTO MODULES
PLUGINS: EXTEND THE BASIC CORE
INTEGRATION WITH SASS AND ESLINT USING LOADERS
sass-loader eslint-loader
WEBPACKVUE.JS SYMFONY
Symfony and frontend: a better way
Symfony and frontend: a better way
“Laravel Mix provides a clean, fluent API for defining basic webpack build steps
for your Laravel application. Mix supports several common CSS and JavaScript
pre-processors.
If you've ever been confused about how to get started with module bundling and
asset compilation, you will love Laravel Mix!” {FROM LARAVEL MIX DOCUMENTATION}
USING WEBPACK WITH LARAVEL
AND VUE IS SIMPLE AS DOING:
FOLLOWING LARAVEL MIX IDEA,
SYMFONY DEVELOPERS CREATED
WEBPACK ENCORE
INSPIRED BY LARAVEL MIX AND WEBPACKER
WEBPACK-STYLE CONFIGURATIONS
EASY TO LEARN
EASY TO USE
EXTENDABLE
INTEGRATION WITH MAJOR FRONTEND FRAMEWORKS
JUST FEW LINES FOR YOUR FIRST PROJECT
SIMPLE INSTALLATION WITH YARN
COMPILE ALL THE ASSETS
IMPORT THE BUNDLES
MULTIPAGE APPLICATION? JUST ADD AN ENTRY
DO YOU WANT TO USE TYPESCRIPT?
INTEGRATION WITH VUE.JS
OUR .vue FILES ARE READY TO BE COMPILED
https://gitlab.com/gabmar/encore_demo
WHAT’S INSIDE:
Symfony 3.3.9
Laravel Homestead 4.0.5
Webpack 3.7.1
Eslint 4.9.0
Vue.js 2.5.2
Bootstrap 4.0.0-beta
IS IMPORTANT TO HAVE A STRONG FRONTEND STRUCTURE FOR
SCALABILITY
USING TECHNOLOGIES AS SASS HELP YOU TO SAVE A LOT OF TIME
SYMFONY WEBPACK ENCORE HELPS YOU TO USE A SET OF
TECHNOLOGIES THAT NORMALLY REQUIRE A LOT OF TIME TO
CONFIGURE
USE A POWERFUL FRONTEND FRAMEWORK AS VUE.JS (OR
SOMETHING ELSE) IS NECESSARY IN MEDIUM/LARGE APPLICATIONS
THANK YOU FOR YOUR ATTENTION

More Related Content

PDF
Javascript Event Loop Model
PDF
AI SUCCESS IN DIGITAL MARKETING
PDF
Installing adobe reader and flash player
PDF
Principles. Misunderstood. Applied
PDF
How to Automate your Online Tasks using IFTTT-Amy Carreon-amyzingvirtualprofe...
PDF
API Platform and Symfony: a Framework for API-driven Projects
PDF
Bridging the Gap: From WordPress beginner to WordPress Wizard
PDF
The State of the Web - Helsinki meetup
Javascript Event Loop Model
AI SUCCESS IN DIGITAL MARKETING
Installing adobe reader and flash player
Principles. Misunderstood. Applied
How to Automate your Online Tasks using IFTTT-Amy Carreon-amyzingvirtualprofe...
API Platform and Symfony: a Framework for API-driven Projects
Bridging the Gap: From WordPress beginner to WordPress Wizard
The State of the Web - Helsinki meetup

Similar to Symfony and frontend: a better way (20)

PDF
Mind the Gap - State of the Browser 2015
KEY
Surviving (and Thriving in) the Online Identity Wars
PDF
Essentials in JavaScript App Bundling with Webpack
PDF
How to develop an API ecosystem in the fintech industry from the ground up
PDF
Coding for Designers
PDF
Keynote Squirrly WordPress SEO 2019
PDF
Boxen: AATFT
PDF
SxSW 2015
PDF
Quo vadis, JavaScript? Devday.pl keynote
PDF
Building a full-stack app with Golang and Google Cloud Platform in one week
PDF
Responsive, adaptive and responsible - keynote at NebraskaJS
PDF
Practical WebAssembly with Apex, wasmRS, and nanobus
PPTX
PDF
JavaScript Revolution - 5/Nov/13 - PrDC Saskatoon, SK
PPTX
Publishing A University Magazine in Cascade Server CMS by Marcello prattico
PDF
There Are No “Buts” in Progressive Enhancement [Øredev 2015]
PDF
Js basics
PPT
CSS Good Practices
PDF
Erase and Rewind - Open Web Camp 2015
PDF
[Webinar] sneak peek
Mind the Gap - State of the Browser 2015
Surviving (and Thriving in) the Online Identity Wars
Essentials in JavaScript App Bundling with Webpack
How to develop an API ecosystem in the fintech industry from the ground up
Coding for Designers
Keynote Squirrly WordPress SEO 2019
Boxen: AATFT
SxSW 2015
Quo vadis, JavaScript? Devday.pl keynote
Building a full-stack app with Golang and Google Cloud Platform in one week
Responsive, adaptive and responsible - keynote at NebraskaJS
Practical WebAssembly with Apex, wasmRS, and nanobus
JavaScript Revolution - 5/Nov/13 - PrDC Saskatoon, SK
Publishing A University Magazine in Cascade Server CMS by Marcello prattico
There Are No “Buts” in Progressive Enhancement [Øredev 2015]
Js basics
CSS Good Practices
Erase and Rewind - Open Web Camp 2015
[Webinar] sneak peek
Ad

Recently uploaded (20)

PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Designing Intelligence for the Shop Floor.pdf
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
top salesforce developer skills in 2025.pdf
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
System and Network Administraation Chapter 3
PDF
Digital Systems & Binary Numbers (comprehensive )
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PDF
System and Network Administration Chapter 2
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
Operating system designcfffgfgggggggvggggggggg
Wondershare Filmora 15 Crack With Activation Key [2025
Designing Intelligence for the Shop Floor.pdf
Adobe Illustrator 28.6 Crack My Vision of Vector Design
top salesforce developer skills in 2025.pdf
Design an Analysis of Algorithms II-SECS-1021-03
System and Network Administraation Chapter 3
Digital Systems & Binary Numbers (comprehensive )
Why Generative AI is the Future of Content, Code & Creativity?
System and Network Administration Chapter 2
wealthsignaloriginal-com-DS-text-... (1).pdf
Odoo Companies in India – Driving Business Transformation.pdf
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PTS Company Brochure 2025 (1).pdf.......
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Upgrade and Innovation Strategies for SAP ERP Customers
Design an Analysis of Algorithms I-SECS-1021-03
Odoo POS Development Services by CandidRoot Solutions
Operating system designcfffgfgggggggvggggggggg
Ad

Symfony and frontend: a better way