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 stop creating issues about
Search
Kamil Samigullin
May 23, 2016
Education
1
53
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
130
OctoLab Cookbook: how to generate a unique key for a sequence
kamilsk
1
30
Enter Cookbook: refactoring under a microscope
kamilsk
1
45
Other Decks in Education
See All in Education
ISMSってどんなもの?
fbei_ot
0
170
Introduction - Lecture 1 - Advanced Topics in Big Data (4023256FNR)
signer
PRO
1
1.1k
Animaatiot opetuksessa
matleenalaakso
0
3.1k
第33回 JAWS-UG札幌 クラウド女子会コラボ 勉強会
nagisa53
2
360
執筆テーマの決め方
sapi_kawahara
1
180
Data Management and Analytics Specialisation
signer
PRO
0
990
20240319AJG
tosseto
0
300
前期教育実習事前指導0221
naradai
0
130
Human Perception and Colour Theory - Lecture 2 - Information Visualisation (4019538FNR)
signer
PRO
0
1.7k
Frederick Douglass versus George Fitzhugh
oripsolob
0
610
令和6年度 無料トライアルキャンペーン説明会
asial_edu
0
840
STEAM教育の枠組で行うプログラミング学習
asial_edu
0
210
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
267
39k
Automating Front-end Workflow
addyosmani
1356
200k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
14
1.6k
The Invisible Customer
myddelton
114
12k
Designing for humans not robots
tammielis
248
25k
A designer walks into a library…
pauljervisheath
200
23k
The Straight Up "How To Draw Better" Workshop
denniskardys
227
130k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
14
1.5k
Embracing the Ebb and Flow
colly
80
4.1k
The Art of Programming - Codeland 2020
erikaheidi
42
12k
Statistics for Hackers
jakevdp
789
220k
Into the Great Unknown - MozCon
thekraken
10
990
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