{"id":1661,"date":"2022-02-16T16:49:21","date_gmt":"2022-02-16T07:49:21","guid":{"rendered":"http:\/\/leenux.kr\/?p=1661"},"modified":"2022-02-16T16:49:21","modified_gmt":"2022-02-16T07:49:21","slug":"php-composer","status":"publish","type":"post","link":"https:\/\/leenux.kr\/?p=1661","title":{"rendered":"[PHP] Composer"},"content":{"rendered":"\n<p class=\"has-text-color has-medium-font-size has-very-dark-gray-color\"><strong>Composer\uc740 PHP\uc758 \uc758\uc874\uc131 \uad00\ub9ac\ub3c4\uad6c\uc774\ub2e4. \ud544\uc694\ud55c \ud655\uc7a5 \uae30\ub2a5\uc744 \uc27d\uac8c \uc124\uce58\ud574\uc8fc\ub294 \uae30\ub2a5\ub3c4 \uc81c\uacf5\ud558\uc9c0\ub9cc, \ud504\ub85c\uc81d\ud2b8\uc5d0\uc11c \ud544\uc694\ud55c \ud655\uc7a5 \uae30\ub2a5\uc744 \ud1b5\ud569\ud574\uc11c \uad00\ub9ac\ud574\uc8fc\ub294 \ub3c4\uad6c\ub2e4.  <\/strong><\/p>\n\n\n\n<p class=\"has-text-color has-medium-font-size has-very-dark-gray-color\"><strong>UNIX \uacc4\uc5f4<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -sS https:\/\/getcomposer.org\/installer | php<\/code><\/pre>\n\n\n\n<p class=\"has-text-color has-medium-font-size has-very-dark-gray-color\"><strong>\uba3c\uc800 \ud504\ub85c\uc81d\ud2b8 \ub610\ub294 \uac1c\ubc1c\uc5d0 \uc0ac\uc6a9\ub418\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uba3c\uc800 \uc815\uc758\ud574\uc57c\ub41c\ub2e4. \uc815\uc758\ub294 composer.json \ud30c\uc77c\uc744 \ub9cc\ub4e0 \ub4a4 \uc544\ub798 \ucf54\ub4dc\ucc98\ub7fc \uae30\uc785\uc744 \ud558\uba74 \ub41c\ub2e4.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"require\": {\n        \"elasticsearch\/elasticsearch\": \"7.0\"\n    }\n}<\/code><\/pre>\n\n\n\n<p class=\"has-text-color has-medium-font-size has-very-dark-gray-color\"><strong>\ub77c\uc774\ube0c\ub7ec\ub9ac \uc815\uc758\uac00 \uc644\ub8cc\ub418\uc5c8\uc73c\uba74 \uc774\uc81c \ubcf8\uaca9\uc801\uc73c\ub85c \uc124\uce58\ub97c \uc9c4\ud589\ud558\uba74 \ub41c\ub2e4. \uc124\uce58 \ubc29\ubc95\uc740 \uc544\ub798 \ucf54\ub4dc\uc640 \uac19\ub2e4.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php composer.phar install<\/code><\/pre>\n\n\n\n<p class=\"has-text-color has-medium-font-size has-very-dark-gray-color\"><strong>\uc124\uce58 \uc644\ub8cc \ud6c4 \ud604\uc7ac\/\ud574\ub2f9 \ub514\ub809\ud1a0\ub9ac\ub97c \ud655\uc778\ud574\ubcf4\uba74 vendor \ub514\ub809\ud1a0\ub9ac\uac00 \uc0dd\uc131\ub418\uc5c8\uc74c\uc744 \ud655\uc778\ud560 \uc218 \uc788\ub2e4. \uadf8 \ub4a4 php \ucf54\ub4dc\uc5d0 \uc544\ub798\uc640 \uac19\uc774 \ucf54\ub4dc\ub97c \uae30\uc785\ud558\uba74 \ubcf8\uaca9\uc801\uc73c\ub85c \uc124\uce58\ub41c \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc774\uc6a9\ud560 \uc218 \uc788\ub2e4. <\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>require 'vendor\/autoload.php';<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>[PHP] Composer \uc124\uce58 \ubc0f \ubc29\ubc95<\/p>\n","protected":false},"author":1,"featured_media":1474,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[61],"tags":[],"_links":{"self":[{"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/posts\/1661"}],"collection":[{"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leenux.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1661"}],"version-history":[{"count":1,"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/posts\/1661\/revisions"}],"predecessor-version":[{"id":1662,"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/posts\/1661\/revisions\/1662"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/media\/1474"}],"wp:attachment":[{"href":"https:\/\/leenux.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leenux.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leenux.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}