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
object-mapperを作ってる話
Search
polidog
June 18, 2020
Technology
0
270
object-mapperを作ってる話
polidog
June 18, 2020
Tweet
Share
More Decks by polidog
See All by polidog
小さな開発会社を作った理由
polidog
1
2.2k
小さな開発会社がWebサービスを作る理由
polidog
1
470
トランザクションスクリプトは何がダメなのか?
polidog
2
2.7k
React初心者がHooksを理解するためにコードを読んでみた
polidog
0
460
2020年から始めるSymfonyフレームワーク
polidog
2
1.2k
はじめてのモダンPHP
polidog
0
510
ソフトウェア設計は難しくない
polidog
3
920
柔軟なアプリケーションをSymfonyで作るために考えている事
polidog
1
2.9k
Symfonyのキャッシュについて
polidog
2
610
Other Decks in Technology
See All in Technology
Chunk computing
matyo91
0
270
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
1
160
20分で分かるIAM全機能 (拡大版) / 20240903-jawsug-yokohama-iam
opelab
3
120
脆弱星に導かれて
nishimunea
1
1.5k
歴史と背景から改めて振り返るVPC
shotashiratori
2
220
技術ブログや登壇資料を秒で作るコツ伝授します
minorun365
PRO
18
4.7k
Binary Authorizationと友達になろう / Let's be friends with Binary Authorization
iselegant
2
130
Oracle Database Backup Service:サービス概要のご紹介
oracle4engineer
PRO
0
4k
Practical GenAI with Go - Elastic and Golang Sydney
adriancole
0
130
20240906_JAWS_Yamanashi_#1_leap_beyond_the_AWS_all_certifications
tsumita
1
170
HolidayJp.jl を作りました
mrkn
0
110
[RSJ24] Object Retrieval in Large-Scale Indoor Environments Using Dense Text with a Multi-Modal Large Language Model
keio_smilab
PRO
0
220
Featured
See All Featured
What's new in Ruby 2.0
geeforr
340
31k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
27
1.6k
Optimizing for Happiness
mojombo
375
69k
It's Worth the Effort
3n
182
27k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.4k
Testing 201, or: Great Expectations
jmmastey
35
6.9k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
354
29k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
165
48k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
225
22k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
27
8.9k
The World Runs on Bad Software
bkeepers
PRO
64
11k
How to name files
jennybc
75
97k
Transcript
object-mapperΛ ࡞ͬͯΔ @polidog shizuoka.php online #0 2020/06/18
ࣗݾհ • @polidog • PartyHard Inc. • PHPϓϩάϥϚ
#ϙϦΊΔ
helicon/object-mapper https://github.com/helicon-php/object-mapper
object-mapperͱ • ྻ͔ΒΦϒδΣΫτʹม͢ΔͨΊͷπʔ ϧ • @varͷใΛͱʹϚοϐϯά͢Δ • PHP7.3·Ͱ͔͠ରԠͯ͠ͳ͍
None
2ͭͷϥΠϒϥϦ • object-type-parser • type-converter
object-type-parser • PHPͷΫϥεͷϓϩύςΟ͔ΒํͷใΛऔ ಘ͢Δ • ྻͱͯ͠ܕใΛදݱ͢Δ
None
type-converter • εΩʔϚʹͦͬͯͷܕΛมߋ͢Δ • ༷ʑͳܕʹରԠͰ͖ΔΑ͏ͳػߏ
None
ॲཧͷྲྀΕ ΫϥεϓϩύςΟͷ ܕใղੳ ͷܕม ΦϒδΣΫτͷ Ϛοϐϯά object-type-parser type-converter Laminas\Hydrator (ReflectionHydrator)
࣮ίʔυ͜Ε͚ͩ https://github.com/helicon-php/object-mapper/blob/master/src/ObjectMapper.php
࣮͢Δ্Ͱ৺͕͍ͯΔ͜ͱ • ͱʹ͔͘γϯϓϧʹͭ͘Δ • ϞδϡʔϧͷڥքΛҙࣝ͢Δ • ػೳ͝ͱʹύοέʔδԽ͠࠶ར༻ੑΛߴΊΔ
ࠓޙͷల • ύϑΥʔϚϯε໘ͷݟ͠ • PHP7.4ରԠ • ࠷ऴతʹORM࡞Γ͍ͨ
࠷ޙʹ
ͥͻͬͯΈ͍ͯͩ͘͞
͍ํ https://kojirooooocks.hatenablog.com/entry/ 2019/11/05/021319 @kojirock5260
ͦͯ͠ϑΟʔυόοΫ ͍ͩ͘͞ (GithubͰελʔ…)
͓͠·͍ɻ