Managing frontend libs in your Symfony project

Massimiliano Arione
Massimiliano ArionePHP developer at freelance
Managing frontend libs 
in your Symfony project 
Massimiliano Arione 
SymfonyCon lighting talks 
Madrid, 2014
about me 
CTO at bee-lab.net 
PHP dev since ~2000 
fell in love with Symfony ~2007 
president of PUG Roma 
https://twitter.com/garakkio
problem 
You need to manage some frontend libraries 
Examples: 
❏ jquery 
❏ bootstrap 
❏ font awesome 
❏ you name it
solution #1 
ask your frontend colleague 
PROS 
super simple 
CONS 
he/she can do a mess 
there’s no frontend colleague
solution #2 
Put them in your repo 
PROS 
complete control over sources 
CONS 
you have to maintain vendors
solution #3 
Use CDNs 
PROS 
super fast 
CONS 
does not work when offline 
not everything is on a CDN
solution #4 
Use Composer 
PROS 
you are already using it (are you?) 
CONS 
backend and frontend mixed 
duplicated code
solution #5 
Use Bower 
PROS 
just declare vendors in your repo 
CONS 
you need node.js
solution #6 
Use BowerPHP 
PROS 
just declare vendors in your repo 
CONS 
...
thanks 
http://www.bowerphp.org/
references 
https://github.com/RobLoach/component-installer 
http://bower.io/ 
http://bowerphp.org/
1 of 11

Recommended

Managing frontend libs in your php project by
Managing frontend libs in your php projectManaging frontend libs in your php project
Managing frontend libs in your php projectMassimiliano Arione
717 views11 slides
PHP Mega Meetup, Sep, 2020, Anti patterns in php by
PHP Mega Meetup, Sep, 2020, Anti patterns in phpPHP Mega Meetup, Sep, 2020, Anti patterns in php
PHP Mega Meetup, Sep, 2020, Anti patterns in phpAhmed Abdou
86 views41 slides
Mozilla Shumway - opensource meetup budapest by
Mozilla Shumway - opensource meetup budapestMozilla Shumway - opensource meetup budapest
Mozilla Shumway - opensource meetup budapestRobert Szaloki
352 views13 slides
C programming ii by
C programming   iiC programming   ii
C programming iiKaustavRoy40
60 views10 slides
The Poly Pinoy by
The Poly PinoyThe Poly Pinoy
The Poly PinoyMiguel Paraz
450 views12 slides
Impress by
ImpressImpress
Impresskd8rap
251 views8 slides

More Related Content

What's hot

An alternative to xs by
An alternative to xsAn alternative to xs
An alternative to xsleontimmermans
466 views8 slides
Applications & tasks by
Applications & tasksApplications & tasks
Applications & tasksHristo Iliev
93 views14 slides
Swift @ IBM by
Swift @ IBMSwift @ IBM
Swift @ IBMPushkar Kulkarni
105 views11 slides
REPL-driven development with pry by
REPL-driven development with pry  REPL-driven development with pry
REPL-driven development with pry Stephen Mariano Cabrera
371 views12 slides
Code Dojo by
Code DojoCode Dojo
Code DojoKacper Gunia
2.9K views35 slides
Introduction to PHP Basics by
Introduction to PHP BasicsIntroduction to PHP Basics
Introduction to PHP BasicsTheCreativedev Blog
336 views8 slides

What's hot(20)

BSides Algiers - PHP Static Code Analysis - Abdeldjalil Belakhdar by Shellmates
BSides Algiers - PHP Static Code Analysis - Abdeldjalil BelakhdarBSides Algiers - PHP Static Code Analysis - Abdeldjalil Belakhdar
BSides Algiers - PHP Static Code Analysis - Abdeldjalil Belakhdar
Shellmates1.3K views
SpecBDD in PHP by Kacper Gunia
SpecBDD in PHPSpecBDD in PHP
SpecBDD in PHP
Kacper Gunia18.9K views
Universal groovy by Shin-Jan Wu
Universal groovyUniversal groovy
Universal groovy
Shin-Jan Wu312 views
The Poly Pinoy, Redux by Miguel Paraz
The Poly Pinoy, ReduxThe Poly Pinoy, Redux
The Poly Pinoy, Redux
Miguel Paraz303 views
Test-Driven Development with TypeScript+Jasmine+AngularJS by SmartOrg
Test-Driven Development with TypeScript+Jasmine+AngularJSTest-Driven Development with TypeScript+Jasmine+AngularJS
Test-Driven Development with TypeScript+Jasmine+AngularJS
SmartOrg 6.2K views
Easy form creation and validation with Formjack by slicejack
Easy form creation and validation with FormjackEasy form creation and validation with Formjack
Easy form creation and validation with Formjack
slicejack987 views

Viewers also liked

