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
BEAR.Sundayの設計思想をLaravelと比較して理解する
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
masaki
March 11, 2024
2.8k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
BEAR.Sundayの設計思想をLaravelと比較して理解する
masaki
March 11, 2024
More Decks by masaki
See All by masaki
yokohamanorth-11-LT
masakichieng
0
68
php-con-nagoya-2025-hurikaeri-mokuhyou
masakichieng
1
1.1k
srekaigi2025-hajimete-ippo-aws
masakichieng
0
720
mokuyouLT
masakichieng
0
380
Featured
See All Featured
Designing Powerful Visuals for Engaging Learning
tmiket
1
530
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Abbi's Birthday
coloredviolet
3
9.8k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
230
Optimising Largest Contentful Paint
csswizardry
37
3.9k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.1k
We Are The Robots
honzajavorek
0
330
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4.3k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
Transcript
BEAR.Sundayの設計思想を Laravelと比較して理解する PHPerKaigi 2024 3/8 TrackA ルーキーズLT まさきち( エキサイト株式会社)
BEAR.Sundayとは 設計思想とMVCフレームワークとの違い コードを見ながらLaravelと比較 まとめ 01 02 03 04 アジェンダ 1
・PHPのWebフレームワーク ・API中心のRESTfulアプリケーション BEAR.Sundayとは 2
MVC パターンではなく RMR(Resource-Method-Representation) パターン 設計思想 3
RMRパターン? 4
Controller View Model Route MVCパターン リクエスト レスポンス 5 データベース
onGet onPost onDelete renderer 6 Representation (レスポンス) Method RMRパターン Resource
リクエスト データベース
onGet onPost onDelete renderer 7 Representation (レスポンス) Method RMRパターン Resource
リクエスト データベース
onGet onPost onDelete renderer 8 Representation (レスポンス) Method RMRパターン Resource
リクエスト データベース
具体的な実装例で比較する 9
TODOアプリの動きをイメージします /todos にGETリクエストを送り、 TODO一覧を取得して表示する過程を見る TODOアプリ 10
Laravel のパターン 11
12 Laravel Route
13 Laravel Controller
BEAR.Sunday のパターン 14
15 BEAR.Sunday Appリソース DB から 情報を取得
16 BEAR.Sunday Pageリソース APP リソースから 情報を取得 Representation として返却
キャッチアップについて ・既知の概念と照らし合わせながら理解 ・処理の流れを図にしてイメージを掴む ・公式チュートリアル等を参考にコードを書く 17
BEAR.Sundayまとめ ・MVC とは異なる RMR パターン ・URL に対して一意のリソース ・HTTP メソッドに対してリソースのメソッド 18