{"id":183247,"date":"2024-05-08T21:40:58","date_gmt":"2024-05-08T13:40:58","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/183247.html"},"modified":"2024-05-08T21:41:26","modified_gmt":"2024-05-08T13:41:26","slug":"php%e7%94%a8%e4%bb%80%e4%b9%88%e7%bc%96%e8%be%91%e8%bd%af%e4%bb%b6%e5%a5%bd%ef%bc%8c%e9%80%89%e6%8b%a9%e7%9a%84%e7%90%86%e7%94%b1%e6%98%af%e4%bb%80%e4%b9%88","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/183247.html","title":{"rendered":"PHP\u7528\u4ec0\u4e48\u7f16\u8f91\u8f6f\u4ef6\u597d\uff0c\u9009\u62e9\u7684\u7406\u7531\u662f\u4ec0\u4e48"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27073840\/51f4915c-0504-4631-b24f-5f764d4992db.webp\" alt=\"PHP\u7528\u4ec0\u4e48\u7f16\u8f91\u8f6f\u4ef6\u597d\uff0c\u9009\u62e9\u7684\u7406\u7531\u662f\u4ec0\u4e48\" \/><\/p>\n<p><p>PHP\u7f16\u7a0b\u901a\u5e38\u7528 <strong>Sublime Text\u3001Visual Studio Code\u3001PHPStorm<\/strong> \u7b49\u7f16\u8f91\u8f6f\u4ef6\uff0c\u9009\u62e9\u7684\u7406\u7531\u5305\u62ec <strong>\u5f3a\u5927\u7684\u4ee3\u7801\u63d0\u793a\u529f\u80fd\u3001\u4e2a\u6027\u5316\u5b9a\u5236\u9009\u9879\u4e30\u5bcc\u3001\u96c6\u6210\u7684\u7248\u672c\u63a7\u5236\u5de5\u5177\u3001\u9ad8\u6548\u7684\u9519\u8bef\u8c03\u8bd5\u673a\u5236\u4ee5\u53ca\u5e7f\u6cdb\u7684\u793e\u533a\u652f\u6301<\/strong>\u3002Sublime Text\u51ed\u501f\u5176\u8f7b\u91cf\u7ea7\u548c\u5feb\u901f\u6027\u80fd\uff0c\u5438\u5f15\u4e86\u5f88\u591a\u5f00\u53d1\u8005\uff1bVisual Studio Code\u5219\u56e0\u4e3a\u5176\u4e30\u5bcc\u63d2\u4ef6\u548c\u8de8\u5e73\u53f0\u7279\u6027\u5907\u53d7\u6b22\u8fce\uff1bPHPStorm\u5219\u662f\u4e00\u4e2a\u4e13\u4e3aPHP\u5f00\u53d1\u8bbe\u8ba1\u7684IDE\uff0c\u5b83\u63d0\u4f9b\u4e86\u6df1\u5c42\u6b21\u7684\u4ee3\u7801\u7406\u89e3\u3001\u9876\u7ea7\u7684\u7f16\u7801\u8f85\u52a9\u548c\u5bf9PHP\u5de5\u5177\u7684\u5168\u9762\u652f\u6301\uff0c\u7279\u522b\u9002\u5408\u4e13\u4e1a\u5f00\u53d1\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001SUBLIME TEXT<\/p>\n<\/p>\n<p><p><strong>Sublime Text<\/strong> \u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u3001\u5feb\u901f\u4e14\u529f\u80fd\u5f3a\u5927\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u5c24\u5176\u53d7\u6b22\u8fce\u4e8e\u524d\u7aef\u5f00\u53d1\u548c\u5c0f\u578b\u5230\u4e2d\u578b\u9879\u76ee\u7684\u5f00\u53d1\u3002\u6b64\u7f16\u8f91\u5668\u4f53\u79ef\u5c0f\u5de7\u3001\u542f\u52a8\u8fc5\u901f\uff0c\u800c\u4e14\u53ef\u4ee5\u901a\u8fc7\u5b89\u88c5\u63d2\u4ef6\u6765\u6269\u5c55\u5176\u529f\u80fd\u3002<strong>\u4ee3\u7801\u9ad8\u4eae\u3001\u591a\u5149\u6807\u7f16\u8f91<\/strong>\u4ee5\u53ca\u6df1\u53d7\u6b22\u8fce\u7684\u201cGoto anything\u201d\u5feb\u901f\u5bfc\u822a\u7279\u6027\uff0c\u4f7f\u5f97\u7f16\u8f91\u548c\u7ec4\u7ec7\u4ee3\u7801\u66f4\u52a0\u9ad8\u6548\u3002<\/p>\n<\/p>\n<p><p>Sublime Text\u7684\u7528\u6237\u754c\u9762\u7b80\u6d01\uff0c\u5bf9\u65b0\u624b\u975e\u5e38\u53cb\u597d\u3002\u867d\u7136\u5b83\u6ca1\u6709\u50cf\u5b8c\u6574\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u90a3\u6837\u7684\u5f3a\u5927\u76f4\u63a5PHP\u652f\u6301\uff0c\u4f46\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u5b89\u88c5\u7b2c\u4e09\u65b9\u63d2\u4ef6\u6765\u8865\u5168PHP\u4ee3\u7801\u3001\u68c0\u67e5\u8bed\u6cd5\u9519\u8bef\u7b49\u3002\u6b64\u5916\uff0c\u5b83\u7684<strong>\u4e2a\u6027\u5316\u5b9a\u5236\u9009\u9879<\/strong>\u5e7f\u6cdb\uff1a\u7528\u6237\u53ef\u4ee5\u8bbe\u7f6e\u8bb8\u591a\u504f\u597d\uff0c\u4f8b\u5982\u4e3b\u9898\u3001\u989c\u8272\u65b9\u6848\u548c\u5feb\u6377\u952e\uff0c\u4ee5\u63d0\u9ad8\u81ea\u5df1\u7684\u751f\u4ea7\u529b\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001VISUAL STUDIO CODE<\/p>\n<\/p>\n<p><p><strong>Visual Studio Code\uff08VS Code\uff09<\/strong> \u662f\u7531\u5fae\u8f6f\u5f00\u53d1\u7684\u4e00\u6b3e\u5f00\u6e90\u548c\u514d\u8d39\u7684\u7f16\u8f91\u5668\uff0c\u5b83\u7ed3\u5408\u4e86\u7b80\u5355\u7684\u6587\u672c\u7f16\u8f91\u5668\u7684\u901f\u5ea6\u4e0eIDE\u7684\u5f3a\u5927\u529f\u80fd\u3002VS Code\u672c\u8eab\u5185\u5d4c\u5bf9JavaScript\u3001TypeScript\u548cNode.js\u7684\u652f\u6301\uff0c\u5e76\u901a\u8fc7\u63d2\u4ef6\u7684\u5f62\u5f0f\u652f\u6301\u5176\u4ed6\u8bed\u8a00\uff0c\u5305\u62ecPHP\u3002<strong>\u4e30\u5bcc\u7684\u63d2\u4ef6\u5e93<\/strong>\u662fVS Code\u7684\u4e00\u5927\u4eae\u70b9\uff0c\u8fd9\u4f7f\u5f97\u5f00\u53d1\u8005\u53ef\u4ee5\u8f7b\u677e\u6dfb\u52a0\u5982PHPLint\u3001PHP Intelephense\u3001PHP Debug\u7b49\u5bf9PHP\u5f00\u53d1\u975e\u5e38\u6709\u7528\u7684\u6269\u5c55\u3002<\/p>\n<\/p>\n<p><p>VS Code\u7684\u4e00\u5927\u7279\u8272\u662f\u5176<strong>\u5185\u7f6e\u7684Git\u652f\u6301<\/strong>\uff0c\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u76f4\u63a5\u5728\u7f16\u8f91\u5668\u5185\u8fdb\u884c\u7248\u672c\u63a7\u5236\u64cd\u4f5c\uff0c\u800c\u4e14VS Code\u7684\u667a\u80fd\u4ee3\u7801\u5b8c\u6210\u3001\u4ee3\u7801\u7247\u6bb5\u548c\u4ee3\u7801\u91cd\u6784\u7b49\u7279\u6027\u5bf9\u4e8e\u63d0\u9ad8\u7f16\u7a0b\u6548\u7387\u5c24\u4e3a\u91cd\u8981\u3002\u6b64\u5916\uff0cVS Code\u7684<strong>\u8c03\u8bd5\u5de5\u5177<\/strong>\u4e5f\u975e\u5e38\u51fa\u8272\uff0c\u51e0\u4e4e\u53ef\u4ee5\u65e0\u7f1d\u5730\u6574\u5408Xdebug\u7b49PHP\u8c03\u8bd5\u5de5\u5177\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001PHPSTORM<\/p>\n<\/p>\n<p><p><strong>PHPStorm<\/strong> \u662f\u4e13\u95e8\u4e3aPHP\u5f00\u53d1\u4eba\u5458\u8bbe\u8ba1\u7684\u4e00\u6b3eIDE\uff0c\u63d0\u4f9b\u4e86\u5168\u9762\u7684PHP\u4ee3\u7801\u7f16\u5199\u548c\u8c03\u8bd5\u529f\u80fd\u3002PHPStorm\u5bf9PHP\u8bed\u8a00\u4ee5\u53ca\u76f8\u5173\u7684\u524d\u7aef\u6280\u672f\u5982HTML\u3001CSS\u3001JavaScript\u548c\u540e\u7aef\u6280\u672f\u5982SQL\u90fd\u6709\u5f3a\u5927\u7684\u652f\u6301\u3002<strong>\u6df1\u5ea6\u4ee3\u7801\u7406\u89e3<\/strong>\u662fPHPStorm\u7684\u4e00\u9879\u6838\u5fc3\u529f\u80fd\uff0c\u5b83\u901a\u8fc7\u7cbe\u51c6\u7684\u4ee3\u7801\u63d0\u793a\u3001\u4ee3\u7801\u91cd\u6784\u548c\u5373\u65f6\u9519\u8bef\u68c0\u6d4b\u7b49\u7279\u6027\uff0c\u6781\u5927\u5730\u63d0\u9ad8\u4e86\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<\/p>\n<p><p>PHPStorm\u6574\u5408\u4e86\u8bb8\u591a\u5e38\u7528\u5de5\u5177\uff0c\u5982 <strong>\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u3001\u8fdc\u7a0b\u90e8\u7f72\u3001\u6570\u636e\u5e93\/SQL<\/strong>\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5728\u540c\u4e00\u73af\u5883\u4e0b\u5b8c\u6210\u5927\u90e8\u5206\u5de5\u4f5c\uff0c\u800c\u4e0d\u5fc5\u9891\u7e41\u5207\u6362\u5de5\u5177\u3002\u6b64\u5916\uff0cPHPStorm\u7684<strong>\u5b9e\u65f6\u9519\u8bef\u9884\u9632<\/strong>\u529f\u80fd\u53ef\u4ee5\u5728\u7f16\u7801\u8fc7\u7a0b\u4e2d\u5b9e\u65f6\u63d0\u4f9b\u53cd\u9988\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u51cf\u5c11\u7f3a\u9677\u3002\u867d\u7136PHPStorm\u662f\u4e00\u6b3e\u5546\u4e1a\u8f6f\u4ef6\uff0c\u9700\u8981\u4ed8\u8d39\u4f7f\u7528\uff0c\u4f46\u5b83\u63d0\u4f9b\u7684\u529f\u80fd\u5b8c\u6574\u6027\u548c\u4e13\u4e1a\u7684\u5f00\u53d1\u4f53\u9a8c\uff0c\u5bf9\u4e8e\u8bb8\u591a\u5f00\u53d1\u56e2\u961f\u548c\u4e13\u4e1aPHP\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u4ef7\u683c\u662f\u5408\u7406\u7684\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>\u4ec0\u4e48\u662fPHP\u7f16\u8f91\u8f6f\u4ef6\uff1f\u5982\u4f55\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7684\u7f16\u8f91\u8f6f\u4ef6\uff1f<\/strong><\/p>\n<p>PHP\u7f16\u8f91\u8f6f\u4ef6\u662f\u4e13\u95e8\u7528\u4e8e\u7f16\u5199\u548c\u5f00\u53d1PHP\u4ee3\u7801\u7684\u5de5\u5177\u3002\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7684\u7f16\u8f91\u8f6f\u4ef6\u53ef\u4ee5\u6839\u636e\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u8003\u8651\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u529f\u80fd\u548c\u7279\u6027<\/strong>\uff1a\u4e0d\u540c\u7684\u7f16\u8f91\u8f6f\u4ef6\u63d0\u4f9b\u4e0d\u540c\u7684\u529f\u80fd\u548c\u7279\u70b9\u3002\u4f60\u53ef\u4ee5\u9009\u62e9\u4e00\u4e2a\u5177\u6709\u4ee3\u7801\u81ea\u52a8\u5b8c\u6210\u3001\u8bed\u6cd5\u68c0\u67e5\u3001\u4ee3\u7801\u6298\u53e0\u7b49\u529f\u80fd\u7684\u7f16\u8f91\u8f6f\u4ef6\uff0c\u4ee5\u63d0\u9ad8\u7f16\u5199\u4ee3\u7801\u7684\u6548\u7387\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u754c\u9762\u548c\u7528\u6237\u4f53\u9a8c<\/strong>\uff1a\u8f6f\u4ef6\u7684\u754c\u9762\u548c\u7528\u6237\u4f53\u9a8c\u5bf9\u4e8e\u957f\u65f6\u95f4\u7f16\u5199\u4ee3\u7801\u7684\u5f00\u53d1\u4eba\u5458\u975e\u5e38\u91cd\u8981\u3002\u9009\u62e9\u4e00\u4e2a\u754c\u9762\u6e05\u6670\u3001\u6613\u4e8e\u4f7f\u7528\u7684\u7f16\u8f91\u8f6f\u4ef6\u80fd\u591f\u51cf\u5c11\u4e00\u4e9b\u7e41\u7410\u7684\u64cd\u4f5c\uff0c\u63d0\u9ad8\u7f16\u7801\u6548\u7387\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8c03\u8bd5\u548c\u6d4b\u8bd5\u529f\u80fd<\/strong>\uff1a\u4e00\u4e9b\u7f16\u8f91\u8f6f\u4ef6\u63d0\u4f9b\u5185\u7f6e\u7684\u8c03\u8bd5\u548c\u6d4b\u8bd5\u529f\u80fd\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u5feb\u901f\u6392\u67e5\u4ee3\u7801\u9519\u8bef\u5e76\u8fdb\u884c\u8c03\u8bd5\u3002\u5982\u679c\u4f60\u9700\u8981\u7ecf\u5e38\u8fdb\u884c\u4ee3\u7801\u8c03\u8bd5\u548c\u6d4b\u8bd5\uff0c\u53ef\u4ee5\u8003\u8651\u9009\u62e9\u5177\u5907\u8fd9\u4e9b\u529f\u80fd\u7684\u7f16\u8f91\u8f6f\u4ef6\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u6269\u5c55\u6027\u548c\u793e\u533a\u652f\u6301<\/strong>\uff1aPHP\u662f\u4e00\u4e2a\u975e\u5e38\u6d3b\u8dc3\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u6709\u5f88\u591a\u5f00\u6e90\u7684\u7f16\u8f91\u8f6f\u4ef6\u53ef\u4f9b\u9009\u62e9\u3002\u9009\u62e9\u4e00\u4e2a\u62e5\u6709\u6d3b\u8dc3\u793e\u533a\u652f\u6301\u548c\u4e30\u5bcc\u7684\u63d2\u4ef6\u6269\u5c55\u7684\u7f16\u8f91\u8f6f\u4ef6\u53ef\u4ee5\u8ba9\u4f60\u968f\u65f6\u6839\u636e\u9700\u6c42\u8fdb\u884c\u81ea\u5b9a\u4e49\u548c\u6269\u5c55\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u603b\u7684\u6765\u8bf4\uff0c\u9009\u62e9\u4e00\u4e2a\u9002\u5408\u81ea\u5df1\u7684PHP\u7f16\u8f91\u8f6f\u4ef6\uff0c\u9996\u5148\u8981\u8003\u8651\u7f16\u8f91\u8f6f\u4ef6\u7684\u529f\u80fd\u548c\u7279\u6027\u662f\u5426\u7b26\u5408\u81ea\u5df1\u7684\u9700\u6c42\uff0c\u5176\u6b21\u8981\u6ce8\u610f\u8f6f\u4ef6\u7684\u754c\u9762\u548c\u7528\u6237\u4f53\u9a8c\uff0c\u6700\u540e\u8fd8\u8981\u8003\u8651\u8f6f\u4ef6\u7684\u8c03\u8bd5\u548c\u6d4b\u8bd5\u529f\u80fd\u4ee5\u53ca\u6269\u5c55\u6027\u548c\u793e\u533a\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"PHP\u7f16\u7a0b\u901a\u5e38\u7528 Sublime Text\u3001Visual Studio Code\u3001PHPStorm \u7b49\u7f16\u8f91\u8f6f\u4ef6 [&hellip;]","protected":false},"author":3,"featured_media":183284,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/183247"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=183247"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/183247\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/183284"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=183247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=183247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=183247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}