{"id":2493,"date":"2013-09-30T17:31:42","date_gmt":"2013-09-30T08:31:42","guid":{"rendered":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/?p=2493"},"modified":"2013-09-30T17:38:53","modified_gmt":"2013-09-30T08:38:53","slug":"pit%e3%81%a7%e3%81%ae%e3%83%ad%e3%82%b0%e3%82%a4%e3%83%b3%e6%83%85%e5%a0%b1%e3%81%ae%e7%ae%a1%e7%90%86%ef%bc%88php%e7%89%88%ef%bc%89","status":"publish","type":"post","link":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/2013\/09\/30\/2493\/","title":{"rendered":"Pit\u3067\u306e\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u306e\u7ba1\u7406\uff08php\u7248\uff09"},"content":{"rendered":"<p>Ruby\u3067\u306ePit\u3092\u4f7f\u3063\u3066\u3044\u3066\u3001\u5225\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3082\u4f7f\u304a\u3046\u3068\u3057\u305f\u3089\u305d\u3061\u3089\u306fPHP\u3067\u4f7f\u3048\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>\u304c\u3001\u63a2\u3059\u3068PHP\u7248\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u65b9\u304c\u3044\u305f\u306e\u3067\u4f7f\u308f\u305b\u3066\u8cb0\u3063\u305f\u3002\u305f\u3060\u3001\u5358\u306bpear\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u3067\u306a\u304f\u3001openpear\u306e\u30c1\u30e3\u30cd\u30eb\u767b\u9332\u304c\u5fc5\u8981\u3060\u3063\u305f\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/project-p.jp\/halt\/?p=816#comments\">PHP\u7248\u306ePit\u3092\u4f5c\u3063\u3066\u307f\u305f | \u3053\u306e\u5148\u751f\u304d\u306e\u3053\u308b\u306b\u306f<br \/>\n<\/a><\/p>\n<li><a href=\"https:\/\/github.com\/ha1t\/php-Pit\">ha1t\/php-Pit \u00b7 GitHub<br \/>\n<\/a><\/p>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/oppara\/20121021\/p1\">pit &#8211; \u5446\u5099\u9332<br \/>\n<\/a>||php\u306e\u52d5\u4f5c\u306f\u5fae\u5999\u3002\u3068\u3044\u3046\u304b\u4f5c\u308a\u304b\u3051\uff1f\n<\/ul>\n<p>pear\u3078\u306eopenpear\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332\u304c\u307e\u3060\u306a\u3089\u3057\u3066\u304a\u304f<\/p>\n<div class=\"hl-surround\" ><div class=\"hl-main\"><pre>$ sudo pear channel-discover openpear.org\r\nAdding Channel &quot;openpear.org&quot; succeeded\r\nDiscovery of channel &quot;openpear.org&quot; succeeded<\/pre><\/div><\/div>\n<p>Pit\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<div class=\"hl-surround\" ><div class=\"hl-main\"><pre>$ sudo pear install openpear\/Pit\r\ndownloading Pit-1.0.0.tgz ...\r\nStarting to download Pit-1.0.0.tgz (1,798 bytes)\r\n....done: 1,798 bytes\r\ninstall ok: channel:\/\/openpear.org\/Pit-1.0.0<\/pre><\/div><\/div>\n<p>spyc\u3068\u3044\u3046\u306e\u3082\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3053\u3061\u3089\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<div class=\"hl-surround\" ><div class=\"hl-main\"><pre>$ sudo pear install openpear\/spyc\r\ndownloading Spyc-0.4.5.tgz ...\r\nStarting to download Spyc-0.4.5.tgz (19,445 bytes)\r\n......done: 19,445 bytes\r\ninstall ok: channel:\/\/openpear.org\/Spyc-0.4.5<\/pre><\/div><\/div>\n<p>\u30ea\u30b9\u30c8\u3067\u78ba\u8a8d\uff08-c\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30c1\u30e3\u30cd\u30eb\u6307\u5b9a\u304c\u5fc5\u8981\uff09<\/p>\n<div class=\"hl-surround\" ><div class=\"hl-main\"><pre>$ sudo pear list -c openpear\r\nInstalled packages, channel openpear.org:\r\n=========================================\r\nPackage Version State\r\nPit     1.0.0   stable\r\nSpyc    0.4.5   stable<\/pre><\/div><\/div>\n<p>\u500b\u3005\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u60c5\u5831\u8868\u793a<\/p>\n<div class=\"hl-surround\" ><div class=\"hl-main\"><pre>$ sudo pear info openpear\/Pit\r\nAbout openpear.org\/Pit-1.0.0\r\n============================\r\nRelease Type          PEAR-style PHP-based Package\r\n...<\/pre><\/div><\/div>\n<p>\u4f7f\u3044\u65b9\uff08\u300cfoo\u300d\u3067\u5148\u306b\u30e6\u30fc\u30b6\u60c5\u5831\u300cusername\u300d\u300cpassword\u300d\u304cPit\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3068\u3059\u308b\uff09<\/p>\n<div class=\"hl-surround\" ><div class=\"hl-main\"><pre>require_once &quot;Pit.php&quot;;\r\n$pit = new Pit();\r\n$info = $pit-&gt;get('foo');\r\n$username = $info['username'];\r\n$password = $info['password'];<\/pre><\/div><\/div>\n<p>\u304a\u307e\u3051\uff1aRuby\u7248Pit\u306e\u30ea\u30f3\u30af<\/p>\n<ul>\n<li><a href=\"http:\/\/subtech.g.hatena.ne.jp\/cho45\/20080102\/1199257680\">\u30a2\u30ab\u30a6\u30f3\u30c8\u60c5\u5831\u3092\u7ba1\u7406\u3059\u308b\u30b3\u30de\u30f3\u30c9 pit &#8211; \u51ac\u901a\u308a\u306b\u6d88\u3048\u884c\u304f\u5236\u670d\u30ac\u30fc\u30eb\u306f\u2716\u5922\u7269\u8a9e\u306b\u30ea\u30a2\u30eb\u3092\u6c42\u3081\u306a\u3044\u3002 &#8211; subtech<br \/>\n<\/a><\/p>\n<ul>\n<li>\u3068\u3044\u3046\u306e\u3092\u9069\u5f53\u306b\u3067\u3063\u3061\u3042\u3052\u3066\u307f\u307e\u3057\u305f\n <\/ul>\n<li><a href=\"http:\/\/immr.net\/post\/24858192065\/ruby-pit\">\u7ba1\u7406\u80fd\u529b\u30bc\u30ed\u306e\u30aa\u30ec\u306b\u306fRuby\u306epit\u304c\u3061\u3087\u30fc\u52a9\u304b\u308b | immr.net blog<br \/>\n<\/a><\/p>\n<li><a href=\"http:\/\/miyohide.hatenablog.com\/entry\/20110828\/1314537140\">\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3059\u308b\u306b\u4f7f\u3063\u305fpit\u304c\u4fbf\u5229 &#8211; miyohide&#8217;s blog<br \/>\n<\/a><\/p>\n<li><a href=\"http:\/\/www.tk-mitsu.com\/diary\/2009-07-15-1.html\">PIT \u306f\u3058\u3081\u307e\u3057\u305f &#8211; A More Beautiful day<br \/>\n<\/a>\n<\/ul>\n<p>\u500b\u4eba\u7684\u306b\u306f\u3001.pit\/XXXX.yaml\u304c\u30e6\u30fc\u30b6\u306e\u307f\u95b2\u89a7\u3068\u306a\u3063\u3066\u3044\u308b\u3068\u306f\u3044\u3048\u3001\u305d\u306e\u4e2d\u306e\u60c5\u5831\u3082\u7c21\u5358\u3067\u3082\u3044\u3044\u304b\u3089\u6697\u53f7\u5316\u3057\u3066\u4fdd\u5b58\u3057\u3066\u304a\u304d\u305f\u3044\u3068\u3053\u308d\u3060\u3051\u3069\u2026\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ruby\u3067\u306ePit\u3092\u4f7f\u3063\u3066\u3044\u3066\u3001\u5225\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3082\u4f7f\u304a\u3046\u3068\u3057\u305f\u3089\u305d\u3061\u3089\u306fPHP\u3067\u4f7f\u3048\u306a\u304b\u3063\u305f\u3002 \u304c\u3001\u63a2\u3059\u3068PHP\u7248\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u65b9\u304c\u3044\u305f\u306e\u3067\u4f7f\u308f\u305b\u3066\u8cb0\u3063\u305f\u3002\u305f\u3060\u3001\u5358\u306bpear\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u3067\u306a\u304f\u3001openpear\u306e [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[60,304],"_links":{"self":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/2493"}],"collection":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/comments?post=2493"}],"version-history":[{"count":3,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/2493\/revisions"}],"predecessor-version":[{"id":2496,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/2493\/revisions\/2496"}],"wp:attachment":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/media?parent=2493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/categories?post=2493"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/tags?post=2493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}