Managing frontend libs in your php project

Massimiliano Arione
Massimiliano ArionePHP developer at freelance
Managing frontend libs
in your PHP project
Massimiliano Arione
PHPDay 2014 Unconference
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
Use CDNs
PROS
super fast
CONS
does not work when offline
not everything is on a CDN
solution #3
Put them in your repo
PROS
complete control over sources
CONS
you have to maintain vendors
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 Symfony project by
Managing frontend libs in your Symfony projectManaging frontend libs in your Symfony project
Managing frontend libs in your Symfony projectMassimiliano Arione
538 views11 slides
Integração Contínua com PHPCI by
Integração Contínua com PHPCIIntegração Contínua com PHPCI
Integração Contínua com PHPCIThiago Paes
802 views9 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
What is the best programming language for beginner? by
What is the best programming language for beginner?What is the best programming language for beginner?
What is the best programming language for beginner?Designveloper
174 views7 slides
Easy form creation and validation with Formjack by
Easy form creation and validation with FormjackEasy form creation and validation with Formjack
Easy form creation and validation with Formjackslicejack
987 views14 slides
Universal groovy by
Universal groovyUniversal groovy
Universal groovyShin-Jan Wu
312 views13 slides

More Related Content

What's hot

C/C++ Remote Development Overview by
C/C++ Remote Development OverviewC/C++ Remote Development Overview
C/C++ Remote Development OverviewThitipong Jampajeen
1.4K views16 slides
SpecBDD in PHP by
SpecBDD in PHPSpecBDD in PHP
SpecBDD in PHPKacper Gunia
18.9K views51 slides
It's all about behaviour, also in php - phpspec by
It's all about behaviour, also in php - phpspecIt's all about behaviour, also in php - phpspec
It's all about behaviour, also in php - phpspecGiulio De Donato
5K views20 slides
Polyglot Programmer by
Polyglot ProgrammerPolyglot Programmer
Polyglot ProgrammerJoão Cerdeira
1.1K views44 slides
Go lang by
Go langGo lang
Go langSuelen Carvalho
8.3K views35 slides
Why you should care about Go (Golang) by
Why you should care about Go (Golang)Why you should care about Go (Golang)
Why you should care about Go (Golang)Aaron Schlesinger
1.6K views37 slides

What's hot(20)

SpecBDD in PHP by Kacper Gunia
SpecBDD in PHPSpecBDD in PHP
SpecBDD in PHP
Kacper Gunia18.9K views
It's all about behaviour, also in php - phpspec by Giulio De Donato
It's all about behaviour, also in php - phpspecIt's all about behaviour, also in php - phpspec
It's all about behaviour, also in php - phpspec
Giulio De Donato5K views
Why you should care about Go (Golang) by Aaron Schlesinger
Why you should care about Go (Golang)Why you should care about Go (Golang)
Why you should care about Go (Golang)
Aaron Schlesinger1.6K views
Python debuggers slides by mattboehm
Python debuggers slidesPython debuggers slides
Python debuggers slides
mattboehm555 views
5 important languages for DevOps by Ravi Sagar
5 important languages for DevOps5 important languages for DevOps
5 important languages for DevOps
Ravi Sagar386 views
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
really really really awesome php application with bdd behat and iterfaces by Giulio De Donato
really really really awesome php application with bdd behat and iterfacesreally really really awesome php application with bdd behat and iterfaces
really really really awesome php application with bdd behat and iterfaces
Giulio De Donato2K views
QCon SP - ShortTalk - Virtualização e Provisionamento de Ambientes com Vagr... by Lucas Arruda
QCon SP - ShortTalk - Virtualização e Provisionamento de Ambientes com Vagr...QCon SP - ShortTalk - Virtualização e Provisionamento de Ambientes com Vagr...
QCon SP - ShortTalk - Virtualização e Provisionamento de Ambientes com Vagr...
Lucas Arruda745 views
PHPz for the rest of us by divarvel
PHPz for the rest of usPHPz for the rest of us
PHPz for the rest of us
divarvel1.5K views
Feedback from an eclipse plugin developer to provide support to large set of ... by Aurélien Pupier
Feedback from an eclipse plugin developer to provide support to large set of ...Feedback from an eclipse plugin developer to provide support to large set of ...
Feedback from an eclipse plugin developer to provide support to large set of ...
Aurélien Pupier130 views
Plugin Development for Beginners by Joe Cartonia
Plugin Development for BeginnersPlugin Development for Beginners
Plugin Development for Beginners
Joe Cartonia161 views
freeCodeCamp Tokyo meetup 19 by 健太 田上
freeCodeCamp Tokyo meetup 19freeCodeCamp Tokyo meetup 19
freeCodeCamp Tokyo meetup 19
健太 田上501 views
apidays LIVE Hong Kong - Let's get started development of API client library ... by apidays
apidays LIVE Hong Kong - Let's get started development of API client library ...apidays LIVE Hong Kong - Let's get started development of API client library ...
apidays LIVE Hong Kong - Let's get started development of API client library ...
apidays26 views

