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
masaki
March 11, 2024
0
1.7k
BEAR.Sundayの設計思想をLaravelと比較して理解する
masaki
March 11, 2024
Tweet
Share
More Decks by masaki
See All by masaki
php-con-nagoya-2025-hurikaeri-mokuhyou
masakichieng
1
840
srekaigi2025-hajimete-ippo-aws
masakichieng
0
490
mokuyouLT
masakichieng
0
320
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
The Cult of Friendly URLs
andyhume
78
6.3k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.6k
Building a Modern Day E-commerce SEO Strategy
aleyda
40
7.2k
Designing for Performance
lara
608
69k
We Have a Design System, Now What?
morganepeng
52
7.5k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
12k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
34
2.2k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
357
30k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.8k
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