{"id":34756,"date":"2023-01-25T18:51:42","date_gmt":"2023-11-08T08:17:25","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e9%9c%80%e8%a6%81%e4%b8%80%e7%a7%8d%e9%80%89%e9%a1%b9%ef%bc%9a%e4%bd%bf%e7%94%a8intellij%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%bacakephp%e7%8e%af%e5%a2%83\/"},"modified":"2024-04-29T11:27:50","modified_gmt":"2024-04-29T03:27:50","slug":"%e5%8f%aa%e9%9c%80%e8%a6%81%e4%b8%80%e7%a7%8d%e9%80%89%e9%a1%b9%ef%bc%9a%e4%bd%bf%e7%94%a8intellij%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%bacakephp%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e9%9c%80%e8%a6%81%e4%b8%80%e7%a7%8d%e9%80%89%e9%a1%b9%ef%bc%9a%e4%bd%bf%e7%94%a8intellij%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%bacakephp%e7%8e%af%e5%a2%83\/","title":{"rendered":"\u53ea\u9700\u8981\u4e00\u79cd\u9009\u9879\uff1a\u4f7f\u7528IntelliJ\u5feb\u901f\u642d\u5efaCakePHP\u73af\u5883"},"content":{"rendered":"<p>\u3010\u53c2\u8003\u3011<br \/>\n\u901a\u8fc7IntelliJ\u5feb\u901f\u642d\u5efaPHP\u5f00\u53d1\u73af\u5883\u3002<\/p>\n<p>\u5728\u4e0a\u8ff0\u7684\u6587\u7ae0\u4e2d\u63d0\u5230\uff0cPHP\u7684\u73af\u5883\u57fa\u672c\u4e0a\u662f\u53ef\u884c\u7684\u3002<\/p>\n<p>\u5f53\u6211\u8bd5\u56fe\u5347\u7ea7Mac\u9ed8\u8ba4\u7684PHP\u7248\u672c\u65f6\uff0c\u9047\u5230\u4e86\u4e00\u70b9\u9ebb\u70e6&#8230;<\/p>\n<h2>\u6211\u88abPHP\u7248\u672c\u5347\u7ea7\u7684\u95ee\u9898\u56f0\u6270\u4f4f\u4e86\u3002<\/h2>\n<p>\u5982\u679c\u53ea\u662f\u4e00\u76f4\u6572\u6253\u8fd9\u4e2a\u7684\u8bdd\uff0c\u6211\u89c9\u5f97\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>brew update\r\nbrew install php56\r\n<\/code><\/pre>\n<p>\u54c7\u54e6<\/p>\n<pre class=\"post-pre\"><code>Error: No available formula with the name \"php56\" \r\n==&gt; Searching for similarly named formulae...\r\nError: No similarly named formulae found.\r\n==&gt; Searching taps...\r\nThese formulae were found in taps:\r\nhomebrew\/php\/php56-amqp            homebrew\/php\/php56-ioncubeloader   homebrew\/php\/php56-pdo-dblib       homebrew\/php\/php56-swoole        \r\nhomebrew\/php\/php56-apcu            homebrew\/php\/php56-jsmin           homebrew\/php\/php56-pdo-pgsql       homebrew\/php\/php56-symfony-debug \r\nhomebrew\/php\/php56-augmentedtypes  homebrew\/php\/php56-judy            homebrew\/php\/php56-phalcon         homebrew\/php\/php56-thrift        \r\nhomebrew\/php\/php56-binpack         homebrew\/php\/php56-kafka           homebrew\/php\/php56-pimple          homebrew\/php\/php56-tidy          \r\nhomebrew\/php\/php56-blitz           homebrew\/php\/php56-leveldb         homebrew\/php\/php56-pinba           homebrew\/php\/php56-timecop       \r\nhomebrew\/php\/php56-boxwood         homebrew\/php\/php56-libevent        homebrew\/php\/php56-proctitle       homebrew\/php\/php56-timezonedb    \r\nhomebrew\/php\/php56-chdb            homebrew\/php\/php56-libsodium       homebrew\/php\/php56-propro          homebrew\/php\/php56-twig          \r\nhomebrew\/php\/php56-couchbase       homebrew\/php\/php56-libvirt         homebrew\/php\/php56-protobuf        homebrew\/php\/php56-uopz          \r\nhomebrew\/php\/php56-crypto          homebrew\/php\/php56-lz4             homebrew\/php\/php56-pspell          homebrew\/php\/php56-uploadprogress\r\nhomebrew\/php\/php56-dbase           homebrew\/php\/php56-lzf             homebrew\/php\/php56-pthreads        homebrew\/php\/php56-uuid          \r\nhomebrew\/php\/php56-dbus            homebrew\/php\/php56-magickwand      homebrew\/php\/php56-qr              homebrew\/php\/php56-v8js          \r\nhomebrew\/php\/php56-dmtx            homebrew\/php\/php56-mailparse       homebrew\/php\/php56-raphf           homebrew\/php\/php56-varnish       \r\nhomebrew\/php\/php56-eio             homebrew\/php\/php56-maxminddb       homebrew\/php\/php56-rdkafka         homebrew\/php\/php56-vld           \r\nhomebrew\/php\/php56-ev              homebrew\/php\/php56-mcrypt          homebrew\/php\/php56-redis           homebrew\/php\/php56-wbxml         \r\nhomebrew\/php\/php56-event           homebrew\/php\/php56-mecab           homebrew\/php\/php56-redland         homebrew\/php\/php56-xcache        \r\nhomebrew\/php\/php56-fast_assert     homebrew\/php\/php56-memcache        homebrew\/php\/php56-riak            homebrew\/php\/php56-xdebug        \r\nhomebrew\/php\/php56-gearman         homebrew\/php\/php56-memcached       homebrew\/php\/php56-runkit          homebrew\/php\/php56-xhgui         \r\nhomebrew\/php\/php56-geoip           homebrew\/php\/php56-meminfo         homebrew\/php\/php56-scrypt          homebrew\/php\/php56-xhprof        \r\nhomebrew\/php\/php56-gmagick         homebrew\/php\/php56-midgard2        homebrew\/php\/php56-snappy          homebrew\/php\/php56-xmldiff       \r\nhomebrew\/php\/php56-gmp             homebrew\/php\/php56-mongo           homebrew\/php\/php56-snmp            homebrew\/php\/php56-xxtea         \r\nhomebrew\/php\/php56-gnupg           homebrew\/php\/php56-mongodb         homebrew\/php\/php56-sodium          homebrew\/php\/php56-yac           \r\nhomebrew\/php\/php56-graphdat        homebrew\/php\/php56-mosquitto       homebrew\/php\/php56-solr            homebrew\/php\/php56-yaf           \r\nhomebrew\/php\/php56-grpc            homebrew\/php\/php56-msgpack         homebrew\/php\/php56-sphinx          homebrew\/php\/php56-yaml          \r\nhomebrew\/php\/php56-hprose          homebrew\/php\/php56-mustache        homebrew\/php\/php56-spl-types       homebrew\/php\/php56-yar           \r\nhomebrew\/php\/php56-htscanner       homebrew\/php\/php56-mysqlnd_ms      homebrew\/php\/php56-ssh2            homebrew\/php\/php56-yaz           \r\nhomebrew\/php\/php56-http            homebrew\/php\/php56-oauth           homebrew\/php\/php56-stats           homebrew\/php\/php56-yp            \r\nhomebrew\/php\/php56-httpparser      homebrew\/php\/php56-opcache         homebrew\/php\/php56-stemmer         homebrew\/php\/php56-yrmcds        \r\nhomebrew\/php\/php56-igbinary        homebrew\/php\/php56-parsekit        homebrew\/php\/php56-suhosin         homebrew\/php\/php56-zmq           \r\nhomebrew\/php\/php56-imagick         homebrew\/php\/php56-pcntl           homebrew\/php\/php56-sundown         homebrew\/php\/php56-zookeeper     \r\nhomebrew\/php\/php56-intl            homebrew\/php\/php56-pdflib          homebrew\/php\/php56-svm             homebrew\/php\/php56               \r\nTo install one of them, run (for example):\r\n  brew install homebrew\/php\/php56-amqp\r\n<\/code><\/pre>\n<p>\u6211\u8a66\u8457\u9032\u884c\u8abf\u67e5\uff0c\u7d50\u679c\u679c\u7136\u627e\u5230\u4e86\u3002<br \/>\n\u6211\u5617\u8a66\u7528Homebrew\u5728Mac\u4e0a\u5b89\u88dd\u4e86PHP5.6\u74b0\u5883\u3002<\/p>\n<p>\u597d\u50cf\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u5b58\u50a8\u5e93\u3002<\/p>\n<pre class=\"post-pre\"><code>brew tap homebrew\/php\r\nbrew tap homebrew\/dupes\r\n<\/code><\/pre>\n<p>\u91cd\u65b0\u5f00\u59cb\u2026<\/p>\n<pre class=\"post-pre\"><code>brew install php56\r\nphp -v\r\n<\/code><\/pre>\n<p>\u8bf7\u786e\u4fdd\u5c06\u5176\u66f4\u6539\u4e3a5.6\u3002<\/p>\n<pre class=\"post-pre\"><code>PHP 5.6.23 (cli) (built: Jun 24 2016 21:14:33) \r\nCopyright (c) 1997-2016 The PHP Group\r\nZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"Kobito.YxvZFe.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3837434c4406c197fb\/15-0.png\" alt=\"Kobito.YxvZFe.png\" \/><\/div>\n<h2>\u6211\u8981\u653e\u86cb\u7cd5\u8fdb\u53bb\u3002<\/h2>\n<p>\u3010\u53c2\u8003\u3011<br \/>\nOS X \u3067 PhpStorm \u3067 Composer \u4f7f\u3063\u3066 CakePHP 2.5 \u5165\u308c\u3066\u3042\u3068\u30c6\u30b9\u30c8<br \/>\nComposer\u3092\u5229\u7528\u3057\u305fCakePHP2.4.x\u306e\u5c0e\u5165\u624b\u9806<\/p>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u3063\u305f\u3089\u3064\u3044\u306bCake\u3092\u5165\u308c\u308b\u3002<br \/>\nPHP\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u3067\u3042\u308bcomposer\u3092\u5165\u308c\u3066\u4f7f\u3063\u3066\u307f\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code>brew install composer\r\n<\/code><\/pre>\n<p>\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u76f4\u4e0b\u306bcomposer.json\u3092\u4f5c\u6210\u3057\u3066\u5fc5\u8981\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\uff08\u3068\u547c\u3076\u306e\u304b\uff1f\uff09\u3092\u5b9a\u7fa9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"p\">{<\/span>\r\n  <span class=\"nl\">\"name\"<\/span><span class=\"p\">:<\/span> <span class=\"s2\">\"hello-cake\"<\/span><span class=\"p\">,<\/span>\r\n  <span class=\"nl\">\"repositories\"<\/span><span class=\"p\">:<\/span> <span class=\"p\">[<\/span>\r\n    <span class=\"p\">{<\/span>\r\n      <span class=\"nl\">\"type\"<\/span><span class=\"p\">:<\/span> <span class=\"s2\">\"pear\"<\/span><span class=\"p\">,<\/span>\r\n      <span class=\"nl\">\"url\"<\/span><span class=\"p\">:<\/span> <span class=\"s2\">\"http:\/\/pear.cakephp.org\"<\/span>\r\n    <span class=\"p\">}<\/span>\r\n  <span class=\"p\">],<\/span>\r\n  <span class=\"nl\">\"require\"<\/span><span class=\"p\">:<\/span> <span class=\"p\">{<\/span>\r\n    <span class=\"nl\">\"cakephp\/cakephp\"<\/span><span class=\"p\">:<\/span> <span class=\"s2\">\"3.2.9\"<\/span>\r\n  <span class=\"p\">},<\/span>\r\n  <span class=\"nl\">\"require-dev\"<\/span><span class=\"p\">:<\/span> <span class=\"p\">{<\/span>\r\n    <span class=\"nl\">\"phpunit\/phpunit\"<\/span><span class=\"p\">:<\/span> <span class=\"s2\">\"5.4.*\"<\/span><span class=\"p\">,<\/span>\r\n    <span class=\"nl\">\"cakephp\/debug_kit\"<\/span><span class=\"p\">:<\/span> <span class=\"s2\">\"3.2.9\"<\/span>\r\n  <span class=\"p\">},<\/span>\r\n  <span class=\"nl\">\"config\"<\/span><span class=\"p\">:<\/span> <span class=\"p\">{<\/span>\r\n    <span class=\"nl\">\"vendor-dir\"<\/span><span class=\"p\">:<\/span> <span class=\"s2\">\"Vendor\/\"<\/span>\r\n  <span class=\"p\">}<\/span>\r\n<span class=\"p\">}<\/span>\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>php composer.phar install\r\n<\/code><\/pre>\n<p>\u563f\u563f<\/p>\n<pre class=\"post-pre\"><code>Updating dependencies (including require-dev)\r\nYour requirements could not be resolved to an installable set of packages.\r\n\r\n  Problem 1\r\n    - The requested package pear-cakephp\/cakephp could not be found in any version, there may be a typo in the package name.\r\n  Problem 2\r\n    - cakephp\/debug_kit 3.2.0 requires cakephp\/cakephp 3.1.* -&gt; satisfiable by cakephp\/cakephp[3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9].\r\n    - cakephp\/debug_kit 3.2.1 requires cakephp\/cakephp 3.1.* -&gt; satisfiable by cakephp\/cakephp[3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9].\r\n    - cakephp\/debug_kit 3.2.2 requires cakephp\/cakephp 3.1.* -&gt; satisfiable by cakephp\/cakephp[3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9].\r\n    - cakephp\/debug_kit 3.2.3 requires cakephp\/cakephp &gt;=3.1.0 -&gt; satisfiable by cakephp\/cakephp[3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.2.0, 3.2.1, 3.2.10, 3.2.11, 3.2.12, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9].\r\n    - cakephp\/debug_kit 3.2.4 requires cakephp\/cakephp &gt;=3.1.0 &lt;4.0 -&gt; satisfiable by cakephp\/cakephp[3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.2.0, 3.2.1, 3.2.10, 3.2.11, 3.2.12, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9].\r\n    - cakephp\/debug_kit 3.2.5 requires cakephp\/cakephp &gt;=3.1.0 &lt;4.0 -&gt; satisfiable by cakephp\/cakephp[3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.2.0, 3.2.1, 3.2.10, 3.2.11, 3.2.12, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9].\r\n    - cakephp\/debug_kit 3.2.6 requires cakephp\/cakephp &gt;=3.1.0 &lt;4.0 -&gt; satisfiable by cakephp\/cakephp[3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.2.0, 3.2.1, 3.2.10, 3.2.11, 3.2.12, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9].\r\n    - cakephp\/debug_kit 3.2.7 requires cakephp\/cakephp &gt;=3.1.0 &lt;4.0 -&gt; satisfiable by cakephp\/cakephp[3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.2.0, 3.2.1, 3.2.10, 3.2.11, 3.2.12, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9].\r\n    - cakephp\/debug_kit 3.2.8 requires cakephp\/cakephp &gt;=3.1.0 &lt;4.0 -&gt; satisfiable by cakephp\/cakephp[3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.2.0, 3.2.1, 3.2.10, 3.2.11, 3.2.12, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9].\r\n    - cakephp\/debug_kit 3.2.9 requires cakephp\/cakephp &gt;=3.1.0 &lt;4.0 -&gt; satisfiable by cakephp\/cakephp[3.1.0, 3.1.1, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.2.0, 3.2.1, 3.2.10, 3.2.11, 3.2.12, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9].\r\n    - cakephp\/cakephp 3.2.9 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.2.8 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.2.7 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.2.6 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.2.5 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.2.4 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.2.3 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.2.2 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.2.12 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.2.11 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.2.10 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.2.1 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.2.0 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.1.9 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.1.8 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.1.7 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.1.6 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.1.5 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.1.4 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.1.3 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.1.2 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.1.13 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.1.12 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.1.11 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.1.10 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.1.1 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - cakephp\/cakephp 3.1.0 requires ext-intl * -&gt; the requested PHP extension intl is missing from your system.\r\n    - Installation request for cakephp\/debug_kit 3.2.* -&gt; satisfiable by cakephp\/debug_kit[3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9].\r\n\r\nPotential causes:\r\n - A typo in the package name\r\n - The package is not available in a stable-enough version according to your minimum-stability setting\r\n   see &lt;https:\/\/getcomposer.org\/doc\/04-schema.md#minimum-stability&gt; for more details.\r\n\r\nRead &lt;https:\/\/getcomposer.org\/doc\/articles\/troubleshooting.md&gt; for further common problems.\r\n  To enable extensions, verify that they are enabled in those .ini files:\r\n    - \/usr\/local\/etc\/php\/5.6\/php.ini\r\n  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.\r\n<\/code><\/pre>\n<p>\u53ef\u80fd\u6027\u5171\u4fdd\u8be5\u62a5\u9519\u4fe1\u606f\u663e\u793a\u4f60\u7684\u7cfb\u7edf\u4e2d\u7f3a\u5c11\u6240\u9700\u7684PHP\u6269\u5c55intl\u3002\u4f3c\u4e4e\u9700\u8981\u5b89\u88c5\u540d\u4e3aphp-intl\u7684\u6269\u5c55\uff0c\u56e0\u6b64\u8bf7\u5b89\u88c5\u5b83\u5e76\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\u3002\u8fd9\u4e00\u6b21\u4e00\u5b9a\u8981\u6210\u529f\u3002<\/p>\n<pre class=\"post-pre\"><code>brew install php56-intl\r\ncomposer install\r\n<\/code><\/pre>\n<p>\u6765\u4e86\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3837434c4406c197fb\/28-0.png\" alt=\"undefined\" \/><\/div>\n<p>\u521b\u5efa\u86cb\u7cd5\u9879\u76ee!!!!<\/p>\n<pre class=\"post-pre\"><code>php composer.phar create-project --prefer-dist -s dev cakephp\/app hello-cake\r\n<\/code><\/pre>\n<p>\u5728\u4f7f\u7528\u86cb\u7cd5\u670d\u52a1\u5668\u4e0a\u542f\u52a8\u4e86\u6d4b\u8bd5\u9875\u9762\u3002<\/p>\n<pre class=\"post-pre\"><code>hello-cake\/bin\/cake server\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"Kobito.Ykyzr3.png\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3837434c4406c197fb\/33-0.png\" alt=\"Kobito.Ykyzr3.png\" \/><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u53c2\u8003\u3011 \u901a\u8fc7IntelliJ\u5feb\u901f\u642d\u5efaPHP\u5f00\u53d1\u73af\u5883\u3002 \u5728\u4e0a\u8ff0\u7684\u6587\u7ae0\u4e2d\u63d0\u5230\uff0cPHP\u7684\u73af\u5883\u57fa\u672c\u4e0a\u662f\u53ef\u884c\u7684\u3002 \u5f53\u6211 [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-34756","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u53ea\u9700\u8981\u4e00\u79cd\u9009\u9879\uff1a\u4f7f\u7528IntelliJ\u5feb\u901f\u642d\u5efaCakePHP\u73af\u5883 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u53ea\u9700\u8981\u4e00\u79cd\u9009\u9879\uff1a\u4f7f\u7528intellij\u5feb\u901f\u642d\u5efacakephp\u73af\u5883\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u53ea\u9700\u8981\u4e00\u79cd\u9009\u9879\uff1a\u4f7f\u7528IntelliJ\u5feb\u901f\u642d\u5efaCakePHP\u73af\u5883\" \/>\n<meta property=\"og:description\" content=\"\u3010\u53c2\u8003\u3011 \u901a\u8fc7IntelliJ\u5feb\u901f\u642d\u5efaPHP\u5f00\u53d1\u73af\u5883\u3002 \u5728\u4e0a\u8ff0\u7684\u6587\u7ae0\u4e2d\u63d0\u5230\uff0cPHP\u7684\u73af\u5883\u57fa\u672c\u4e0a\u662f\u53ef\u884c\u7684\u3002 \u5f53\u6211 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u53ea\u9700\u8981\u4e00\u79cd\u9009\u9879\uff1a\u4f7f\u7528intellij\u5feb\u901f\u642d\u5efacakephp\u73af\u5883\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-08T08:17:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T03:27:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3837434c4406c197fb\/15-0.png\" \/>\n<meta name=\"author\" content=\"\u9038, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u9038, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e9%9c%80%e8%a6%81%e4%b8%80%e7%a7%8d%e9%80%89%e9%a1%b9%ef%bc%9a%e4%bd%bf%e7%94%a8intellij%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%bacakephp%e7%8e%af%e5%a2%83\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e9%9c%80%e8%a6%81%e4%b8%80%e7%a7%8d%e9%80%89%e9%a1%b9%ef%bc%9a%e4%bd%bf%e7%94%a8intellij%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%bacakephp%e7%8e%af%e5%a2%83\/\",\"name\":\"\u53ea\u9700\u8981\u4e00\u79cd\u9009\u9879\uff1a\u4f7f\u7528IntelliJ\u5feb\u901f\u642d\u5efaCakePHP\u73af\u5883 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-11-08T08:17:25+00:00\",\"dateModified\":\"2024-04-29T03:27:50+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e9%9c%80%e8%a6%81%e4%b8%80%e7%a7%8d%e9%80%89%e9%a1%b9%ef%bc%9a%e4%bd%bf%e7%94%a8intellij%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%bacakephp%e7%8e%af%e5%a2%83\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e9%9c%80%e8%a6%81%e4%b8%80%e7%a7%8d%e9%80%89%e9%a1%b9%ef%bc%9a%e4%bd%bf%e7%94%a8intellij%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%bacakephp%e7%8e%af%e5%a2%83\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e9%9c%80%e8%a6%81%e4%b8%80%e7%a7%8d%e9%80%89%e9%a1%b9%ef%bc%9a%e4%bd%bf%e7%94%a8intellij%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%bacakephp%e7%8e%af%e5%a2%83\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u53ea\u9700\u8981\u4e00\u79cd\u9009\u9879\uff1a\u4f7f\u7528IntelliJ\u5feb\u901f\u642d\u5efaCakePHP\u73af\u5883\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\",\"name\":\"\u9038, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"caption\":\"\u9038, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e9%9c%80%e8%a6%81%e4%b8%80%e7%a7%8d%e9%80%89%e9%a1%b9%ef%bc%9a%e4%bd%bf%e7%94%a8intellij%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%bacakephp%e7%8e%af%e5%a2%83\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u53ea\u9700\u8981\u4e00\u79cd\u9009\u9879\uff1a\u4f7f\u7528IntelliJ\u5feb\u901f\u642d\u5efaCakePHP\u73af\u5883 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u53ea\u9700\u8981\u4e00\u79cd\u9009\u9879\uff1a\u4f7f\u7528intellij\u5feb\u901f\u642d\u5efacakephp\u73af\u5883\/","og_locale":"zh_CN","og_type":"article","og_title":"\u53ea\u9700\u8981\u4e00\u79cd\u9009\u9879\uff1a\u4f7f\u7528IntelliJ\u5feb\u901f\u642d\u5efaCakePHP\u73af\u5883","og_description":"\u3010\u53c2\u8003\u3011 \u901a\u8fc7IntelliJ\u5feb\u901f\u642d\u5efaPHP\u5f00\u53d1\u73af\u5883\u3002 \u5728\u4e0a\u8ff0\u7684\u6587\u7ae0\u4e2d\u63d0\u5230\uff0cPHP\u7684\u73af\u5883\u57fa\u672c\u4e0a\u662f\u53ef\u884c\u7684\u3002 \u5f53\u6211 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u53ea\u9700\u8981\u4e00\u79cd\u9009\u9879\uff1a\u4f7f\u7528intellij\u5feb\u901f\u642d\u5efacakephp\u73af\u5883\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-08T08:17:25+00:00","article_modified_time":"2024-04-29T03:27:50+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1f3837434c4406c197fb\/15-0.png"}],"author":"\u9038, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u9038, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e9%9c%80%e8%a6%81%e4%b8%80%e7%a7%8d%e9%80%89%e9%a1%b9%ef%bc%9a%e4%bd%bf%e7%94%a8intellij%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%bacakephp%e7%8e%af%e5%a2%83\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e9%9c%80%e8%a6%81%e4%b8%80%e7%a7%8d%e9%80%89%e9%a1%b9%ef%bc%9a%e4%bd%bf%e7%94%a8intellij%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%bacakephp%e7%8e%af%e5%a2%83\/","name":"\u53ea\u9700\u8981\u4e00\u79cd\u9009\u9879\uff1a\u4f7f\u7528IntelliJ\u5feb\u901f\u642d\u5efaCakePHP\u73af\u5883 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-11-08T08:17:25+00:00","dateModified":"2024-04-29T03:27:50+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e9%9c%80%e8%a6%81%e4%b8%80%e7%a7%8d%e9%80%89%e9%a1%b9%ef%bc%9a%e4%bd%bf%e7%94%a8intellij%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%bacakephp%e7%8e%af%e5%a2%83\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e9%9c%80%e8%a6%81%e4%b8%80%e7%a7%8d%e9%80%89%e9%a1%b9%ef%bc%9a%e4%bd%bf%e7%94%a8intellij%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%bacakephp%e7%8e%af%e5%a2%83\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e9%9c%80%e8%a6%81%e4%b8%80%e7%a7%8d%e9%80%89%e9%a1%b9%ef%bc%9a%e4%bd%bf%e7%94%a8intellij%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%bacakephp%e7%8e%af%e5%a2%83\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u53ea\u9700\u8981\u4e00\u79cd\u9009\u9879\uff1a\u4f7f\u7528IntelliJ\u5feb\u901f\u642d\u5efaCakePHP\u73af\u5883"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487","name":"\u9038, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","caption":"\u9038, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e9%9c%80%e8%a6%81%e4%b8%80%e7%a7%8d%e9%80%89%e9%a1%b9%ef%bc%9a%e4%bd%bf%e7%94%a8intellij%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%bacakephp%e7%8e%af%e5%a2%83\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=34756"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34756\/revisions"}],"predecessor-version":[{"id":84998,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34756\/revisions\/84998"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=34756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=34756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=34756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}