Similar to Managing frontend libs in your php project

Wc13 by
Wc13Wc13
Wc13Pomaxa None
6K views31 slides
Composer Lightning Talk by
Composer Lightning TalkComposer Lightning Talk
Composer Lightning TalkEric Johnson
364 views13 slides
Advanced PHP Web Development Tools in 2015 by
Advanced PHP Web Development Tools in 2015Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015iScripts
11.1K views10 slides
PHP frameworks by
PHP frameworks PHP frameworks
PHP frameworks Ranveer Tegi
42 views1 slide
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
Php by
PhpPhp
PhpVineet Vats
1.7K views101 slides

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

Composer Lightning Talk by Eric Johnson
Composer Lightning TalkComposer Lightning Talk
Composer Lightning Talk
Eric Johnson364 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
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
Php tutorial by Niit
Php tutorialPhp tutorial
Php tutorial
Niit7.3K views
Learn PHP Lacture1 by ADARSH BHATT
Learn PHP Lacture1Learn PHP Lacture1
Learn PHP Lacture1
ADARSH BHATT1.1K views
Introduction to PHP - SDPHP by Eric Johnson
Introduction to PHP - SDPHPIntroduction to PHP - SDPHP
Introduction to PHP - SDPHP
Eric Johnson687 views
Introduction to PHP (SDPHP) by Eric Johnson
Introduction to PHP   (SDPHP)Introduction to PHP   (SDPHP)
Introduction to PHP (SDPHP)
Eric Johnson784 views
Modern Gentlemen's WordPress by Enrico Deleo
Modern Gentlemen's WordPressModern Gentlemen's WordPress
Modern Gentlemen's WordPress
Enrico Deleo660 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

More from Massimiliano Arione(20)

Recently uploaded

Discover Aura Workshop (12.5.23).pdf by
Discover Aura Workshop (12.5.23).pdfDiscover Aura Workshop (12.5.23).pdf
Discover Aura Workshop (12.5.23).pdfNeo4j
20 views55 slides
The Power of Generative AI in Accelerating No Code Adoption.pdf by
The Power of Generative AI in Accelerating No Code Adoption.pdfThe Power of Generative AI in Accelerating No Code Adoption.pdf
The Power of Generative AI in Accelerating No Code Adoption.pdfSaeed Al Dhaheri
44 views18 slides
Netmera Presentation.pdf by
Netmera Presentation.pdfNetmera Presentation.pdf
Netmera Presentation.pdfMustafa Kuğu
22 views50 slides
This talk was not generated with ChatGPT: how AI is changing science by
This talk was not generated with ChatGPT: how AI is changing scienceThis talk was not generated with ChatGPT: how AI is changing science
This talk was not generated with ChatGPT: how AI is changing scienceElena Simperl
34 views13 slides
The Power of Heat Decarbonisation Plans in the Built Environment by
The Power of Heat Decarbonisation Plans in the Built EnvironmentThe Power of Heat Decarbonisation Plans in the Built Environment
The Power of Heat Decarbonisation Plans in the Built EnvironmentIES VE
85 views20 slides
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And... by
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...ShapeBlue
120 views12 slides

Recently uploaded(20)

