{"id":20785,"date":"2024-11-19T13:57:12","date_gmt":"2024-11-19T05:57:12","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20785\/"},"modified":"2024-11-19T13:57:12","modified_gmt":"2024-11-19T05:57:12","slug":"phpstorm%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20785\/","title":{"rendered":"phpstorm\u600e\u4e48\u8fd0\u884c"},"content":{"rendered":"<blockquote><p>\n  \u4f7f\u7528 phpstorm \u8fd0\u884c php \u4ee3\u7801\u5206\u56db\u6b65\uff1a\u521b\u5efa php \u6587\u4ef6\uff0c\u914d\u7f6e\u8fd0\u884c\u914d\u7f6e\uff08\u6307\u5b9a\u811a\u672c\u3001\u89e3\u91ca\u5668\u3001\u53c2\u6570\uff09\uff0c\u8fd0\u884c\u4ee3\u7801\uff08\u901a\u8fc7\u6309\u94ae\u3001\u5feb\u6377\u952e\u6216\u83dc\u5355\uff09\uff0c\u67e5\u770b\u8f93\u51fa\uff08\u663e\u793a\u5728\u201crun\u201d\u5de5\u5177\u7a97\u53e3\uff09\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/07\/2024040722062288485.jpg\" class=\"aligncenter\" title=\"phpstorm\u600e\u4e48\u8fd0\u884c\u63d2\u56fe\" alt=\"phpstorm\u600e\u4e48\u8fd0\u884c\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528 PHPStorm \u8fd0\u884c PHP \u4ee3\u7801<\/strong><\/p>\n<p>PHPStorm \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684 IDE\uff0c\u4e3a PHP \u5f00\u53d1\u4eba\u5458\u63d0\u4f9b\u4e86\u5168\u9762\u7684\u5de5\u5177\u548c\u7279\u6027\u3002\u5176\u4e2d\u4e00\u9879\u91cd\u8981\u529f\u80fd\u5c31\u662f\u8fd0\u884c PHP \u4ee3\u7801\u7684\u80fd\u529b\u3002\u4e0b\u9762\u662f\u4f7f\u7528 PHPStorm \u8fd0\u884c PHP \u4ee3\u7801\u7684\u6b65\u9aa4\uff1a<\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a\u521b\u5efa\u6216\u6253\u5f00 PHP \u6587\u4ef6<\/strong><\/p>\n<p>\u9996\u5148\uff0c\u5728 PHPStorm \u4e2d\u521b\u5efa\u6216\u6253\u5f00\u4e00\u4e2a PHP \u6587\u4ef6\u3002\u786e\u4fdd\u8be5\u6587\u4ef6\u5305\u542b\u60a8\u8981\u8fd0\u884c\u7684\u4ee3\u7801\u3002<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p><strong>\u6b65\u9aa4 2\uff1a\u914d\u7f6e\u8fd0\u884c\u914d\u7f6e<\/strong><\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u9700\u8981\u914d\u7f6e\u7528\u4e8e\u8fd0\u884c\u4ee3\u7801\u7684\u8fd0\u884c\u914d\u7f6e\u3002<\/p>\n<ul>\n<li>\u5728 PHPStorm \u4e3b\u83dc\u5355\u4e2d\u9009\u62e9 &#8220;Run&#8221; &gt; &#8220;Edit Configurations&#8230;&#8221;<\/li>\n<li>\u5728 &#8220;Run\/Debug Configurations&#8221; \u5bf9\u8bdd\u6846\u4e2d\uff0c\u9009\u62e9 &#8220;PHP Script&#8221; \u6a21\u677f\u3002<\/li>\n<li>\u5728 &#8220;Script&#8221; \u5b57\u6bb5\u4e2d\uff0c\u6307\u5b9a\u60a8\u8981\u8fd0\u884c\u7684 PHP \u6587\u4ef6\u3002<\/li>\n<li>\u5728 &#8220;Interpreter&#8221; \u5b57\u6bb5\u4e2d\uff0c\u9009\u62e9\u7528\u4e8e\u8fd0\u884c\u4ee3\u7801\u7684 PHP \u89e3\u91ca\u5668\u3002<\/li>\n<li>\u5728 &#8220;Arguments&#8221; \u5b57\u6bb5\u4e2d\uff0c\u6307\u5b9a\u8981\u4f20\u9012\u7ed9\u811a\u672c\u7684\u4efb\u4f55\u547d\u4ee4\u884c\u53c2\u6570\uff08\u53ef\u9009\uff09\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 3\uff1a\u8fd0\u884c\u4ee3\u7801<\/strong><\/p>\n<p>\u914d\u7f6e\u597d\u8fd0\u884c\u914d\u7f6e\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u591a\u79cd\u65b9\u5f0f\u8fd0\u884c\u4ee3\u7801\uff1a<\/p>\n<ul>\n<li>\u70b9\u51fb PHPStorm \u5de5\u5177\u680f\u4e0a\u7684 &#8220;Run&#8221; \u6309\u94ae\u3002<\/li>\n<li>\u4f7f\u7528\u952e\u76d8\u5feb\u6377\u952e &#8220;Ctrl&#8221; + &#8220;F9&#8243;\uff08Windows\uff09\u6216 &#8220;Cmd&#8221; + &#8220;F9&#8243;\uff08Mac\uff09\u3002<\/li>\n<li>\u5728 &#8220;Run&#8221; \u83dc\u5355\u4e2d\u9009\u62e9 &#8220;Run&#8221; \u9009\u9879\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 4\uff1a\u67e5\u770b\u8f93\u51fa<\/strong><\/p>\n<p>\u8fd0\u884c\u5b8c\u6210\u540e\uff0c\u4ee3\u7801\u7684\u8f93\u51fa\u5c06\u663e\u793a\u5728 PHPStorm \u7684 &#8220;Run&#8221; \u5de5\u5177\u7a97\u53e3\u4e2d\u3002\u60a8\u53ef\u4ee5\u5728\u8f93\u51fa\u4e2d\u67e5\u770b\u6267\u884c\u4ee3\u7801\u4ea7\u751f\u7684\u4efb\u4f55\u9519\u8bef\u6216\u7ed3\u679c\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8fd0\u884c\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>\u4f7f\u7528 phpstorm \u8fd0\u884c php \u4ee3\u7801\u5206\u56db\u6b65\uff1a\u521b\u5efa php \u6587\u4ef6\uff0c\u914d\u7f6e\u8fd0\u884c\u914d\u7f6e\uff08\u6307\u5b9a\u811a\u672c\u3001\u89e3\u91ca\u5668\u3001\u53c2\u6570\uff09\uff0c\u8fd0\u884c\u4ee3\u7801\uff08\u901a\u8fc7\u6309\u94ae\u3001\u5feb\u6377\u952e\u6216\u83dc\u5355\uff09\uff0c\u67e5\u770b\u8f93\u51fa\uff08\u663e\u793a\u5728\u201crun\u201d\u5de5\u5177\u7a97\u53e3\uff09\u3002 \u5982\u4f55\u4f7f\u7528 PHPStorm \u8fd0\u884c PHP \u4ee3\u7801 PHPStorm \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684 IDE\uff0c\u4e3a PHP \u5f00\u53d1\u4eba\u5458\u63d0\u4f9b\u4e86\u5168\u9762\u7684\u5de5\u5177\u548c\u7279\u6027\u3002\u5176\u4e2d\u4e00\u9879\u91cd\u8981\u529f\u80fd\u5c31\u662f\u8fd0\u884c PHP \u4ee3\u7801\u7684\u80fd\u529b\u3002\u4e0b\u9762\u662f\u4f7f\u7528 PHPStorm \u8fd0\u884c PHP \u4ee3\u7801\u7684\u6b65\u9aa4\uff1a \u6b65\u9aa4 1\uff1a\u521b\u5efa\u6216\u6253\u5f00 PHP \u6587\u4ef6 \u9996\u5148\uff0c\u5728 PHPStorm \u4e2d\u521b\u5efa\u6216\u6253\u5f00\u4e00\u4e2a PHP \u6587\u4ef6\u3002\u786e\u4fdd\u8be5\u6587\u4ef6\u5305\u542b\u60a8\u8981\u8fd0\u884c\u7684\u4ee3\u7801\u3002 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u6b65\u9aa4 2\uff1a\u914d\u7f6e\u8fd0\u884c\u914d\u7f6e \u63a5\u4e0b\u6765\uff0c\u9700\u8981\u914d\u7f6e\u7528\u4e8e\u8fd0\u884c\u4ee3\u7801\u7684\u8fd0\u884c\u914d\u7f6e\u3002 \u5728 PHPStorm \u4e3b\u83dc\u5355\u4e2d\u9009\u62e9 &#8220;Run&#8221; &gt; &#8220;Edit Configurations&#8230;&#8221; \u5728 &#8220;Run\/Debug Configurations&#8221; \u5bf9\u8bdd\u6846\u4e2d\uff0c\u9009\u62e9 &#8220;PHP Script&#8221; \u6a21\u677f\u3002 \u5728 &#8220;Script&#8221; \u5b57\u6bb5\u4e2d\uff0c\u6307\u5b9a\u60a8\u8981\u8fd0\u884c\u7684 PHP \u6587\u4ef6\u3002 [&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-20785","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20785","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=20785"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20785\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}