Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Composer Introduction - PHP Practice
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Vallabh Kansagara
January 12, 2016
Technology
27
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Composer Introduction - PHP Practice
Composer library introduction with developer description with library code.
Vallabh Kansagara
January 12, 2016
Other Decks in Technology
See All in Technology
アウトプット初心者、半年間のふりかえり
4o1sobblue
0
430
Claude の新機能を、 出た日に触って社内に届けるまで
rfdnxbro
1
180
AI駆動開発の時代になったのでトヨタ生産方式から見直す
terurou
7
6k
JAWSUG TOHOKU 青森支部 「LoGoチャット」のAWS移行で 乗り越えたこと
taketakekaho
0
330
PHPカンファレンス関西の招待状 / Invitation to PHP Conference Kansai
ykanoh
0
120
AI導入は済んだ。次は統制を作り替える番だ_AI×開発組織 Summit 2026
techtekt
PRO
0
230
日本語に強いオープンな大規模言語モデル「LLM-jp」
odashi
4
1.1k
Benchmarking Disaggregated Serving on vLLM + Dynamo with a Real Coding-Agent Workload
nttcom
1
190
DevelopersIO 2026 知識の地図を描く ─ オントロジーとは何か?
ishikawa_satoru
1
1.7k
脆弱性診断って、何をしているの? 〜弱点を見つけて、会社の改善につなげるまで〜
keeg
0
920
20261017福岡devIO 「AIは"良いダッシュボード"を作れるか?
jtakeda
0
150
Persisting Massive Data with Rails ~Designing for 60 billion rows, and fighting the bottlenecks~ Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
0
730
Featured
See All Featured
Automating Front-end Workflow
addyosmani
1369
210k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
270
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
430
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
580
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Site-Speed That Sticks
csswizardry
13
1.6k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
30 Presentation Tips
portentint
PRO
1
430
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
Everyday Curiosity
cassininazir
0
350
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
600
Transcript
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level PHP Practice Vallabh Kansagara Jr. Consultant KNOWARTH Technologies Pvt. Ltd.
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Your Presenter 2 Vallabh Kansagara (@VRKANSAGARA) http://www.vrkansagara.in
[email protected]
[email protected]
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. 3 Dependency Manager for PHP Topic
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Composer is a tool for dependency management in PHP. It allows you to declare the libraries and manage them for you. 4 Definitions: What is a “Composer”?
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why composer ? 5 ➢ Lightweight Tool. ➢ Widely used by Open Source Application. ➢ Effortless dependency manager for individual project. ➢ Developer just love this tools.
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 6 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git How to get composer? 1. curl -sS https://getcomposer.org/installer | php 2. php -r "readfile('https://getcomposer.org/installer');" | php
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 7 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git How run composer? Use php composer.phar from command line. php composer.phar
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 8 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git Prerequisites for composer . Composer.json file in working directory. Keyword Library name Library version
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 9 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git How to get library list ? Get package name from the https://packagist.org/
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 10 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git How to install dependency? To install project dependency. Just run php composer.phar install from project directory. After installation there are folder and files are bellow.
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 11 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git Composer files and folder overview. Library root directory Composer itself dependant library. Rest of dependant library list. Composer bootstrapping file. Composer library list file. Composer library lock file.
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 12 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git Composer in day to day usage. php composer.phar self-update OR php composer.phar selfupdate This command will update the composer composer.phar file.
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 13 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git Composer in day to day usage. php composer.phar init Initialisation of composer.
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 14 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git Composer in day to day usage. php composer.phar install Install all dependency listed in composer.json file. Also install dependant dependency of library.
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 15 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git Composer in day to day usage. php composer.phar remove Remove library from the composer list and library folder.
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 16 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git Composer in day to day usage. php composer.phar require Install library using composer command. No need to manually edit the composer.json file.
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 17 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git Composer in day to day usage. php composer.phar update This will update the library version as per composer.json file. This is handy place to update the library version and update as per required.
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 18 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git Composer in day to day usage. php composer.phar validate This will validate the composer.json file. This is really helpful command when you have many libraries in composer library.
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 19 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git Composer in day to day usage. php composer.phar dumpautoload / dump-autoload
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 20 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git Composer in day to day usage. Composer dump-autoload in details. { "autoload": { Keyword "classmap": [ Class path. "classes" Folder name of class path. ], "psr-4": { PHP Standard for autoloading. "App\\": "app/" Register namespace for folder. } },
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 21 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git Composer in day to day usage. php composer.phar clear-cache OR php composer.phar clearcache This will clears composer's internal package cache(s).
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level © 2015 KNOWARTH Technologies Pvt. Ltd. Why Docker? 22 ➢ Docker allows applications to be isolated into containers with instructions for exactly what they need to survive that can be easily ported from machine to machine. ➢ Virtual machines also allow the exact same thing, and numerous other tools like Chef and Puppet already exist to make rebuilding these configurations portable and reproducible. ➢ While Docker has a more simplified structure compared to both of these, the real area where it causes disruption is resource efficiency. ➢ Faster delivery of your applications a) WordPress b) Drupal c) Liferay ❖ Deploy and scale more easily a) Jenkins b) Bamboo c) Git Who are using composer library?
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level Questions?
SLIDE TITLE ▪ Click to edit Master text styles ▪
Second level ▪ Third level ▪ Fourth level ▪ Fifth level THANK YOU Email:
[email protected]