Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Composer / Posobota
Search
Filip Procházka
April 28, 2013
Technology
0
60
Composer / Posobota
Filip Procházka
April 28, 2013
Tweet
Share
More Decks by Filip Procházka
See All by Filip Procházka
Evolving architecture
fprochazka
0
120
Value objects in PHP
fprochazka
1
150
Jak psát testy na REST API
fprochazka
0
58
V gitu se nic neztratí
fprochazka
0
330
Co se PHP programátor může naučit od Javy?
fprochazka
1
72
4 roky remote
fprochazka
1
75
Před čím tě Nette ani Symfony neochrání
fprochazka
0
150
Nejlepší cache je žádná cache
fprochazka
0
100
Doctrine: co dělat, když entity nestačí
fprochazka
0
45
Other Decks in Technology
See All in Technology
Amazon ECSとCloud Runの相互理解で広げるクラウドネイティブの景色 / Mutually understanding Amazon ECS and Cloud Run
iselegant
18
2.3k
QA EM
nihonbuson
0
150
RDRAとLLM
kanzaki
4
500
クルマのサブスクを Next.jsで内製化した経験とその1年後
kintotechdev
2
450
MediaPipe と ML Kit ってどう ちがうの? / What is the difference between MediaPipe and ML Kit?
yanzm
0
230
全社員に向けて生成AI活用を促進!~電通総研の生成AI活用ロードマップ~
iotcomjpadmin
0
300
Kubernetesを知る
logica0419
17
4.4k
総会員数1,500万人のレストランWeb予約サービスにおけるRustの活用
kymmt90
3
2.7k
共創するアーキテクチャ ~チーム全体で築く持続可能な開発エコシステム~ / Co-Creating Architecture - A Sustainable Development Ecosystem Built by the Entire Team
bitkey
PRO
1
3.9k
ONNX推論クレートの比較と実装奮闘記
emergent
0
270
Amazon Forecast亡き今、我々がマネージドサービスに頼らず時系列予測を実行する方法
sadynitro
0
220
ファインディの4年にわたる技術的負債の返済 / Repaying 4 Years of Technical Debt at Findy
ma3tk
5
2k
Featured
See All Featured
How to Ace a Technical Interview
jacobian
276
23k
The Invisible Side of Design
smashingmag
298
50k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.3k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.6k
Designing for humans not robots
tammielis
250
25k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Raft: Consensus for Rubyists
vanstee
136
6.7k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
150
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
Transcript
$ composer install Filip Procházka
Filip Procházka @HosipLan http://kdyby.org
None
jak Composer nainstalovat, zkusíme ho požít v naší knihovně a
vyrobíme si vlastní balíček. Ukážeme si...
Jak knihovny řešíme teď?
Alternativy? pear git submoduly
Jak to dělají jinde? gems bundler npm
PHP má composer!
Composer si nainstalujeme $ curl -s http://getcomposer.org/installer | php http://getcomposer.org/download/
$ composer
$ composer search nette kdyby/cms nette/nette nella/framework slamecka/ndbf JanMarek/NFormBuilde JanMarek/WebLoader
Deklarujeme závislosti do souboru composer.json { "require": { "nette/nette": "2.0.*"
} }
Závislosti nainstalujeme $ composer install
composer.lock
Přidáme si další závislosti { "require": { "php" : ">=5.3.2",
"nette/nette": "2.0.*", "kdyby/cms": "dev-master" } }
{ "repositories": [ { "type": "vcs", "url": "git://github.com/HosipLan/nette.git" } ],
"require": { "nette/nette": "dev-master", } } A co jiné verze knihoven?
Aktualizujeme závislosti $ composer update
Vyrobíme si vlastní balíček
{ "name": "kdyby/cms", "description" : "Suprový CMSko", "version": "1.0", "require"
: { "nette/nette" : "2.0.*" } }
Autoloading { "autoload": { "psr-0": {"Kdyby": "libs/"}, "classmap": ["src/", "lib/"]
} }
Autoloading <?php require_once 'vendor/.composer/autoload. php';
http://packagist.org
Malá ukázka?
Dotazy?
Nette už se přidalo, přidejte se taky! http://getcomposer.org Děkuji za
pozornost