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
ビルトインウェブサーバーでPHP開発
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
kouki.miura
October 18, 2025
Programming
0
64
ビルトインウェブサーバーでPHP開発
PHP ビルトインウェブサーバーの紹介、注意点等。
kouki.miura
October 18, 2025
Tweet
Share
More Decks by kouki.miura
See All by kouki.miura
Laravel入門:最小構成で理解するMVC
koukimiura
0
80
VueSapporo#1
koukimiura
0
31
Vue.jsを10分で再定義する
koukimiura
1
36
なぜVue開発は速いのか?-Vite入門
koukimiura
0
48
Vueでつくるシングルページアプリケーション(SPA)入門
koukimiura
0
31
スライドもVueで書く時代? Slidev入門
koukimiura
0
37
Vuetify 3 → 4 何が変わった?差分と移行ポイント10分まとめ
koukimiura
0
120
AI時代のソフトウェア開発でも「人が仕様を書く」から始めよう-医療IT現場での実践とこれから
koukimiura
0
140
生成AIを "同僚" として使う ~設計・実装・ログ解析の実践例~
koukimiura
0
62
Other Decks in Programming
See All in Programming
Docコメントで始める簡単ガードレール
keisukeikeda
1
110
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
450
Claude Code Skill入門
mayahoney
0
270
メタプログラミングで実現する「コードを仕様にする」仕組み/nikkei-tech-talk43
nikkei_engineer_recruiting
0
180
オブザーバビリティ駆動開発って実際どうなの?
yohfee
3
830
AI主導でFastAPIのWebサービスを作るときに 人間が構造化すべき境界線
okajun35
0
710
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
200
AIコーディングの理想と現実 2026 | AI Coding: Expectations vs. Reality 2026
tomohisa
0
1.2k
DSPy入門 Pythonで実現する自動プロンプト最適化 〜人手によるプロンプト調整からの卒業〜
seaturt1e
1
690
Angular-Apps smarter machen mit Gen AI: Lokal und offlinefähig - Hands-on Workshop!
christianliebel
PRO
0
100
Codexに役割を持たせる 他のAIエージェントと組み合わせる実務Tips
o8n
4
1.3k
Unity6.3 AudioUpdate
cova8bitdots
0
120
Featured
See All Featured
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.2k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
99
The Cult of Friendly URLs
andyhume
79
6.8k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.1k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
400
Paper Plane (Part 1)
katiecoart
PRO
0
5.5k
Designing for Timeless Needs
cassininazir
0
160
The Curious Case for Waylosing
cassininazir
0
270
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
470
Fireside Chat
paigeccino
42
3.8k
Being A Developer After 40
akosma
91
590k
Code Review Best Practice
trishagee
74
20k
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