{"id":20804,"date":"2024-11-19T15:27:54","date_gmt":"2024-11-19T07:27:54","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20804\/"},"modified":"2024-11-19T15:27:54","modified_gmt":"2024-11-19T07:27:54","slug":"phpstorm%e6%80%8e%e4%b9%88%e9%85%8d%e7%bd%ae%e8%bf%90%e8%a1%8c%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20804\/","title":{"rendered":"phpstorm\u600e\u4e48\u914d\u7f6e\u8fd0\u884c\u73af\u5883"},"content":{"rendered":"<blockquote><p>\n  \u914d\u7f6e phpstorm \u8fd0\u884c\u73af\u5883\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u5b89\u88c5 php \u548c web \u670d\u52a1\u5668\u3002\u521b\u5efa\u9879\u76ee\uff0c\u9009\u62e9\u201cphp application\u201d\u7c7b\u578b\u3002\u914d\u7f6e php \u89e3\u91ca\u5668\uff0c\u6307\u5b9a\u5df2\u5b89\u88c5 php \u7248\u672c\u7684\u8def\u5f84\u3002\u914d\u7f6e web \u670d\u52a1\u5668\uff0c\u6307\u5b9a\u6839\u76ee\u5f55\u548c\u7aef\u53e3\u53f7\u3002\u914d\u7f6e\u6570\u636e\u5e93\u8fde\u63a5\uff0c\u6307\u5b9a\u6570\u636e\u5e93\u7c7b\u578b\u548c\u4fe1\u606f\u3002\u8fd0\u884c\u9879\u76ee\uff0c\u901a\u8fc7\u201crun\u201d\u6309\u94ae\u542f\u52a8\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/07\/2024040723182212194.jpg\" class=\"aligncenter\" title=\"phpstorm\u600e\u4e48\u914d\u7f6e\u8fd0\u884c\u73af\u5883\u63d2\u56fe\" alt=\"phpstorm\u600e\u4e48\u914d\u7f6e\u8fd0\u884c\u73af\u5883\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u914d\u7f6e PhpStorm \u7684\u8fd0\u884c\u73af\u5883<\/strong><\/p>\n<p>PhpStorm \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684 IDE\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u60a8\u7b80\u5316\u5f00\u53d1\u6d41\u7a0b\u3002\u4f46\u662f\uff0c\u5728\u5f00\u59cb\u4f7f\u7528 PhpStorm \u4e4b\u524d\uff0c\u60a8\u9700\u8981\u914d\u7f6e\u8fd0\u884c\u73af\u5883\u4ee5\u6ee1\u8db3\u60a8\u7684\u9879\u76ee\u9700\u6c42\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u5982\u4f55\u914d\u7f6e PhpStorm \u8fd0\u884c\u73af\u5883\u7684\u6b65\u9aa4\uff1a<\/p>\n<p><strong>1. \u5b89\u88c5 PHP \u548c Web \u670d\u52a1\u5668<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u9996\u5148\uff0c\u60a8\u9700\u8981\u5728\u60a8\u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5 PHP \u548c Web \u670d\u52a1\u5668\uff08\u4f8b\u5982 Apache \u6216 Nginx\uff09\u3002<\/li>\n<li>\u786e\u4fdd\u60a8\u5df2\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684 PHP\u3002<\/li>\n<\/ul>\n<p><strong>2. \u521b\u5efa\u9879\u76ee<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00 PhpStorm \u5e76\u521b\u5efa\u4e00\u4e2a\u65b0\u9879\u76ee\u3002<\/li>\n<li>\u9009\u62e9\u201cPHP Application\u201d\u4f5c\u4e3a\u9879\u76ee\u7c7b\u578b\u3002<\/li>\n<\/ul>\n<p><strong>3. \u914d\u7f6e\u89e3\u91ca\u5668<\/strong><\/p>\n<ul>\n<li>\u5728 PhpStorm \u4e2d\uff0c\u8f6c\u5230\u201cFile\u201d&gt;\u201cSettings\u201d\uff08\u6216\u201cPreferences\u201d\u5728 macOS \u4e0a\uff09\u3002<\/li>\n<li>\u5bfc\u822a\u5230\u201cPHP\u201d&gt;\u201cInterpreters\u201d\u3002<\/li>\n<li>\u5355\u51fb\u201c\u52a0\u53f7\u201d\u6309\u94ae\u6dfb\u52a0\u65b0\u7684 PHP \u89e3\u91ca\u5668\u3002<\/li>\n<li>\u9009\u62e9\u60a8\u5df2\u5b89\u88c5\u7684 PHP \u7248\u672c\uff0c\u5e76\u6307\u5b9a\u5176\u8def\u5f84\u3002<\/li>\n<\/ul>\n<p><strong>4. \u914d\u7f6e Web \u670d\u52a1\u5668<\/strong><\/p>\n<ul>\n<li>\u5728 PhpStorm \u4e2d\uff0c\u8f6c\u5230\u201cRun\u201d&gt;\u201cEdit Configurations\u201d\u3002<\/li>\n<li>\u9009\u62e9\u201cPHP Built-in Web Server\u201d\u914d\u7f6e\u3002<\/li>\n<li>\u6307\u5b9a Web \u670d\u52a1\u5668\u7684\u6839\u76ee\u5f55\u3002<\/li>\n<li>\u9009\u62e9\u60a8\u8981\u4f7f\u7528\u7684\u7aef\u53e3\u53f7\u3002<\/li>\n<\/ul>\n<p><strong>5. \u914d\u7f6e\u6570\u636e\u5e93<\/strong><\/p>\n<ul>\n<li>\u5982\u679c\u60a8\u7684\u9879\u76ee\u9700\u8981\u4f7f\u7528\u6570\u636e\u5e93\uff0c\u60a8\u9700\u8981\u5728 PhpStorm \u4e2d\u914d\u7f6e\u6570\u636e\u5e93\u8fde\u63a5\u3002<\/li>\n<li>\u8f6c\u5230\u201cDatabase\u201d&gt;\u201cData Sources\u201d\u3002<\/li>\n<li>\u5355\u51fb\u201c\u52a0\u53f7\u201d\u6309\u94ae\u6dfb\u52a0\u65b0\u7684\u6570\u636e\u6e90\u3002<\/li>\n<li>\u9009\u62e9\u60a8\u7684\u6570\u636e\u5e93\u7c7b\u578b\uff0c\u5e76\u6307\u5b9a\u8fde\u63a5\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<p><strong>6. \u8fd0\u884c\u9879\u76ee<\/strong><\/p>\n<ul>\n<li>\u5b8c\u6210\u6240\u6709\u914d\u7f6e\u540e\uff0c\u5373\u53ef\u8fd0\u884c\u60a8\u7684\u9879\u76ee\u3002<\/li>\n<li>\u5728 PhpStorm \u4e2d\uff0c\u5355\u51fb\u201cRun\u201d&gt;\u201cRun\u201d\u6309\u94ae\u3002<\/li>\n<li>\u60a8\u5e94\u8be5\u80fd\u591f\u5728\u6307\u5b9a\u7684\u7aef\u53e3\u53f7\u4e0a\u770b\u5230\u60a8\u7684\u9879\u76ee\u7684\u8f93\u51fa\u3002<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u6309\u7167\u8fd9\u4e9b\u6b65\u9aa4\u914d\u7f6e PhpStorm \u7684\u8fd0\u884c\u73af\u5883\uff0c\u60a8\u5c31\u53ef\u4ee5\u5f00\u59cb\u4f7f\u7528 PhpStorm \u5f00\u53d1 PHP \u9879\u76ee\u4e86\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u914d\u7f6e\u8fd0\u884c\u73af\u5883\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u914d\u7f6e phpstorm \u8fd0\u884c\u73af\u5883\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u5b89\u88c5 php \u548c web \u670d\u52a1\u5668\u3002\u521b\u5efa\u9879\u76ee\uff0c\u9009\u62e9\u201cphp application\u201d\u7c7b\u578b\u3002\u914d\u7f6e php \u89e3\u91ca\u5668\uff0c\u6307\u5b9a\u5df2\u5b89\u88c5 php \u7248\u672c\u7684\u8def\u5f84\u3002\u914d\u7f6e web \u670d\u52a1\u5668\uff0c\u6307\u5b9a\u6839\u76ee\u5f55\u548c\u7aef\u53e3\u53f7\u3002\u914d\u7f6e\u6570\u636e\u5e93\u8fde\u63a5\uff0c\u6307\u5b9a\u6570\u636e\u5e93\u7c7b\u578b\u548c\u4fe1\u606f\u3002\u8fd0\u884c\u9879\u76ee\uff0c\u901a\u8fc7\u201crun\u201d\u6309\u94ae\u542f\u52a8\u3002 \u5982\u4f55\u914d\u7f6e PhpStorm \u7684\u8fd0\u884c\u73af\u5883 PhpStorm \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684 IDE\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u60a8\u7b80\u5316\u5f00\u53d1\u6d41\u7a0b\u3002\u4f46\u662f\uff0c\u5728\u5f00\u59cb\u4f7f\u7528 PhpStorm \u4e4b\u524d\uff0c\u60a8\u9700\u8981\u914d\u7f6e\u8fd0\u884c\u73af\u5883\u4ee5\u6ee1\u8db3\u60a8\u7684\u9879\u76ee\u9700\u6c42\u3002 \u4ee5\u4e0b\u662f\u5982\u4f55\u914d\u7f6e PhpStorm \u8fd0\u884c\u73af\u5883\u7684\u6b65\u9aa4\uff1a 1. \u5b89\u88c5 PHP \u548c Web \u670d\u52a1\u5668 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u9996\u5148\uff0c\u60a8\u9700\u8981\u5728\u60a8\u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5 PHP \u548c Web \u670d\u52a1\u5668\uff08\u4f8b\u5982 Apache \u6216 Nginx\uff09\u3002 \u786e\u4fdd\u60a8\u5df2\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684 PHP\u3002 2. \u521b\u5efa\u9879\u76ee \u6253\u5f00 PhpStorm \u5e76\u521b\u5efa\u4e00\u4e2a\u65b0\u9879\u76ee\u3002 \u9009\u62e9\u201cPHP Application\u201d\u4f5c\u4e3a\u9879\u76ee\u7c7b\u578b\u3002 3. \u914d\u7f6e\u89e3\u91ca\u5668 \u5728 PhpStorm \u4e2d\uff0c\u8f6c\u5230\u201cFile\u201d&gt;\u201cSettings\u201d\uff08\u6216\u201cPreferences\u201d\u5728 macOS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-20804","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20804","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=20804"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20804\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}