Discover Aura Workshop (12.5.23).pdf by Neo4j
Discover Aura Workshop (12.5.23).pdfDiscover Aura Workshop (12.5.23).pdf
Discover Aura Workshop (12.5.23).pdf
Neo4j20 views
The Power of Generative AI in Accelerating No Code Adoption.pdf by Saeed Al Dhaheri
The Power of Generative AI in Accelerating No Code Adoption.pdfThe Power of Generative AI in Accelerating No Code Adoption.pdf
The Power of Generative AI in Accelerating No Code Adoption.pdf
Saeed Al Dhaheri44 views
This talk was not generated with ChatGPT: how AI is changing science by Elena Simperl
This talk was not generated with ChatGPT: how AI is changing scienceThis talk was not generated with ChatGPT: how AI is changing science
This talk was not generated with ChatGPT: how AI is changing science
Elena Simperl34 views
The Power of Heat Decarbonisation Plans in the Built Environment by IES VE
The Power of Heat Decarbonisation Plans in the Built EnvironmentThe Power of Heat Decarbonisation Plans in the Built Environment
The Power of Heat Decarbonisation Plans in the Built Environment
IES VE85 views
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And... by ShapeBlue
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
ShapeBlue120 views
GDSC GLAU Info Session.pptx by gauriverrma4
GDSC GLAU Info Session.pptxGDSC GLAU Info Session.pptx
GDSC GLAU Info Session.pptx
gauriverrma415 views
Cocktail of Environments. How to Mix Test and Development Environments and St... by Aleksandr Tarasov
Cocktail of Environments. How to Mix Test and Development Environments and St...Cocktail of Environments. How to Mix Test and Development Environments and St...
Cocktail of Environments. How to Mix Test and Development Environments and St...
Optimizing Communication to Optimize Human Behavior - LCBM by Yaman Kumar
Optimizing Communication to Optimize Human Behavior - LCBMOptimizing Communication to Optimize Human Behavior - LCBM
Optimizing Communication to Optimize Human Behavior - LCBM
Yaman Kumar39 views
"Node.js vs workers — A comparison of two JavaScript runtimes", James M Snell by Fwdays
"Node.js vs workers — A comparison of two JavaScript runtimes", James M Snell"Node.js vs workers — A comparison of two JavaScript runtimes", James M Snell
"Node.js vs workers — A comparison of two JavaScript runtimes", James M Snell
Fwdays14 views
Don’t Make A Human Do A Robot’s Job! : 6 Reasons Why AI Will Save Us & Not De... by Moses Kemibaro
Don’t Make A Human Do A Robot’s Job! : 6 Reasons Why AI Will Save Us & Not De...Don’t Make A Human Do A Robot’s Job! : 6 Reasons Why AI Will Save Us & Not De...
Don’t Make A Human Do A Robot’s Job! : 6 Reasons Why AI Will Save Us & Not De...
Moses Kemibaro38 views
Transcript: Redefining the book supply chain: A glimpse into the future - Tec... by BookNet Canada
Transcript: Redefining the book supply chain: A glimpse into the future - Tec...Transcript: Redefining the book supply chain: A glimpse into the future - Tec...
Transcript: Redefining the book supply chain: A glimpse into the future - Tec...
BookNet Canada43 views
"Running students' code in isolation. The hard way", Yurii Holiuk by Fwdays
"Running students' code in isolation. The hard way", Yurii Holiuk "Running students' code in isolation. The hard way", Yurii Holiuk
"Running students' code in isolation. The hard way", Yurii Holiuk
Fwdays38 views
Bronack Skills - Risk Management and SRE v1.0 12-3-2023.pdf by ThomasBronack
Bronack Skills - Risk Management and SRE v1.0 12-3-2023.pdfBronack Skills - Risk Management and SRE v1.0 12-3-2023.pdf
Bronack Skills - Risk Management and SRE v1.0 12-3-2023.pdf
ThomasBronack31 views
Mobile Core Solutions & Successful Cases.pdf by IPLOOK Networks
Mobile Core Solutions & Successful Cases.pdfMobile Core Solutions & Successful Cases.pdf
Mobile Core Solutions & Successful Cases.pdf
IPLOOK Networks16 views
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading... by The Digital Insurer
Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading...
"Package management in monorepos", Zoltan Kochan by Fwdays
"Package management in monorepos", Zoltan Kochan"Package management in monorepos", Zoltan Kochan
"Package management in monorepos", Zoltan Kochan
Fwdays37 views
The Coming AI Tsunami.pptx by johnhandby
The Coming AI Tsunami.pptxThe Coming AI Tsunami.pptx
The Coming AI Tsunami.pptx
johnhandby14 views

Managing frontend libs in your php project