The metrics by
The metricsThe metrics
The metricsMassimiliano Arione
481 views21 slides
Symfony: un framework per il web by
Symfony: un framework per il webSymfony: un framework per il web
Symfony: un framework per il webMassimiliano Arione
385 views17 slides
Translating symfony docs by
Translating symfony docsTranslating symfony docs
Translating symfony docsMassimiliano Arione
606 views13 slides
Symfony ignite by
Symfony igniteSymfony ignite
Symfony igniteMassimiliano Arione
454 views20 slides
Lessons learned in PHP by
Lessons learned in PHPLessons learned in PHP
Lessons learned in PHPMassimiliano Arione
1.2K views10 slides
Migrare da symfony 1 a Symfony2 by
 Migrare da symfony 1 a Symfony2  Migrare da symfony 1 a Symfony2
Migrare da symfony 1 a Symfony2 Massimiliano Arione
930 views23 slides

Viewers also liked(18)

Similar to Managing frontend libs in your Symfony project

Composer Lightning Talk by
Composer Lightning TalkComposer Lightning Talk
Composer Lightning TalkEric Johnson
364 views13 slides
What is PHP ? by
What is PHP ?What is PHP ?
What is PHP ?Sameer Poudel
307 views9 slides
Node.JS Vs PHP: Which Is The Top Server-Side Programming Language? by
Node.JS Vs PHP: Which Is The Top Server-Side Programming Language?Node.JS Vs PHP: Which Is The Top Server-Side Programming Language?
Node.JS Vs PHP: Which Is The Top Server-Side Programming Language?Pixel Crayons
39 views17 slides
Wc13 by
Wc13Wc13
Wc13Pomaxa None
6K views31 slides
Programming in c plus plus2 by
Programming in c plus plus2Programming in c plus plus2
Programming in c plus plus2AA Coaching Academy
223 views3 slides
PHP programmimg by
PHP programmimgPHP programmimg
PHP programmimgSharbani Bhattacharya
939 views101 slides

Similar to Managing frontend libs in your Symfony project(20)

Composer Lightning Talk by Eric Johnson
Composer Lightning TalkComposer Lightning Talk
Composer Lightning Talk
Eric Johnson364 views
Node.JS Vs PHP: Which Is The Top Server-Side Programming Language? by Pixel Crayons
Node.JS Vs PHP: Which Is The Top Server-Side Programming Language?Node.JS Vs PHP: Which Is The Top Server-Side Programming Language?
Node.JS Vs PHP: Which Is The Top Server-Side Programming Language?
Pixel Crayons39 views
Introduction to PHP (SDPHP) by Eric Johnson
Introduction to PHP   (SDPHP)Introduction to PHP   (SDPHP)
Introduction to PHP (SDPHP)
Eric Johnson784 views
Advanced PHP Web Development Tools in 2015 by iScripts
Advanced PHP Web Development Tools in 2015Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015
iScripts11.1K views
Introduction to PHP - SDPHP by Eric Johnson
Introduction to PHP - SDPHPIntroduction to PHP - SDPHP
Introduction to PHP - SDPHP
Eric Johnson687 views
Uvod u php - Danilo Purić i Tarik Zaimović by Bild_Studio
Uvod u php - Danilo Purić i Tarik ZaimovićUvod u php - Danilo Purić i Tarik Zaimović
Uvod u php - Danilo Purić i Tarik Zaimović
Bild_Studio326 views
PHP - Programming language war, does it matter by Mizno Kruge
PHP - Programming language war, does it matterPHP - Programming language war, does it matter
PHP - Programming language war, does it matter
Mizno Kruge271 views
Docker for business: How I stopped worrying about antipatterns by Lenses.io
Docker for business: How I stopped worrying about antipatternsDocker for business: How I stopped worrying about antipatterns
Docker for business: How I stopped worrying about antipatterns
Lenses.io253 views
Python monorepos what, why and how (shared) by benjyw
Python monorepos  what, why and how (shared)Python monorepos  what, why and how (shared)
Python monorepos what, why and how (shared)
benjyw126 views
Php tutorial by Niit
Php tutorialPhp tutorial
Php tutorial
Niit7.3K views
Python for web development by Luis Borbon
Python for web developmentPython for web development
Python for web development
Luis Borbon157 views

More from Massimiliano Arione

Typed models pug roma febbraio 2020 by
Typed models   pug roma febbraio 2020Typed models   pug roma febbraio 2020
Typed models pug roma febbraio 2020Massimiliano Arione
149 views18 slides
Pipelines! by
Pipelines! Pipelines!
Pipelines! Massimiliano Arione
229 views24 slides
Il nostro amico Stan by
Il nostro amico Stan   Il nostro amico Stan
Il nostro amico Stan Massimiliano Arione
314 views34 slides
PSR7 - interoperabilità HTTP by
PSR7 - interoperabilità HTTPPSR7 - interoperabilità HTTP
PSR7 - interoperabilità HTTPMassimiliano Arione
765 views25 slides
Disinstallare fos user bundle e vivere felici by
Disinstallare fos user bundle e vivere feliciDisinstallare fos user bundle e vivere felici
Disinstallare fos user bundle e vivere feliciMassimiliano Arione
796 views23 slides
MAGA - PUG Roma giugno 2017 by
MAGA - PUG Roma giugno 2017MAGA - PUG Roma giugno 2017
MAGA - PUG Roma giugno 2017Massimiliano Arione
740 views29 slides

