$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ビルトインウェブサーバーでPHP開発
Search
kouki.miura
October 18, 2025
Programming
0
36
ビルトインウェブサーバーでPHP開発
PHP ビルトインウェブサーバーの紹介、注意点等。
kouki.miura
October 18, 2025
Tweet
Share
More Decks by kouki.miura
See All by kouki.miura
生成AI × 仕様駆動開発 ~Kiroで見えた業務アプリ開発の未来~
koukimiura
0
110
Flutterで分数(Fraction)を表示する方法
koukimiura
0
160
HTMLで分数をどう表示する?MathMLの紹介と使い方
koukimiura
0
72
ゲームとかの最初に使い方を教えてくれるアレ
koukimiura
0
60
Claude Codeでゲーム開発デビュー
koukimiura
0
200
Vite+TypeScript+Vue.jsではじめるフロントエンドプロジェクト
koukimiura
1
110
リソース制限環境下でのローカルLLM構築術
koukimiura
0
130
フロントエンドのパフォーマンスチューニング
koukimiura
7
2.7k
医療系ソフトウェアのAI駆動開発
koukimiura
1
270
Other Decks in Programming
See All in Programming
perlをWebAssembly上で動かすと何が嬉しいの??? / Where does Perl-on-Wasm actually make sense?
mackee
0
100
Graviton と Nitro と私
maroon1st
0
120
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
1.6k
FluorTracer / RayTracingCamp11
kugimasa
0
240
dotfiles 式年遷宮 令和最新版
masawada
1
800
Cell-Based Architecture
larchanjo
0
140
著者と進める!『AIと個人開発したくなったらまずCursorで要件定義だ!』
yasunacoffee
0
150
脳の「省エネモード」をデバッグする ~System 1(直感)と System 2(論理)の切り替え~
panda728
PRO
0
110
Rediscover the Console - SymfonyCon Amsterdam 2025
chalasr
2
180
AIエージェントを活かすPM術 AI駆動開発の現場から
gyuta
0
450
Deno Tunnel を使ってみた話
kamekyame
0
200
堅牢なフロントエンドテスト基盤を構築するために行った取り組み
shogo4131
8
2.5k
Featured
See All Featured
Automating Front-end Workflow
addyosmani
1371
200k
GitHub's CSS Performance
jonrohan
1032
470k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.8k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
34
Context Engineering - Making Every Token Count
addyosmani
9
540
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
64
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
290
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.3k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
250
Transcript
ビルトインウェブサーバーでPHP開発 2025.10.18 第6回 札幌PHP勉強会 三浦 恒樹 (MIURA KOUKI) 診療情報管理士 上級医療情報技師
医用画像情報専門技師 ドゥウェル株式会社
長男が飼っている ハリネズミがアイコン INTRODUCE ・ドゥウェル株式会社 (医療系IT開発・導入会社)に所属 ・マネージャー(プレイング・マネージャー) ・TypeScript, Vue.js, Node.js, Java,C#,
PHP ・3児の父 ・休日は子どものサッカー観戦 ・参加している勉強会 札幌PHP勉強会、JBUG札幌、JavaDO、ゆるWeb勉強会、えびてく、 クラメソ札幌IT勉強会(仮)、AWS初心者LT会in札幌、 札幌すごいAI会、札幌IT石狩鍋、函館本線沿線勉強会 等
・ビルトインウェブサーバーとは? ・起動してみる ・ドキュメントルートを指定して起動してみる ・ルータースクリプトを指定して起動してみる ・デバッグしてみる ・ビルトインウェブサーバーの注意点 ・まとめ INDEX
ビルトインウェブサーバーとは? PHPにはWeb サーバー機能が内 蔵されている。
起動してみる .html, .css, .js, .png等に対応
起動してみる index.htmlを表 示できた
ドキュメントルートを指定して起動してみる アプリ構成に合わ せてpublicフォ ルダ等をルートに できる
ドキュメントルートを指定して起動してみる public/index. htmlを表示でき た
ルータースクリプトを指定して起動してみる index.php、router.phpを配置して、 router.phpを指定して起動する。
ルータースクリプトを指定して起動してみる どんなURLでも 指定したルーター スクリプトが表示 される
デバッグしてみる デバッガーを起動す るjson。F5で起動。 ブレークポイ ントを設置 ビルトインウェブ サーバーを起動
ビルトインウェブサーバーの注意点 ・本番環境では使用できない(シングルスレッドのため) ・index.php または index.html があると、404が発生しない
・PHP5.4以降、開発に使用できるウェブサーバーが組み込まれている ・ドキュメントルートを指定できる ・ルータースクリプトを指定できる ・URLのファイルがない場合、ドキュメントルートまで index.php または index.html を探す ・index.php または
index.html が見つかる場合、404エラーは発生しない ・ビルトインウェブサーバー経由のデバッグも可能 ご清聴ありがとうございました。 まとめ
Xdebug インストール 1. phpinfo()出力結果をコピー 2. Xdebug Installation Wizardに1をペースト https://xdebug.org/wizard 3.
DLLをダウンロード→”php_xdebug.dll”にリネーム 4. phpルート/extに3を移動 5. php.iniに以下を追記 extension_dir = "ext" zend_extension="xdebug" xdebug.mode=debug xdebug.start_with_request=yes