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
Supabaseって何?PHPから触ってみる / What is Supabase, and ...
Search
shiro seike
PRO
September 15, 2023
Programming
810
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Supabaseって何?PHPから触ってみる / What is Supabase, and how to touch it from PHP?
(非公式)PHPカンファレンス沖縄2023前夜祭LT会
https://re-build.connpass.com/event/291268/
shiro seike
PRO
September 15, 2023
More Decks by shiro seike
See All by shiro seike
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
760
Seeing Through Serverless: Observability for AWS Lambda with ADOT and CloudWatch Application Signals
seike460
PRO
1
160
Seeing Through Serverless: ADOT と CloudWatch Application Signals で実現する AWS Lambda のオブザーバビリティ(日本語版)/ Seeing Through Serverless (Japanese Edition)
seike460
PRO
1
37
モノレポの型は、そのままつながる 〜Hono RPCで型を素通しする開発体験〜 / Monorepo Types Connect As-Is: Passing Types Through with Hono RPC
seike460
PRO
1
45
OSSのコンセプトを知る / Understanding the Concept Behind an OSS
seike460
PRO
1
40
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
670
コミュニティの有益性 ~JAWS Days 2026 での体験を通して~ / The Benefits of a Community ~Through My Experience at JAWS Days 2026~
seike460
PRO
0
490
実行委員長目線で振り返る JAWS DAYS 2026 / JAWS DAYS 2026 from the Chair's Perspective
seike460
PRO
1
38
SLO から始める SRE / Starting SRE with SLO
seike460
PRO
1
120
Other Decks in Programming
See All in Programming
CodeRabbitの効果検証と過ごしてみた3ヶ月
armondando
0
150
Java 27新機能 / Java 27 new features
kishida
2
200
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
450
APNsからLive Activityを開始する話
yumnumm
0
150
GitHubハンズオン講座 — 実務レベルのチーム開発のフローを身につけよう
junhat6
0
120
そのリトライ、死んだコネクションを使い回していませんか ── GoのHTTPクライアントとHTTP/2を実プロダクト障害から学び直す
myus4a
0
390
RAG の “R” を Swift で覗いてみる 〜「意味から探す」検索の仕組み〜
nao_randd
0
120
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.1k
Agents on Rails - Rails at Scale 2026
irinanazarova
0
340
AWSに止められる覚悟してますか?
morizo_1984
2
510
20260914 AIエージェント時代のPlatform Engineering LLM基盤とプロダクトの責務境界線
kanfab1
7
2.4k
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
110
Featured
See All Featured
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
610
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
270
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Optimising Largest Contentful Paint
csswizardry
37
4k
Thoughts on Productivity
jonyablonski
76
5.4k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
590
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Git: the NoSQL Database
bkeepers
PRO
433
67k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
400
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Transcript
Supabase PHP ( 非 )PHP 2023 LT 2 0 23
. 9 . 15 @seike 4 60 1
自己 @seike 46 0 - - @seike 46 0 -
AWS Community Builder Serverless - Fusic - / 門 - / - - PHP - PHP - PHP - - PHP 2023 行 長 - Fukuoka.php Organizer 2
Agenda 1 .Supabase 2 .PHP 用方 3 .Supabase x Bref
3
01 Supabase
Supabase PostgreSQL Supabase PostgreSQL Google GitHub Facebook 自 API SQL
RESTful API 自 行 一 自 行 GitHub 用 5
02 PHP 用方
用 Client OSS Composer PostgREST PostgreSQL 用 RESTful API 自
生 7 $ composer require supabase/postgrest-php
用 ORM 8
03 Supabase x Bref
Bref PHP Custom Runtime - Serverless Framework 用 - AWS
Serverless Application Model(SAM) 用 - Docker Image DockerHub 用 DockerCompose 10
Developer Community AWS Lambda 用 PHP 用 PHP Deploy 方
PHPer 辛 Bref 力 11 service: app-supabase provider: name: aws region: ap-northeast- 1 plugins: - ./vendor/bref/bref functions: api: handler: index.php description: '' runtime: php- 8 2 -fpm timeout: 28 # in seconds (API Gateway has a timeout of 29 seconds) events: - httpApi: '*' # Exclude files from deployment package: patterns: - '!node_modules/**' - '!tests/**' $ composer require bref/bref $ vendor/bin/bref init
12
13 $ ab -n 1 0 0 0 -c 1
00 https://rznktx 2 jhi.execute-api.ap-northeast- 1 .amazonaws.com/ This is ApacheBench, Version 2 . 3 <$Revision: 1 90 3 6 18 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking rznktx 2 jhi.execute-api.ap-northeast- 1 .amazonaws.com (be patient) Completed 100 0 requests Finished 100 0 requests Server Software: Server Hostname: rznktx 2 jhi.execute-api.ap-northeast- 1 .amazonaws.com Server Port: 44 3 SSL/TLS Protocol: TLSv 1 . 2 ,ECDHE-RSA-AES 1 2 8 -GCM-SHA 2 56 , 20 4 8 , 12 8 Server Temp Key: ECDH P- 25 6 2 56 bits TLS Server Name: rznktx 2 jhi.execute-api.ap-northeast- 1 .amazonaws.com Document Path: / Document Length: 8 6 0 bytes Concurrency Level: 10 0 Time taken for tests: 4 . 7 9 0 seconds Complete requests: 1 0 0 0 Failed requests: 0 Total transferred: 10 57 0 00 bytes HTML transferred: 860 0 0 0 bytes Requests per second: 2 08 . 78 [#/sec] (mean) Time per request: 478 . 9 7 0 [ms] (mean) Time per request: 4 . 7 90 [ms] (mean, across all concurrent requests) Transfer rate: 21 5 . 51 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 10 1 141 4 0 . 0 120 3 67 Processing: 1 61 2 56 1 54 . 6 20 0 1 16 3 Waiting: 1 6 1 2 5 5 15 4 . 0 20 0 11 63 Total: 275 3 97 1 6 5 . 7 3 45 13 42 Percentage of the requests served within a certain time (ms) 5 0 % 3 4 5 6 6 % 3 8 4 7 5 % 3 9 6 8 0 % 4 0 8 9 0 % 5 3 1 9 5 % 7 9 9 9 8 % 1056 9 9 % 1060 1 00 % 1 3 42 (longest request)
方 14
Supabase 15
日 11:20 TRACK A 16
Thank You We are Hiring ! https://recruit.fusic.co.jp/