{"id":20656,"date":"2024-11-19T09:39:57","date_gmt":"2024-11-19T01:39:57","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20656\/"},"modified":"2024-11-19T09:39:57","modified_gmt":"2024-11-19T01:39:57","slug":"sublime%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8c%e4%bb%a3%e7%a0%81php","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20656\/","title":{"rendered":"sublime\u600e\u4e48\u8fd0\u884c\u4ee3\u7801php"},"content":{"rendered":"<blockquote><p>\n  \u5728 sublime \u4e2d\u8fd0\u884c php \u4ee3\u7801\u6709\u4e24\u79cd\u4e3b\u8981\u65b9\u6cd5\uff1a\u901a\u8fc7\u7ec8\u7aef\u8fd0\u884c\uff1a\u6253\u5f00\u7ec8\u7aef\u7a97\u53e3\uff0c\u5bfc\u822a\u5230 php \u6587\u4ef6\u4f4d\u7f6e\uff0c\u4f7f\u7528 php \u547d\u4ee4\u8fd0\u884c\u6587\u4ef6\u3002\u5b89\u88c5\u63d2\u4ef6\u8fd0\u884c\uff1a\u5b89\u88c5 php \u63d2\u4ef6\uff0c\u914d\u7f6e\u63d2\u4ef6\uff0c\u9009\u62e9\u201cphp &#8211; command line\u201d\u6784\u5efa\u7cfb\u7edf\u5373\u53ef\u8fd0\u884c\u4ee3\u7801\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/03\/2024040311062286983.jpg\" class=\"aligncenter\" title=\"sublime\u600e\u4e48\u8fd0\u884c\u4ee3\u7801php\u63d2\u56fe\" alt=\"sublime\u600e\u4e48\u8fd0\u884c\u4ee3\u7801php\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5728 Sublime \u4e2d\u8fd0\u884c PHP \u4ee3\u7801<\/strong><\/p>\n<p>\u5bf9\u4e8e\u5728 Sublime Text \u7f16\u8f91\u5668\u4e2d\u8fd0\u884c PHP \u4ee3\u7801\uff0c\u6709\u4e24\u79cd\u4e3b\u8981\u65b9\u6cd5\uff1a<\/p>\n<p><strong>\u901a\u8fc7\u7ec8\u7aef<\/strong><\/p>\n<ol>\n<li> <strong>\u6253\u5f00\u7ec8\u7aef\u7a97\u53e3\uff1a<\/strong>\u5728 macOS \u4e2d\uff0c\u524d\u5f80\u201c\u5e94\u7528\u7a0b\u5e8f\u201d&gt;\u201c\u5b9e\u7528\u5de5\u5177\u201d&gt;\u201c\u7ec8\u7aef\u201d\u3002\u5728 Windows \u4e2d\uff0c\u641c\u7d22\u201c\u547d\u4ee4\u63d0\u793a\u7b26\u201d\u5e76\u70b9\u51fb\u5b83\u3002<\/li>\n<li> <strong>\u5bfc\u822a\u5230 PHP \u6587\u4ef6\u7684\u4f4d\u7f6e\uff1a<\/strong>\u4f7f\u7528 cd \u547d\u4ee4\u5bfc\u822a\u5230\u5b58\u50a8 PHP \u6587\u4ef6\u7684\u76ee\u5f55\u3002<\/li>\n<li>\n<p><strong>\u8fd0\u884c PHP \u6587\u4ef6\uff1a<\/strong>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884c PHP \u6587\u4ef6\uff1a<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<pre>php &lt;\u6587\u4ef6\u540d\u79f0&gt;.php<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/li>\n<\/ol>\n<p><strong>\u901a\u8fc7\u63d2\u4ef6<\/strong><\/p>\n<ol>\n<li> <strong>\u5b89\u88c5 PHP \u63d2\u4ef6\uff1a<\/strong>\u8f6c\u5230\u201c\u9996\u9009\u9879\u201d&gt;\u201c\u7a0b\u5e8f\u5305\u63a7\u5236\u201d&gt;\u201c\u5b89\u88c5\u7a0b\u5e8f\u5305\u201d\u5e76\u641c\u7d22\u201cPHP\u201d\u3002\u5b89\u88c5\u7b26\u5408\u4f60\u9700\u6c42\u7684\u63d2\u4ef6\u3002<\/li>\n<li> <strong>\u914d\u7f6e\u63d2\u4ef6\uff1a<\/strong>\u6839\u636e\u63d2\u4ef6\u7684\u5177\u4f53\u8bf4\u660e\u8fdb\u884c\u914d\u7f6e\u3002<\/li>\n<li> <strong>\u8fd0\u884c\u4ee3\u7801\uff1a<\/strong>\u5728 Sublime Text \u4e2d\uff0c\u9009\u62e9\u201c\u5de5\u5177\u201d&gt;\u201c\u6784\u5efa\u7cfb\u7edf\u201d&gt;\u201cPHP &#8211; Command Line\u201d\u3002\u8fd9\u5c06\u4f7f\u7528\u63d2\u4ef6\u914d\u7f6e\u7684\u547d\u4ee4\u884c\u53c2\u6570\u8fd0\u884c PHP \u4ee3\u7801\u3002<\/li>\n<\/ol>\n<p><strong>\u8be6\u7ec6\u6b65\u9aa4<\/strong><\/p>\n<p><strong>\u901a\u8fc7\u7ec8\u7aef\u8fd0\u884c<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00\u7ec8\u7aef\u7a97\u53e3\u3002<\/li>\n<li>\n<p>\u5bfc\u822a\u5230 PHP \u6587\u4ef6\u7684\u76ee\u5f55\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6587\u4ef6\u4f4d\u4e8e Documents\/php \u6587\u4ef6\u5939\u4e2d\uff0c\u8bf7\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>cd Documents\/php<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/li>\n<li>\n<p>\u8fd0\u884c PHP \u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u8981\u8fd0\u884c\u540d\u4e3a test.php \u7684\u6587\u4ef6\uff0c\u8bf7\u8f93\u5165\uff1a<\/p>\n<pre>php test.php<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/li>\n<\/ul>\n<p><strong>\u901a\u8fc7\u63d2\u4ef6\u8fd0\u884c<\/strong><\/p>\n<ul>\n<li>\u5b89\u88c5 PHP \u63d2\u4ef6\uff0c\u5982 PHP Companion \u6216 PHP Tools\u3002<\/li>\n<li>\u6253\u5f00 Sublime Text \u5e76\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 PHP \u6587\u4ef6\u3002<\/li>\n<li>\u5728\u63d2\u4ef6\u7684\u8bbe\u7f6e\u4e2d\uff0c\u914d\u7f6e PHP \u89e3\u91ca\u5668\u7684\u8def\u5f84\u548c\u547d\u4ee4\u884c\u53c2\u6570\u3002<\/li>\n<li>\u9009\u62e9\u201c\u5de5\u5177\u201d&gt;\u201c\u6784\u5efa\u7cfb\u7edf\u201d&gt;\u201cPHP &#8211; Command Line\u201d\u3002<\/li>\n<li>\u8fd0\u884c\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p><strong>\u63d0\u793a<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u4f60\u5df2\u5b89\u88c5 PHP \u5e76\u5c06\u5176\u6dfb\u52a0\u5230\u7cfb\u7edf\u8def\u5f84\u4e2d\u3002<\/li>\n<li>\u68c0\u67e5\u4f60\u7684 PHP \u6587\u4ef6\u4e2d\u7684\u8bed\u6cd5\u9519\u8bef\u3002<\/li>\n<li>\u5bf9\u4e8e\u66f4\u9ad8\u7ea7\u7684\u8c03\u8bd5\uff0c\u53ef\u4ee5\u4f7f\u7528 Xdebug \u7b49\u5de5\u5177\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8fd0\u884c\u4ee3\u7801php\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>\u5728 sublime \u4e2d\u8fd0\u884c php \u4ee3\u7801\u6709\u4e24\u79cd\u4e3b\u8981\u65b9\u6cd5\uff1a\u901a\u8fc7\u7ec8\u7aef\u8fd0\u884c\uff1a\u6253\u5f00\u7ec8\u7aef\u7a97\u53e3\uff0c\u5bfc\u822a\u5230 php \u6587\u4ef6\u4f4d\u7f6e\uff0c\u4f7f\u7528 php \u547d\u4ee4\u8fd0\u884c\u6587\u4ef6\u3002\u5b89\u88c5\u63d2\u4ef6\u8fd0\u884c\uff1a\u5b89\u88c5 php \u63d2\u4ef6\uff0c\u914d\u7f6e\u63d2\u4ef6\uff0c\u9009\u62e9\u201cphp &#8211; command line\u201d\u6784\u5efa\u7cfb\u7edf\u5373\u53ef\u8fd0\u884c\u4ee3\u7801\u3002 \u5728 Sublime \u4e2d\u8fd0\u884c PHP \u4ee3\u7801 \u5bf9\u4e8e\u5728 Sublime Text \u7f16\u8f91\u5668\u4e2d\u8fd0\u884c PHP \u4ee3\u7801\uff0c\u6709\u4e24\u79cd\u4e3b\u8981\u65b9\u6cd5\uff1a \u901a\u8fc7\u7ec8\u7aef \u6253\u5f00\u7ec8\u7aef\u7a97\u53e3\uff1a\u5728 macOS \u4e2d\uff0c\u524d\u5f80\u201c\u5e94\u7528\u7a0b\u5e8f\u201d&gt;\u201c\u5b9e\u7528\u5de5\u5177\u201d&gt;\u201c\u7ec8\u7aef\u201d\u3002\u5728 Windows \u4e2d\uff0c\u641c\u7d22\u201c\u547d\u4ee4\u63d0\u793a\u7b26\u201d\u5e76\u70b9\u51fb\u5b83\u3002 \u5bfc\u822a\u5230 PHP \u6587\u4ef6\u7684\u4f4d\u7f6e\uff1a\u4f7f\u7528 cd \u547d\u4ee4\u5bfc\u822a\u5230\u5b58\u50a8 PHP \u6587\u4ef6\u7684\u76ee\u5f55\u3002 \u8fd0\u884c PHP \u6587\u4ef6\uff1a\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884c PHP \u6587\u4ef6\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b php &lt;\u6587\u4ef6\u540d\u79f0&gt;.php \u767b\u5f55\u540e\u590d\u5236 \u901a\u8fc7\u63d2\u4ef6 \u5b89\u88c5 PHP \u63d2\u4ef6\uff1a\u8f6c\u5230\u201c\u9996\u9009\u9879\u201d&gt;\u201c\u7a0b\u5e8f\u5305\u63a7\u5236\u201d&gt;\u201c\u5b89\u88c5\u7a0b\u5e8f\u5305\u201d\u5e76\u641c\u7d22\u201cPHP\u201d\u3002\u5b89\u88c5\u7b26\u5408\u4f60\u9700\u6c42\u7684\u63d2\u4ef6\u3002 \u914d\u7f6e\u63d2\u4ef6\uff1a\u6839\u636e\u63d2\u4ef6\u7684\u5177\u4f53\u8bf4\u660e\u8fdb\u884c\u914d\u7f6e\u3002 \u8fd0\u884c\u4ee3\u7801\uff1a\u5728 Sublime Text [&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-20656","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20656","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=20656"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20656\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}