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
0
10
ビルトインウェブサーバーでPHP開発
PHP ビルトインウェブサーバーの紹介、注意点等。
kouki.miura
October 18, 2025
Tweet
Share
More Decks by kouki.miura
See All by kouki.miura
生成AI × 仕様駆動開発 ~Kiroで見えた業務アプリ開発の未来~
koukimiura
0
48
Flutterで分数(Fraction)を表示する方法
koukimiura
0
130
HTMLで分数をどう表示する?MathMLの紹介と使い方
koukimiura
0
32
ゲームとかの最初に使い方を教えてくれるアレ
koukimiura
0
47
Claude Codeでゲーム開発デビュー
koukimiura
0
130
Vite+TypeScript+Vue.jsではじめるフロントエンドプロジェクト
koukimiura
1
67
リソース制限環境下でのローカルLLM構築術
koukimiura
0
110
フロントエンドのパフォーマンスチューニング
koukimiura
7
2.6k
医療系ソフトウェアのAI駆動開発
koukimiura
1
250
Other Decks in Programming
See All in Programming
チームの境界をブチ抜いていけ
tokai235
0
180
After go func(): Goroutines Through a Beginner’s Eye
97vaibhav
0
400
株式会社 Sun terras カンパニーデック
sunterras
0
320
overlayPreferenceValue で実現する ピュア SwiftUI な AdMob ネイティブ広告
uhucream
0
180
Devvox Belgium - Agentic AI Patterns
kdubois
1
120
Railsだからできる 例外業務に禍根を残さない 設定設計パターン
ei_ei_eiichi
0
910
What's new in Spring Modulith?
olivergierke
1
150
Android16 Migration Stories ~Building a Pattern for Android OS upgrades~
reoandroider
0
110
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
370
Serena MCPのすすめ
wadakatu
4
1k
『毎日の移動』を支えるGoバックエンド内製開発
yutautsugi
2
250
kiroとCodexで最高のSpec駆動開発を!!数時間で web3ネイティブなミニゲームを作ってみたよ!
mashharuki
0
560
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
185
22k
The Cost Of JavaScript in 2023
addyosmani
55
9k
Balancing Empowerment & Direction
lara
4
690
Mobile First: as difficult as doing things right
swwweet
224
10k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
Optimizing for Happiness
mojombo
379
70k
Statistics for Hackers
jakevdp
799
220k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Build The Right Thing And Hit Your Dates
maggiecrowley
37
2.9k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.2k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
870
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