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
Supabaseって何?PHPから触ってみる / What is Supabase, and ...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
shiro seike
PRO
September 15, 2023
Programming
760
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
型も通る、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
510
コミュニティの有益性 ~JAWS Days 2026 での体験を通して~ / The Benefits of a Community ~Through My Experience at JAWS Days 2026~
seike460
PRO
0
360
Architecture as SteeringOn-Ramp to AI-DLC
seike460
PRO
0
40
Why Continue AWS Community Builders
seike460
PRO
0
79
AWSコミュニティ活動は顧客のクラウド推進に効くのか / Do AWS community activities help customers adopt the cloud?
seike460
PRO
0
190
テレメトリーシグナルが導くパフォーマンス最適化 / Performance Optimization Driven by Telemetry Signals
seike460
PRO
2
300
AI-DLC 入門 〜AIコーディングの本質は「コード」ではなく「構造」〜 / Introduction to AI-DLC: The Essence of AI Coding Is Not “Code” but “Structure”
seike460
PRO
0
1.9k
今さら聞けないサーバーレスのいいところ 〜運用から解放される世界を目指して〜 / The Benefits of Serverless You Might Be Too Embarrassed to Ask About Now — Aiming for a World Free from Operational Burdens
seike460
PRO
0
110
AWS Lambda Durable Functions のユースケースを探る / Exploring Use Cases for AWS Lambda Durable Functions
seike460
PRO
0
100
Other Decks in Programming
See All in Programming
改善しないと、タスクが回らない。 “てんこ盛りポジション” を引き継いだ情シスの、入社3ヶ月の業務改善録
krm963
0
240
コーディングルールの鮮度を保ちたい for SRE NEXT 2026 / keep-fresh-go-internal-conventions-sre-next-2026
handlename
0
160
なぜ関数型プログラミングで「型」と「証明」が語られるのか #fp_matsuri
kajitack
3
1.1k
言語を使う側から、作る側へ。 自作 Lisp で得た新たな気づき。
andpad
0
140
JAWS-UG横浜 #102 AWSサ終供養LT会 成仏できない AWS サービスたち 〜本日、三体供養します〜
maroon1st
0
300
Built Our Own Background Agent at LayerX #aidevex_findy
layerx
PRO
9
4.5k
React本体のコードリーディング
high_g_engineer
1
130
SREの積み重ねがAI駆動開発のガードレールになった ― 7つの実践/SRE Guardrails The 7
tomoyakitaura
9
5.9k
FDEが実現するAI駆動経営の現在地
gonta
2
250
AWS DevOps AgentのAzure接続機能を検証して見えた活用法/Use Cases Verified for the AWS DevOps Agent's Azure Connectivity Feature
masakiokuda
1
200
作るコストが小さくなった時代 幸せに働くために改めて考えたいこと 〜エンジニアとして価値を出し続けるために注視している二分野〜
yuppeeng
0
180
ここ半年くらいでAIに作らせたR用ツール
eitsupi
0
360
Featured
See All Featured
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
650
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Rails Girls Zürich Keynote
gr2m
96
14k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.5k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
200
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
270
Abbi's Birthday
coloredviolet
3
8.9k
New Earth Scene 8
popppiees
3
2.4k
Visualization
eitanlees
152
17k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
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/