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
1
59
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
Tweet
Share
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
39
Enter Cookbook: refactoring under a microscope
kamilsk
1
60
Other Decks in Education
See All in Education
JAPAN AI CUP Prediction Tutorial
upura
2
720
KBS新事業創造体験2025_科目説明会
yasuchikawakayama
0
160
10分で学ぶ すてきなモナド
soukouki
1
150
くまのココロンともぐらのロジ
frievea
0
150
Node-REDで広がるプログラミング教育の可能性
ueponx
1
270
Chapitre_2_-_Partie_3.pdf
bernhardsvt
0
160
悩める リーダー達に 届けたい書籍|レジリエントマネジメント 書籍イントロダクション-260126
mimoza60
0
320
栃木県警サイバーセキュリティ研修会2026
nomizone
0
200
都市の形成要因と 「都市の余白」のあり方
sakamon
0
160
1021
cbtlibrary
0
400
1216
cbtlibrary
0
140
国際卓越研究大学計画|Science Tokyo(東京科学大学)
sciencetokyo
PRO
0
47k
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
100
6k
Bash Introduction
62gerente
615
210k
Chasing Engaging Ingredients in Design
codingconduct
0
110
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
440
Agile that works and the tools we love
rasmusluckow
331
21k
It's Worth the Effort
3n
188
29k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
780
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
440
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
650
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
390
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