Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
OctoLab Cookbook: how to use composer.yml and s...
Search
Kamil Samigullin
May 23, 2016
Education
67
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
OctoLab Cookbook: how to use composer.yml and stop creating issues about
Start using all features of YAML with Composer today.
Kamil Samigullin
May 23, 2016
More Decks by Kamil Samigullin
See All by Kamil Samigullin
OctoLab Cookbook: Go lang tips and tricks - protection of sensitive config data
kamilsk
1
140
OctoLab Cookbook: how to generate a unique key for a sequence
kamilsk
1
47
Enter Cookbook: refactoring under a microscope
kamilsk
1
78
Other Decks in Education
See All in Education
Visionary Initiative: Future Intelligence — Laying the foundations for the future of science, intelligence, and society | Science Tokyo
sciencetokyo
PRO
0
290
Geografía y Fútbol: Chattanooga Geografía del Búnker de La Roja.
juanmartin2026
1
12k
[2026前期火5] 論理学(京都大学文学部 前期 第10回)「論理学の哲学——意味とは何か(Tonkと推論主義)」
yatabe
0
300
Plano urbano de Madrid desde el Ensanche al s. XXI (2ª parte).
juanmartin2026
1
48k
学習者データを「見る」:外国語教師のためのデータの入力、分析、解釈方法
uranoken
0
300
AIでアウトプットできる時代だからこそ、自分の言葉で考えることの大切さ / What's Left to Think, When AI Can Write?
masakiokuda
1
200
AIがコードを書く時代に、何を教えるのか / What Should We Teach in the Age of AI-Generated Code?
ichiroc
1
540
【デザイナー就活講座】 デザイナー就活市場・企業探し・ポートフォリオのポイント
koheihasebe
0
560
Enterprise UI, v2
stevekinney
0
220
Visionary Initiative: Materials-Positive Society — Evolving “Things,” empowering a positive society | Science Tokyo
sciencetokyo
PRO
0
250
Course Review - Lecture 13 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
2.4k
ちいかわを読め
uchi8977
1
320
Featured
See All Featured
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
590
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
440
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
470
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
310
GitHub's CSS Performance
jonrohan
1033
470k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.9k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
660
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Transcript
Episode #1.0.1 (2016-05-25) Level: Beginner OctoLab Cookbook How to use
composer.yml and stop creating issues about
The context
None
The problem
• composer/composer#159 • composer/composer#440 • composer/composer#1778 • composer/composer#1988 • composer/composer#5364
is:issue is:closed yaml
The solution
Installation • https://www.python.org/downloads/ (but most cases it is already exists)
• pip install pyyaml • or apt-get install python-yaml • or yum install python-yaml • etc. Requirements • Python • PyYAML
- first: imports import sys, yaml, json;
- second: suppress traceback sys.tracebacklimit = 0;
- third: print it print(json.dumps(yaml.load(open(sys.argv[1]).read())))
- fourth: integrate all together <command> = python -c \
"import sys, yaml, json; \ sys.tracebacklimit = 0; \ print(json.dumps(yaml.load(open(sys.argv[1]).read()), indent=2))" # ~/.bash_profile alias yaml2json = <command> # use it yaml2json composer.yml > composer.json
The benefits
None
None
None
COMMENTS!!!
None
None
None
Bonus: PhpStorm integration
None
• Convert YAML to JSON Online with related tools on
different languages for console • composer-yaml • Example of usage • package.meta initiative Useful links
Thank you for your attention! Have questions? Kamil Samigullin a
some developer
[email protected]
@ikamilsk github.com/kamilsk linkedin.com/in/kamilsk