Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
BEAR.Sundayの設計思想をLaravelと比較して理解する
Search
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
Transcript
19 slides
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
More Decks by masaki
See All by masaki
yokohamanorth-11-LT
masakichieng
0
72
php-con-nagoya-2025-hurikaeri-mokuhyou
masakichieng
1
1.1k
srekaigi2025-hajimete-ippo-aws
masakichieng
0
750
mokuyouLT
masakichieng
0
400
Featured
See All Featured
Design in an AI World
tapps
1
400
My Coaching Mixtape
mlcsv
0
390
Game over? The fight for quality and originality in the time of robots
wayneb77
1
340
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Tell your own story through comics
letsgokoyo
1
1.1k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Google's AI Overviews - The New Search
badams
0
1.7k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
Documentation Writing (for coders)
carmenintech
77
5.6k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
570
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
410