Recently uploaded

What is API by
What is APIWhat is API
What is APIartembondar5
15 views15 slides
Transport Management System - Shipment & Container Tracking by
Transport Management System - Shipment & Container TrackingTransport Management System - Shipment & Container Tracking
Transport Management System - Shipment & Container TrackingFreightoscope
6 views3 slides
How Workforce Management Software Empowers SMEs | TraQSuite by
How Workforce Management Software Empowers SMEs | TraQSuiteHow Workforce Management Software Empowers SMEs | TraQSuite
How Workforce Management Software Empowers SMEs | TraQSuiteTraQSuite
7 views3 slides
Winter Projects GDSC IITK by
Winter Projects GDSC IITKWinter Projects GDSC IITK
Winter Projects GDSC IITKSahilSingh368445
416 views60 slides
Dapr Unleashed: Accelerating Microservice Development by
Dapr Unleashed: Accelerating Microservice DevelopmentDapr Unleashed: Accelerating Microservice Development
Dapr Unleashed: Accelerating Microservice DevelopmentMiroslav Janeski
16 views29 slides
Advanced API Mocking Techniques Using Wiremock by
Advanced API Mocking Techniques Using WiremockAdvanced API Mocking Techniques Using Wiremock
Advanced API Mocking Techniques Using WiremockDimpy Adhikary
5 views11 slides

Recently uploaded(20)

Transport Management System - Shipment & Container Tracking by Freightoscope
Transport Management System - Shipment & Container TrackingTransport Management System - Shipment & Container Tracking
Transport Management System - Shipment & Container Tracking
Freightoscope 6 views
How Workforce Management Software Empowers SMEs | TraQSuite by TraQSuite
How Workforce Management Software Empowers SMEs | TraQSuiteHow Workforce Management Software Empowers SMEs | TraQSuite
How Workforce Management Software Empowers SMEs | TraQSuite
TraQSuite7 views
Dapr Unleashed: Accelerating Microservice Development by Miroslav Janeski
Dapr Unleashed: Accelerating Microservice DevelopmentDapr Unleashed: Accelerating Microservice Development
Dapr Unleashed: Accelerating Microservice Development
Miroslav Janeski16 views
Advanced API Mocking Techniques Using Wiremock by Dimpy Adhikary
Advanced API Mocking Techniques Using WiremockAdvanced API Mocking Techniques Using Wiremock
Advanced API Mocking Techniques Using Wiremock
Dimpy Adhikary5 views
predicting-m3-devopsconMunich-2023.pptx by Tier1 app
predicting-m3-devopsconMunich-2023.pptxpredicting-m3-devopsconMunich-2023.pptx
predicting-m3-devopsconMunich-2023.pptx
Tier1 app10 views
Electronic AWB - Electronic Air Waybill by Freightoscope
Electronic AWB - Electronic Air Waybill Electronic AWB - Electronic Air Waybill
Electronic AWB - Electronic Air Waybill
Freightoscope 6 views
How to build dyanmic dashboards and ensure they always work by Wiiisdom
How to build dyanmic dashboards and ensure they always workHow to build dyanmic dashboards and ensure they always work
How to build dyanmic dashboards and ensure they always work
Wiiisdom16 views
predicting-m3-devopsconMunich-2023-v2.pptx by Tier1 app
predicting-m3-devopsconMunich-2023-v2.pptxpredicting-m3-devopsconMunich-2023-v2.pptx
predicting-m3-devopsconMunich-2023-v2.pptx
Tier1 app14 views
aATP - New Correlation Confirmation Feature.pptx by EsatEsenek1
aATP - New Correlation Confirmation Feature.pptxaATP - New Correlation Confirmation Feature.pptx
aATP - New Correlation Confirmation Feature.pptx
EsatEsenek1222 views
How To Make Your Plans Suck Less — Maarten Dalmijn at the 57th Hands-on Agile... by Stefan Wolpers
How To Make Your Plans Suck Less — Maarten Dalmijn at the 57th Hands-on Agile...How To Make Your Plans Suck Less — Maarten Dalmijn at the 57th Hands-on Agile...
How To Make Your Plans Suck Less — Maarten Dalmijn at the 57th Hands-on Agile...
Stefan Wolpers44 views

Managing frontend libs in your Symfony project