{"id":1407,"date":"2012-01-12T12:35:49","date_gmt":"2012-01-12T03:35:49","guid":{"rendered":"http:\/\/www.lancard.com\/blog\/?p=1407"},"modified":"2025-03-12T11:30:34","modified_gmt":"2025-03-12T02:30:34","slug":"onion-composer","status":"publish","type":"post","link":"https:\/\/www.lancard.com\/blog\/2012\/01\/12\/onion-composer\/","title":{"rendered":"PHP\u3067bundler\u307d\u3044\u3053\u3068\u3092\u884c\u3046Onion\u3001Composer"},"content":{"rendered":"<p>pear.phpunit.de\/PHPUnit\u3092\u4f9d\u5b58\u95a2\u4fc2\u3068\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u524d\u63d0\u3067\u3001<a href=\"https:\/\/github.com\/c9s\/Onion\">Onion<\/a>\u3001<a href=\"https:\/\/github.com\/composer\/composer\">Composer<\/a>\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h3>Onion<\/h3>\n<p>PEAR\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30d3\u30eb\u30c9\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3001\u305d\u3057\u3066\u4eca\u56de\u306e\u76ee\u7684\u3067\u3042\u308bbundler\u7684\u306a\u3053\u3068\u3092\u7c21\u5358\u306b\u884c\u3048\u307e\u3059\u3002<\/p>\n<h4>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<h5>homebrew\u306e\u5834\u5408<\/h5>\n<p>gist\u306bFormula\u3092\u7f6e\u304d\u307e\u3057\u305f\u306e\u3067\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre lang=\"bash\">\r\n# brew install --HEAD https:\/\/raw.github.com\/gist\/1594321\/6769fa97864462c4813f06bbb08760630ba7c87f\/onion.rb\r\nbrew install --HEAD https:\/\/raw.github.com\/gist\/1594321\/onion.rb\r\n# 2012\/02\/07 \u4fee\u6b63 \u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u304conion.phar\u304b\u3089onion\u306b\u5909\u66f4\u306b\u306a\u308a\u307e\u3057\u305f\u306e\u3067\u3001Formula\u3092\u4fee\u6b63\u3057\u307e\u3057\u305f\u3002\r\n<\/pre>\n<h5>\u76f4\u63a5<\/h5>\n<p>onion.phar\u3092\u30d1\u30b9\u306e\u901a\u3063\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u7f6e\u3044\u3066\u3001\u5b9f\u884c\u6a29\u9650\u3092\u4e0e\u3048\u308b\u3060\u3051\u3002<\/p>\n<pre lang=\"bash\">\r\n# curl https:\/\/github.com\/c9s\/Onion\/raw\/master\/onion > ~\/bin\/onion \r\ncurl -s http:\/\/install.onionphp.org\/ | sh\r\n# 2012\/02\/07 \u4fee\u6b63 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u304c\u5909\u66f4\u3055\u308c\u3066\u307e\u3057\u305f\u3002\r\n<\/pre>\n<h4>\u4f7f\u7528\u65b9\u6cd5<\/h4>\n<blockquote><p>\nonion_sample<br \/>\n  |&#8211; vendor<br \/>\n  |&#8211; package.ini\n<\/p><\/blockquote>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u76f4\u4e0b\u306bpackage.ini\u3092\u4f5c\u6210\u3057\u3001\u3053\u3053\u306b\u4f9d\u5b58\u95a2\u4fc2\u306a\u3069\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<br \/>\n<script type=\"text\/javascript\" src=\"https:\/\/gist.github.com\/1598335.js?file=package.ini\"><\/script>package\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u3042\u308bname\u3001desc\u3001version\u3001author\u306f\u5fc5\u9808\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\uff08\u305d\u3082\u305d\u3082Onion\u306fPEAR\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u308b\u969b\u306b\u3082\u4f7f\u3046\u305f\u3081\u3060\u3068\u601d\u308f\u308c\u307e\u3059\u3002\uff09 require\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u4f7f\u7528\u3057\u305f\u3044PEAR\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002 \u4e0a\u8a18\u306e\u72b6\u614b\u3067\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001vendor\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bPEAR\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002 <\/p>\n<pre lang=\"bash\">$ onion -d bundle<\/pre>\n<p>\u3044\u3084\u30fc\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u5b9f\u884c\u307e\u3067\u975e\u5e38\u306b\u624b\u8efd\u3002\u3053\u306e\u624b\u8efd\u3055\u304c\u7d20\u6674\u3089\u3057\u3044\u3067\u3059\u3002 <\/p>\n<h3>Composer<\/h3>\n<p>\u3053\u3061\u3089\u3082bundler\u7684\u306a\u4e8b\u3092\u884c\u3048\u308b\u306e\u3067\u3059\u304c\u3001Onion\u3088\u308a\u3082\u305d\u306e\u4f9d\u5b58\u95a2\u4fc2\u90e8\u5206\u306b\u6ce8\u529b\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3068\u3044\u3063\u305f\u611f\u3058\u3067\u3059\u3002 PEAR\u3060\u3051\u306b\u9650\u3089\u305a\u3001git\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f9d\u5b58\u95a2\u4fc2\u3068\u3057\u3066\u6307\u5b9a\u3057\u305f\u308a\u3082\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u305d\u306e\u8fba\u308a\u306f\u3042\u307e\u308a\u8abf\u3079\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u4eca\u56de\u306fPEAR\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u307f\u4f7f\u3046\u524d\u63d0\u3067\u8a66\u3057\u3066\u898b\u307e\u3057\u305f\u3002 <\/p>\n<h4>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<pre lang=\"bash\">brew install --HEAD https:\/\/raw.github.com\/gist\/1574469\/composer.rb<\/pre>\n<h4>\u4f7f\u7528\u65b9\u6cd5<\/h4>\n<blockquote><p>\ncomposer_sample<br \/>\n  |&#8211; vendor<br \/>\n  |&#8211; composer.json\n<\/p><\/blockquote>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u76f4\u4e0b\u306bcomposer.json\u3092\u4f5c\u6210\u3057\u3001\u3053\u3053\u306b\u4f9d\u5b58\u95a2\u4fc2\u306a\u3069\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<script type=\"text\/javascript\" src=\"https:\/\/gist.github.com\/1598338.js?file=composer.json\"><\/script><\/p>\n<p>\u4e0a\u8a18\u306e\u72b6\u614b\u3067\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001vendor\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bPEAR\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre lang=\"bash\">$ composer.phar install<\/pre>\n<p>Composer\u306fPEAR\u30e2\u30b8\u30e5\u30fc\u30eb\u4ee5\u5916\u3082\u6271\u3046\u305f\u3081\u304b\u3001PEAR\u30e2\u30b8\u30e5\u30fc\u30eb\u305d\u306e\u3082\u306e\u3092\u6271\u3046\u306e\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u5c11\u3005\u8907\u96d1\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306fpear.phpunit.de\/PHPUnit\u3092\u4f9d\u5b58\u95a2\u4fc2\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u307e\u305a\u305d\u306e\u305f\u3081\u306brepositories\u306b\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3053\u307e\u3067\u306f\u3044\u3044\u306e\u3067\u3059\u304c\u3001PHPUnit\u304cpear.symfony-project.com\/YAML\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u3082\u8a18\u8ff0\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u4f9d\u5b58\u95a2\u4fc2\u306b\u3042\u308b\u5168\u3066\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308b\u307f\u305f\u3044\u3067\u3059\u3002\u3053\u308c\u3069\u3046\u306b\u304b\u306a\u3089\u306a\u3044\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u96d1\u611f\u3068\u3057\u3066\u306fPEAR\u30e2\u30b8\u30e5\u30fc\u30eb\u3055\u3048\u6271\u3048\u308c\u3070\u3044\u3044\u306e\u3067\u3042\u308c\u3070\u3001Onion\u306e\u65b9\u304c\u7c21\u5358\u3060\u3068\u601d\u3044\u307e\u3057\u305f\u3002\u5bfe\u3057\u3066Composer\u306fPEAR\u30e2\u30b8\u30e5\u30fc\u30eb\u4ee5\u5916\u306b\u3082\u4f7f\u3048\u308b\u306e\u3067\u3001\u4eca\u5f8c\u306b\u671f\u5f85\u3067\u304d\u308b\u306e\u306fComposer\u3060\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u73fe\u72b6\u306f\u7528\u9014\u306b\u5408\u308f\u305b\u3066\u3068\u3044\u3063\u305f\u3068\u3053\u308d\u3067\u3057\u3087\u3046\u3002\u307e\u305f\u6c17\u306b\u306a\u308b\u52d5\u304d\u3068\u3057\u3066\u3001Onion\u306eGithub\u30ea\u30dd\u30b8\u30c8\u30ea\u306bcomposer-support\u3068\u3044\u3046\u30d6\u30e9\u30f3\u30c1\u304c\u3042\u308b\u306e\u304c\u697d\u3057\u307f\u3067\u3059\u3002<\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F1407&#038;t=PHP%E3%81%A7bundler%E3%81%BD%E3%81%84%E3%81%93%E3%81%A8%E3%82%92%E8%A1%8C%E3%81%86Onion%E3%80%81Composer&#038;s=100&#038;p&#091;url&#093;=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F1407&#038;p&#091;images&#093;&#091;0&#093;=&#038;p&#091;title&#093;=PHP%E3%81%A7bundler%E3%81%BD%E3%81%84%E3%81%93%E3%81%A8%E3%82%92%E8%A1%8C%E3%81%86Onion%E3%80%81Composer\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"http:\/\/twitter.com\/share?url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F1407&#038;text=PHP%E3%81%A7bundler%E3%81%BD%E3%81%84%E3%81%93%E3%81%A8%E3%82%92%E8%A1%8C%E3%81%86Onion%E3%80%81Composer\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F1407&#038;title=PHP%E3%81%A7bundler%E3%81%BD%E3%81%84%E3%81%93%E3%81%A8%E3%82%92%E8%A1%8C%E3%81%86Onion%E3%80%81Composer\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-tumblr nolightbox\" data-provider=\"tumblr\" target=\"_blank\" rel=\"nofollow\" title=\"Share on tumblr\" href=\"https:\/\/tumblr.com\/share?s=&#038;v=3&#038;t=PHP%E3%81%A7bundler%E3%81%BD%E3%81%84%E3%81%93%E3%81%A8%E3%82%92%E8%A1%8C%E3%81%86Onion%E3%80%81Composer&#038;u=https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F1407\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px;margin-right:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"tumblr\" title=\"Share on tumblr\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/tumblr.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-24 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=PHP%E3%81%A7bundler%E3%81%BD%E3%81%84%E3%81%93%E3%81%A8%E3%82%92%E8%A1%8C%E3%81%86Onion%E3%80%81Composer&#038;body=%E3%82%B7%E3%82%A7%E3%82%A2%E3%81%99%E3%82%8B%EF%BC%9A:%20https%3A%2F%2Fwww.lancard.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F1407\" style=\"font-size: 0px;width:24px;height:24px;margin:0;margin-bottom:5px\"><img loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"24\" height=\"24\" style=\"display: inline;width:24px;height:24px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"https:\/\/www.lancard.com\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/48x48\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>pear.phpunit.de\/PHPUnit\u3092\u4f9d\u5b58\u95a2\u4fc2\u3068\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u524d\u63d0\u3067\u3001Onion\u3001Composer\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002 Onion PEAR\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30d3\u30eb\u30c9\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3001\u305d\u3057\u3066\u4eca\u56de\u306e\u76ee\u7684\u3067\u3042\u308bbundler\u7684\u306a\u3053 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1407","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/1407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/comments?post=1407"}],"version-history":[{"count":4,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/1407\/revisions"}],"predecessor-version":[{"id":8260,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/posts\/1407\/revisions\/8260"}],"wp:attachment":[{"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/media?parent=1407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/categories?post=1407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lancard.com\/blog\/wp-json\/wp\/v2\/tags?post=1407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}