{"id":20821,"date":"2024-11-19T17:04:18","date_gmt":"2024-11-19T09:04:18","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20821\/"},"modified":"2024-11-19T17:04:18","modified_gmt":"2024-11-19T09:04:18","slug":"phpstorm%e4%b8%ba%e4%bb%80%e4%b9%88%e4%b8%8d%e8%83%bd%e8%bf%90%e8%a1%8c%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20821\/","title":{"rendered":"phpstorm\u4e3a\u4ec0\u4e48\u4e0d\u80fd\u8fd0\u884c\u4ee3\u7801"},"content":{"rendered":"<blockquote><p>\n  phpstorm \u65e0\u6cd5\u8fd0\u884c\u4ee3\u7801\u7684\u539f\u56e0\u4e3b\u8981\u6709\uff1aphp \u89e3\u91ca\u5668\u672a\u914d\u7f6e\u6216\u914d\u7f6e\u9519\u8bef\u3002\u9879\u76ee\u672a\u6b63\u786e\u914d\u7f6e\u4e3a\u4f7f\u7528 php \u89e3\u91ca\u5668\u3002\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u9519\u8bef\u3002\u4ee3\u7801\u5b58\u5728\u9519\u8bef\u3002\u5b89\u5168\u8bbe\u7f6e\u9650\u5236\u3002\u6740\u6bd2\u8f6f\u4ef6\u5e72\u6270\u3002php \u89e3\u91ca\u5668\u4e0e phpstorm \u7248\u672c\u4e0d\u517c\u5bb9\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/08\/2024040800212749947.jpg\" class=\"aligncenter\" title=\"phpstorm\u4e3a\u4ec0\u4e48\u4e0d\u80fd\u8fd0\u884c\u4ee3\u7801\u63d2\u56fe\" alt=\"phpstorm\u4e3a\u4ec0\u4e48\u4e0d\u80fd\u8fd0\u884c\u4ee3\u7801\u63d2\u56fe\" \/><\/p>\n<p><strong>PHPStorm \u65e0\u6cd5\u8fd0\u884c\u4ee3\u7801\uff1f<\/strong><\/p>\n<p><strong>\u5e38\u89c1\u539f\u56e0\uff1a<\/strong><\/p>\n<p><strong>1. PHP \u89e3\u91ca\u5668\u672a\u914d\u7f6e<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u60a8\u5df2\u5b89\u88c5\u5e76\u914d\u7f6e PHP \u89e3\u91ca\u5668\u3002<\/li>\n<li>\u5728 PHPStorm \u4e2d\uff0c\u8f6c\u5230\u201c\u8bbe\u7f6e\u201d&gt;\u201c\u63d2\u4ef6\u201d&gt;\u201cPHP\u201d&gt;\u201cPHP \u89e3\u91ca\u5668\u201d\uff0c\u7136\u540e\u914d\u7f6e\u60a8\u7684\u89e3\u91ca\u5668\u3002<\/li>\n<\/ul>\n<p><strong>2. \u9519\u8bef\u7684\u9879\u76ee\u914d\u7f6e<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u68c0\u67e5\u60a8\u7684\u9879\u76ee\u662f\u5426\u6b63\u786e\u914d\u7f6e\u4e3a\u4f7f\u7528\u60a8\u7684 PHP \u89e3\u91ca\u5668\u3002<\/li>\n<li>\u53f3\u952e\u5355\u51fb\u9879\u76ee\u6587\u4ef6\u5939\uff0c\u8f6c\u5230\u201c\u5c5e\u6027\u201d&gt;\u201cPHP\u201d&gt;\u201cPHP \u89e3\u91ca\u5668\u201d\uff0c\u7136\u540e\u9009\u62e9\u6b63\u786e\u7684\u89e3\u91ca\u5668\u3002<\/li>\n<\/ul>\n<p><strong>3. \u73af\u5883\u53d8\u91cf\u95ee\u9898<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u60a8\u7684\u73af\u5883\u53d8\u91cf\u6b63\u786e\u914d\u7f6e\u4e3a\u4f7f\u7528\u60a8\u7684 PHP \u89e3\u91ca\u5668\u3002<\/li>\n<li>\u5728 Windows \u4e2d\uff0c\u7f16\u8f91\u201c\u7cfb\u7edf\u5c5e\u6027\u201d&gt;\u201c\u9ad8\u7ea7\u201d&gt;\u201c\u73af\u5883\u53d8\u91cf\u201d\u4e2d\u7684 PATH \u53d8\u91cf\u3002<\/li>\n<li>\u5728 macOS \u4e2d\uff0c\u5c06 PATH \u6dfb\u52a0\u5230 ~\/.zshrc \u6216 ~\/.bash_profile \u6587\u4ef6\u4e2d\u3002<\/li>\n<\/ul>\n<p><strong>4. \u4ee3\u7801\u9519\u8bef<\/strong><\/p>\n<ul>\n<li>\u68c0\u67e5\u60a8\u7684\u4ee3\u7801\u662f\u5426\u5b58\u5728\u8bed\u6cd5\u6216\u8fd0\u884c\u65f6\u9519\u8bef\u3002<\/li>\n<li>PHPStorm \u4f1a\u5728\u60a8\u952e\u5165\u65f6\u7a81\u51fa\u663e\u793a\u9519\u8bef\u3002<\/li>\n<\/ul>\n<p><strong>5. \u5b89\u5168\u8bbe\u7f6e<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd PHPStorm \u5177\u5907\u8fd0\u884c\u4ee3\u7801\u6240\u9700\u7684\u6743\u9650\u3002<\/li>\n<li>\u5728 Windows \u4e2d\uff0c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c PHPStorm\u3002<\/li>\n<li>\u5728 macOS \u4e2d\uff0c\u8f6c\u5230\u201c\u7cfb\u7edf\u504f\u597d\u8bbe\u7f6e\u201d&gt;\u201c\u5b89\u5168\u6027\u4e0e\u9690\u79c1\u201d&gt;\u201c\u9690\u79c1\u201d&gt;\u201c\u8f85\u52a9\u529f\u80fd\u201d\uff0c\u7136\u540e\u6388\u4e88 PHPStorm \u8bbf\u95ee\u6743\u9650\u3002<\/li>\n<\/ul>\n<p><strong>6. \u6740\u6bd2\u8f6f\u4ef6\u5e72\u6270<\/strong><\/p>\n<ul>\n<li>\u67d0\u4e9b\u6740\u6bd2\u8f6f\u4ef6\u53ef\u80fd\u4f1a\u963b\u6b62 PHPStorm \u8fd0\u884c\u4ee3\u7801\u3002<\/li>\n<li>\u6682\u65f6\u7981\u7528\u6740\u6bd2\u8f6f\u4ef6\u6216\u5c06\u5176\u6dfb\u52a0\u5230\u4f8b\u5916\u5217\u8868\u4e2d\u3002<\/li>\n<\/ul>\n<p><strong>7. \u7248\u672c\u51b2\u7a81<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u60a8\u4f7f\u7528\u7684 PHP \u89e3\u91ca\u5668\u4e0e PHPStorm \u7248\u672c\u517c\u5bb9\u3002<\/li>\n<li>\u5982\u679c\u60a8\u66f4\u65b0\u4e86 PHPStorm\uff0c\u8bf7\u786e\u4fdd\u4e5f\u66f4\u65b0\u4e86 PHP \u89e3\u91ca\u5668\u3002<\/li>\n<\/ul>\n<p><strong>\u5176\u4ed6\u6545\u969c\u6392\u9664\u6b65\u9aa4\uff1a<\/strong><\/p>\n<ul>\n<li>\u5c1d\u8bd5\u91cd\u65b0\u542f\u52a8 PHPStorm\u3002<\/li>\n<li>\u5220\u9664 .idea \u9879\u76ee\u6587\u4ef6\u5939\u5e76\u91cd\u65b0\u5bfc\u5165\u9879\u76ee\u3002<\/li>\n<li>\u91cd\u7f6e PHPStorm \u8bbe\u7f6e\uff08\u201c\u8bbe\u7f6e\u201d&gt;\u201c\u91cd\u7f6e\u8bbe\u7f6e\u201d\uff09\u3002<\/li>\n<li>\u8054\u7cfb PHPStorm \u652f\u6301\u56e2\u961f\u5bfb\u6c42\u5e2e\u52a9\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u4e3a\u4ec0\u4e48\u4e0d\u80fd\u8fd0\u884c\u4ee3\u7801\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>phpstorm \u65e0\u6cd5\u8fd0\u884c\u4ee3\u7801\u7684\u539f\u56e0\u4e3b\u8981\u6709\uff1aphp \u89e3\u91ca\u5668\u672a\u914d\u7f6e\u6216\u914d\u7f6e\u9519\u8bef\u3002\u9879\u76ee\u672a\u6b63\u786e\u914d\u7f6e\u4e3a\u4f7f\u7528 php \u89e3\u91ca\u5668\u3002\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u9519\u8bef\u3002\u4ee3\u7801\u5b58\u5728\u9519\u8bef\u3002\u5b89\u5168\u8bbe\u7f6e\u9650\u5236\u3002\u6740\u6bd2\u8f6f\u4ef6\u5e72\u6270\u3002php \u89e3\u91ca\u5668\u4e0e phpstorm \u7248\u672c\u4e0d\u517c\u5bb9\u3002 PHPStorm \u65e0\u6cd5\u8fd0\u884c\u4ee3\u7801\uff1f \u5e38\u89c1\u539f\u56e0\uff1a 1. PHP \u89e3\u91ca\u5668\u672a\u914d\u7f6e \u786e\u4fdd\u60a8\u5df2\u5b89\u88c5\u5e76\u914d\u7f6e PHP \u89e3\u91ca\u5668\u3002 \u5728 PHPStorm \u4e2d\uff0c\u8f6c\u5230\u201c\u8bbe\u7f6e\u201d&gt;\u201c\u63d2\u4ef6\u201d&gt;\u201cPHP\u201d&gt;\u201cPHP \u89e3\u91ca\u5668\u201d\uff0c\u7136\u540e\u914d\u7f6e\u60a8\u7684\u89e3\u91ca\u5668\u3002 2. \u9519\u8bef\u7684\u9879\u76ee\u914d\u7f6e \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u68c0\u67e5\u60a8\u7684\u9879\u76ee\u662f\u5426\u6b63\u786e\u914d\u7f6e\u4e3a\u4f7f\u7528\u60a8\u7684 PHP \u89e3\u91ca\u5668\u3002 \u53f3\u952e\u5355\u51fb\u9879\u76ee\u6587\u4ef6\u5939\uff0c\u8f6c\u5230\u201c\u5c5e\u6027\u201d&gt;\u201cPHP\u201d&gt;\u201cPHP \u89e3\u91ca\u5668\u201d\uff0c\u7136\u540e\u9009\u62e9\u6b63\u786e\u7684\u89e3\u91ca\u5668\u3002 3. \u73af\u5883\u53d8\u91cf\u95ee\u9898 \u786e\u4fdd\u60a8\u7684\u73af\u5883\u53d8\u91cf\u6b63\u786e\u914d\u7f6e\u4e3a\u4f7f\u7528\u60a8\u7684 PHP \u89e3\u91ca\u5668\u3002 \u5728 Windows \u4e2d\uff0c\u7f16\u8f91\u201c\u7cfb\u7edf\u5c5e\u6027\u201d&gt;\u201c\u9ad8\u7ea7\u201d&gt;\u201c\u73af\u5883\u53d8\u91cf\u201d\u4e2d\u7684 PATH \u53d8\u91cf\u3002 \u5728 macOS \u4e2d\uff0c\u5c06 PATH \u6dfb\u52a0\u5230 ~\/.zshrc \u6216 ~\/.bash_profile \u6587\u4ef6\u4e2d\u3002 4. \u4ee3\u7801\u9519\u8bef \u68c0\u67e5\u60a8\u7684\u4ee3\u7801\u662f\u5426\u5b58\u5728\u8bed\u6cd5\u6216\u8fd0\u884c\u65f6\u9519\u8bef\u3002 PHPStorm \u4f1a\u5728\u60a8\u952e\u5165\u65f6\u7a81\u51fa\u663e\u793a\u9519\u8bef\u3002 5. \u5b89\u5168\u8bbe\u7f6e [&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-20821","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20821","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=20821"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20821\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}