{"id":9887,"date":"2019-02-11T16:23:10","date_gmt":"2019-02-11T07:23:10","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=9887"},"modified":"2019-02-11T16:23:46","modified_gmt":"2019-02-11T07:23:46","slug":"centos%e3%81%a7composer%e3%81%8c%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%95%e3%82%8c%e3%81%a6%e3%81%84%e3%82%8b%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%81%ae%e7%a2%ba%e8%aa%8d","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9887","title":{"rendered":"Centos\u3067Composer\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u306e\u78ba\u8a8d"},"content":{"rendered":"<p>Composer\u306fPHP\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u3067\u3059\u304c\u3001Composer\u3092\u4f7f\u7528\u3059\u308b\u524d\u306b\u3001\u307e\u305a\u74b0\u5883\u306bComposer\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u306e\u78ba\u8a8d\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>CentOS\u3067\u306e\u78ba\u8a8d\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3067\u3059\u304c\u3001\u5c0e\u5165\u304c\u5b8c\u4e86\u3055\u308c\u3066\u3044\u308b\u72b6\u6cc1\u3067\u3042\u308c\u3070\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067<\/p>\n<p>composer<\/p>\n<p>\u3068\u6253\u3066\u3070\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u73fe\u5728\u306e\u5165\u3063\u3066\u3044\u308bComposer\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3082\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.itblog.jp\/wp-content\/uploads\/2019\/02\/composer.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.itblog.jp\/wp-content\/uploads\/2019\/02\/composer-300x148.png\" alt=\"composer\u306e\u521d\u671f\u753b\u9762\" width=\"300\" height=\"148\" class=\"alignnone size-medium wp-image-9888\" srcset=\"https:\/\/www.itblog.jp\/wp-content\/uploads\/2019\/02\/composer-300x148.png 300w, https:\/\/www.itblog.jp\/wp-content\/uploads\/2019\/02\/composer.png 465w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Composer\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u5f8c\u3001\u4f5c\u6210\u3055\u308c\u305fcomposer.phar\u3092\u3001<\/p>\n<p>\/usr\/local\/bin\/composer<\/p>\n<p>\u3078\u79fb\u52d5\u3055\u305b\u308b\u3053\u3068\u3067\u5b9f\u884c\u53ef\u80fd\u306b\u306a\u308b\u306e\u3067\u3001\u3053\u3053\u307e\u3067\u304c\u3067\u304d\u3066\u3044\u308c\u3070\u4e0a\u8a18\u306e\u69d8\u306a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u306a\u3051\u308c\u3070composer\u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u3067\u304d\u306a\u3044\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p>php -r &#8220;copy(&#8216;https:\/\/getcomposer.org\/installer&#8217;, &#8216;composer-setup.php&#8217;);&#8221;<\/p>\n<p>php composer-setup.php<\/p>\n<p>php -r &#8220;unlink(&#8216;composer-setup.php&#8217;);&#8221;<\/p>\n<p>mv composer.phar \/usr\/local\/bin\/composer<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Composer\u306fPHP\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u3067\u3059\u304c\u3001Composer\u3092\u4f7f\u7528\u3059\u308b\u524d\u306b\u3001\u307e\u305a\u74b0\u5883\u306bComposer\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u306e\u78ba\u8a8d\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002 CentOS\u3067\u306e\u78ba\u8a8d\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3067\u3059\u304c\u3001\u5c0e\u5165\u304c\u5b8c\u4e86\u3055\u308c\u3066 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[147,144,131],"tags":[],"class_list":["post-9887","post","type-post","status-publish","format-standard","hentry","category-linux","category-php-","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9887"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9887\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}