{"id":21591,"date":"2024-11-19T16:26:54","date_gmt":"2024-11-19T08:26:54","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21591\/"},"modified":"2024-11-19T16:26:54","modified_gmt":"2024-11-19T08:26:54","slug":"phpstorm%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8c%e9%a1%b5%e9%9d%a2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21591\/","title":{"rendered":"phpstorm\u600e\u4e48\u8fd0\u884c\u9875\u9762"},"content":{"rendered":"<blockquote><p>\n  \u8981\u4f7f\u7528 phpstorm \u8fd0\u884c php \u9875\u9762\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u6253\u5f00 phpstorm \u5e76\u6253\u5f00\u8981\u8fd0\u884c\u7684 php \u6587\u4ef6\u3002\u68c0\u67e5\u548c\u914d\u7f6e\u672c\u5730\u670d\u52a1\u5668\u3002\u8bbe\u7f6e\u8fd0\u884c\/\u8c03\u8bd5\u914d\u7f6e\uff0c\u5305\u62ec php \u6587\u4ef6\u8def\u5f84\u3002\u4f7f\u7528\u201crun\u201d\u6309\u94ae\u6216\u952e\u76d8\u5feb\u6377\u952e\u8fd0\u884c\u9875\u9762\u3002\u67e5\u770b\u8f93\u51fa\u7a97\u53e3\u4e2d\u7684 php \u9875\u9762\u8f93\u51fa\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202406\/05\/2024060500482015695.jpg\" class=\"aligncenter\" title=\"phpstorm\u600e\u4e48\u8fd0\u884c\u9875\u9762\u63d2\u56fe\" alt=\"phpstorm\u600e\u4e48\u8fd0\u884c\u9875\u9762\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528 PhpStorm \u8fd0\u884c PHP \u9875\u9762<\/strong><\/p>\n<p>PHPStorm \u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684 PHP \u5f00\u53d1\u73af\u5883\uff0c\u5b83\u5185\u7f6e\u4e86\u8fd0\u884c PHP \u9875\u9762\u6240\u9700\u7684\u5de5\u5177\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528 PhpStorm \u8fd0\u884c PHP \u9875\u9762\uff1a<\/p>\n<p><strong>1. \u6253\u5f00 PHPStorm<\/strong><\/p>\n<p>\u542f\u52a8 PhpStorm \u5e76\u6253\u5f00\u60a8\u8981\u8fd0\u884c\u7684 PHP \u6587\u4ef6\u3002<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p><strong>2. \u68c0\u67e5\u670d\u52a1\u5668\u914d\u7f6e<\/strong><\/p>\n<p>\u8f6c\u5230\u201cRun\u201d\u83dc\u5355\u5e76\u9009\u62e9\u201cEdit Configurations\u201d\u3002\u5728\u201cWeb Server\u201d\u9009\u9879\u5361\u4e2d\uff0c\u786e\u4fdd\u5df2\u6b63\u786e\u914d\u7f6e\u672c\u5730\u670d\u52a1\u5668\u3002\u5982\u679c\u60a8\u5c1a\u672a\u8bbe\u7f6e\u670d\u52a1\u5668\uff0c\u8bf7\u5355\u51fb\u201c+\u201d\u6309\u94ae\u5e76\u9009\u62e9\u201cPHP Built-in Web Server\u201d\u3002<\/p>\n<p><strong>3. \u8bbe\u7f6e\u8fd0\u884c\/\u8c03\u8bd5\u914d\u7f6e<\/strong><\/p>\n<p>\u5728\u201cEdit Configurations\u201d\u5bf9\u8bdd\u6846\u4e2d\uff0c\u9009\u62e9\u201cPHP\u201d\u9009\u9879\u5361\u3002\u786e\u4fdd\u201cScript Path\u201d\u8bbe\u7f6e\u4e3a\u60a8\u8981\u8fd0\u884c\u7684 PHP \u6587\u4ef6\u3002\u8fd8\u53ef\u4ee5\u8bbe\u7f6e\u5176\u4ed6\u9009\u9879\uff0c\u4f8b\u5982\u73af\u5883\u53d8\u91cf\u548c\u547d\u4ee4\u884c\u53c2\u6570\u3002<\/p>\n<p><strong>4. \u8fd0\u884c\u9875\u9762<\/strong><\/p>\n<p>\u73b0\u5728\u60a8\u53ef\u4ee5\u8fd0\u884c\u9875\u9762\u4e86\u3002\u6709\u4e24\u79cd\u65b9\u6cd5\u53ef\u4ee5\u505a\u5230\u8fd9\u4e00\u70b9\uff1a<\/p>\n<ul>\n<li> <strong>\u4f7f\u7528\u201c\u8fd0\u884c\u201d\u6309\u94ae\uff1a<\/strong>\u5728 PhpStorm \u7f16\u8f91\u7a97\u53e3\u7684\u9876\u90e8\u5de5\u5177\u680f\u4e2d\uff0c\u5355\u51fb\u201cRun\u201d\u6309\u94ae\u3002<\/li>\n<li> <strong>\u4f7f\u7528\u952e\u76d8\u5feb\u6377\u952e\uff1a<\/strong>\u6309\u9ed8\u8ba4\u952e\u76d8\u5feb\u6377\u952e <strong>Ctrl<\/strong> + <strong>F5<\/strong>\uff08Windows\uff09\u6216 <strong>Cmd<\/strong> + <strong>F5<\/strong>\uff08macOS\uff09\u3002<\/li>\n<\/ul>\n<p><strong>5. \u67e5\u770b\u8f93\u51fa<\/strong><\/p>\n<p>PHP \u9875\u9762\u5c06\u5728\u5185\u7f6e Web \u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u3002\u8f93\u51fa\u5c06\u663e\u793a\u5728 PhpStorm \u8f93\u51fa\u7a97\u53e3\u4e2d\u3002\u5b83\u5c06\u5305\u62ec\u4efb\u4f55\u9519\u8bef\u6216\u8b66\u544a\u6d88\u606f\u3002<\/p>\n<p><strong>\u63d0\u793a\uff1a<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u60a8\u5177\u6709\u6b63\u786e\u7684 PHP \u7248\u672c\u3002<\/li>\n<li>\u5982\u679c\u9047\u5230\u4efb\u4f55\u95ee\u9898\uff0c\u8bf7\u68c0\u67e5\u670d\u52a1\u5668\u65e5\u5fd7\u4ee5\u83b7\u53d6\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\u3002<\/li>\n<li>\u60a8\u53ef\u4ee5\u4f7f\u7528 PhpStorm \u8c03\u8bd5\u5668\u6765\u8c03\u8bd5\u60a8\u7684\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8fd0\u884c\u9875\u9762\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>\u8981\u4f7f\u7528 phpstorm \u8fd0\u884c php \u9875\u9762\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u6253\u5f00 phpstorm \u5e76\u6253\u5f00\u8981\u8fd0\u884c\u7684 php \u6587\u4ef6\u3002\u68c0\u67e5\u548c\u914d\u7f6e\u672c\u5730\u670d\u52a1\u5668\u3002\u8bbe\u7f6e\u8fd0\u884c\/\u8c03\u8bd5\u914d\u7f6e\uff0c\u5305\u62ec php \u6587\u4ef6\u8def\u5f84\u3002\u4f7f\u7528\u201crun\u201d\u6309\u94ae\u6216\u952e\u76d8\u5feb\u6377\u952e\u8fd0\u884c\u9875\u9762\u3002\u67e5\u770b\u8f93\u51fa\u7a97\u53e3\u4e2d\u7684 php \u9875\u9762\u8f93\u51fa\u3002 \u5982\u4f55\u4f7f\u7528 PhpStorm \u8fd0\u884c PHP \u9875\u9762 PHPStorm \u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684 PHP \u5f00\u53d1\u73af\u5883\uff0c\u5b83\u5185\u7f6e\u4e86\u8fd0\u884c PHP \u9875\u9762\u6240\u9700\u7684\u5de5\u5177\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528 PhpStorm \u8fd0\u884c PHP \u9875\u9762\uff1a 1. \u6253\u5f00 PHPStorm \u542f\u52a8 PhpStorm \u5e76\u6253\u5f00\u60a8\u8981\u8fd0\u884c\u7684 PHP \u6587\u4ef6\u3002 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b 2. \u68c0\u67e5\u670d\u52a1\u5668\u914d\u7f6e \u8f6c\u5230\u201cRun\u201d\u83dc\u5355\u5e76\u9009\u62e9\u201cEdit Configurations\u201d\u3002\u5728\u201cWeb Server\u201d\u9009\u9879\u5361\u4e2d\uff0c\u786e\u4fdd\u5df2\u6b63\u786e\u914d\u7f6e\u672c\u5730\u670d\u52a1\u5668\u3002\u5982\u679c\u60a8\u5c1a\u672a\u8bbe\u7f6e\u670d\u52a1\u5668\uff0c\u8bf7\u5355\u51fb\u201c+\u201d\u6309\u94ae\u5e76\u9009\u62e9\u201cPHP Built-in Web Server\u201d\u3002 3. \u8bbe\u7f6e\u8fd0\u884c\/\u8c03\u8bd5\u914d\u7f6e \u5728\u201cEdit Configurations\u201d\u5bf9\u8bdd\u6846\u4e2d\uff0c\u9009\u62e9\u201cPHP\u201d\u9009\u9879\u5361\u3002\u786e\u4fdd\u201cScript Path\u201d\u8bbe\u7f6e\u4e3a\u60a8\u8981\u8fd0\u884c\u7684 PHP \u6587\u4ef6\u3002\u8fd8\u53ef\u4ee5\u8bbe\u7f6e\u5176\u4ed6\u9009\u9879\uff0c\u4f8b\u5982\u73af\u5883\u53d8\u91cf\u548c\u547d\u4ee4\u884c\u53c2\u6570\u3002 4. \u8fd0\u884c\u9875\u9762 \u73b0\u5728\u60a8\u53ef\u4ee5\u8fd0\u884c\u9875\u9762\u4e86\u3002\u6709\u4e24\u79cd\u65b9\u6cd5\u53ef\u4ee5\u505a\u5230\u8fd9\u4e00\u70b9\uff1a [&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-21591","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21591","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=21591"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21591\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}