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
kouki.miura
October 18, 2025
Programming
74
0
Share
ビルトインウェブサーバーでPHP開発
PHP ビルトインウェブサーバーの紹介、注意点等。
kouki.miura
October 18, 2025
More Decks by kouki.miura
See All by kouki.miura
ポジティブアウトカムを用いた医療費削減の可能性について
koukimiura
0
42
VueSapporo#2
koukimiura
0
38
Vuetify4 v-calendarをちゃんと理解する
koukimiura
0
47
認証統合から始めるフロントエンドの機能単位開発 — マイクロサービス思想の適用
koukimiura
0
110
Fiberとは何か?PHPが“非同期言語”になった瞬間
koukimiura
0
78
VueエンジニアがReactを触って感じた_設計の違い
koukimiura
0
200
Laravel入門:最小構成で理解するMVC
koukimiura
0
140
VueSapporo#1
koukimiura
0
62
Vue.jsを10分で再定義する
koukimiura
1
66
Other Decks in Programming
See All in Programming
バックエンドにElysiaJSを採用して気付いた、良い点・悪い点
wanko_it
1
190
RTSPクライアントを自作してみた話
simotin13
0
300
Spec-Driven Development with AI-Agents: From High-Level Requirements to Working Software
antonarhipov
2
380
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.8k
Lemonade + Foundry Toolkit でお手軽アプリ開発
seosoft
1
210
Transactional Change Stream Processing With Debezium and Apache Flink
gunnarmorling
1
140
AIとRubyの静的型付け
ukin0k0
0
300
Migrations : C'est une question d'hygiène !
vinceamstoutz
0
2.4k
ReactとSvelteのその先、Ripple-TS / Beyond React and Svelte: Ripple-TS
ssssota
3
1.5k
Why Laravel apps break—Mastering the fundamentals to keep them maintainable
kentaroutakeda
1
300
サーバーレスで作る、動画データ管理基盤
oyasumipants
0
300
自動レビューエンジンの実装と運用 ~レビューのない世界へ~
kurukuru1999
2
280
Featured
See All Featured
Building AI with AI
inesmontani
PRO
1
1k
Abbi's Birthday
coloredviolet
2
7.8k
The Cost Of JavaScript in 2023
addyosmani
55
9.9k
Practical Orchestrator
shlominoach
191
11k
First, design no harm
axbom
PRO
2
1.2k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
130
The browser strikes back
jonoalderson
0
1.1k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
540
How to make the Groovebox
asonas
2
2.2k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
180
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