{"id":422,"date":"2017-08-12T08:15:28","date_gmt":"2017-08-11T23:15:28","guid":{"rendered":"http:\/\/akamist.com\/blog\/?p=422"},"modified":"2017-10-08T18:32:16","modified_gmt":"2017-10-08T09:32:16","slug":"phpslim-framework%e3%81%a7phprender%e3%82%92%e5%88%a9%e7%94%a8%e3%81%97%e3%81%9fview%e3%82%b3%e3%83%b3%e3%83%9d%e3%83%bc%e3%83%8d%e3%83%b3%e3%83%88%e3%81%ae%e5%88%86%e9%9b%a2%e3%82%92%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/akamist.com\/blog\/archives\/422","title":{"rendered":"[PHP]Slim Framework\u3067PhpRender\u3092\u5229\u7528\u3057\u305fView\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u5206\u96e2\u3092\u884c\u3046"},"content":{"rendered":"<p>PHP\u306e\u30de\u30a4\u30af\u30ed\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3067\u3042\u308bSlim Framework\u3067\u306f\u3001\u6a19\u6e96\u3067\u306fView\u306b\u76f8\u5f53\u3059\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u30de\u30a4\u30af\u30ed\u306a\u3060\u3051\u306b\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u51e6\u7406\u4e2d\u3067View\u306e\u51fa\u529b\u307e\u3067\u884c\u3063\u3066\u3082\u826f\u3044\u306e\u3067\u3059\u304c\u3001\u6700\u4f4e\u9650\u306eMVC\u306b\u3088\u308bView\u306e\u5206\u96e2\u3050\u3089\u3044\u306f\u884c\u3044\u305f\u3044\u5834\u5408\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u3001slim\u306ePhpRender(php-view\u30d1\u30c3\u30b1\u30fc\u30b8)\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u7d20\u306ePHP\u30d5\u30a1\u30a4\u30eb\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u3057\u3064\u3064\u3001View\u3092\u5225\u30d5\u30a1\u30a4\u30eb\u306b\u5206\u96e2\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>php-view\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>PhpRender\u306e\u6a5f\u80fd\u306f\u3001slim\/php-view\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3057\u3066\u63d0\u4f9b\u3055\u308c\u3066\u304a\u308a\u3001composer\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u307e\u3059\u3002PhpRender\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306fSlim Framework\u672c\u4f53\u3068\u306f\u5225\u3067\u7ba1\u7406\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u305d\u308c\u305e\u308c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">composer require slim\/slim\ncomposer require slim\/php-view\n<\/code><\/pre>\n<h2>\u307e\u305a\u306f\u3001Slim Framework\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c<\/h2>\n<p>php-view\u3092\u4f7f\u308f\u306a\u3044\u30d1\u30bf\u30fc\u30f3\u3067\u306e\u30b3\u30fc\u30c9\u3092\u5143\u306b\u3057\u3066\u3001\u5c11\u3057\u3065\u3064\u6539\u826f\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u3061\u3089\u306f\u3001Slim Framework\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-php\">&lt;?php\nuse \\Psr\\Http\\Message\\ServerRequestInterface as Request;\nuse \\Psr\\Http\\Message\\ResponseInterface as Response;\n\nrequire 'vendor\/autoload.php';\n\n$app = new \\Slim\\App;\n$app-&gt;get('\/hello\/{name}', function (Request $request, Response $response) {\n    $name = $request-&gt;getAttribute('name');\n    $response-&gt;getBody()-&gt;write(\"Hello, $name\");\n\n    return $response;\n});\n$app-&gt;run();\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30d5\u30a1\u30a4\u30eb\u3092index.php\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">php -S localhost:80 index.php\n<\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u30d6\u30e9\u30a6\u30b6\u304b\u3089http:\/\/localhost\/hello\/alice\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001\"Hello, alice\"\u306e\u51fa\u529b\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3053\u306e\u30b3\u30fc\u30c9\u3092\u30d9\u30fc\u30b9\u306b\u3001PhpRender\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c0e\u5165\u3057\u307e\u3059\u3002<\/p>\n<h2>PhpRender\u3092\u4f7f\u3046<\/h2>\n<p>\u305d\u308c\u3067\u306f\u3001PhpRenderer\u3092\u4f7f\u3063\u305f\u30b3\u30fc\u30c9\u306b\u66f8\u304d\u63db\u3048\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u5148\u307b\u3069\u306e\u30b3\u30fc\u30c9\u306f\u3001PhpRenderer\u306b\u3088\u3063\u3066\u4ee5\u4e0b\u306e\u69d8\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">\/\/ PhpRenderer\u3092\u4f7f\u7528\u3057\u3066View\u3092\u51fa\u529b(DI\u30b3\u30f3\u30c6\u30ca\u672a\u4f7f\u7528)\n$app-&gt;get('\/hello\/{name}', function (Request $request, Response $response) {\n    $renderer = new \\Slim\\Views\\PhpRenderer(\".\/view\");\n\n    \/\/ View\u306b\u6e21\u3059\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u30bb\u30c3\u30c8\n    $viewParam = [\n        'name' =&gt; $request-&gt;getAttribute('name'),\n    ];\n\n    \/\/ View\u306e\u63cf\u753b\n    return $renderer-&gt;render($response, 'hello\/index.tpl', $viewParam);\n});\n<\/code><\/pre>\n<p>\u51fa\u529b\u51e6\u7406\u3060\u3063\u305f\"Hello, $name\"\u306b\u76f8\u5f53\u3059\u308b\u90e8\u5206\u304c\u306a\u304f\u306a\u3063\u3066\u304a\u308a\u3001\u66ff\u308f\u308a\u306bhello\/index.tpl\u3068\u3044\u3046View\u306e\u8aad\u307f\u8fbc\u307f\u51e6\u7406\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>view\u306b\u76f8\u5f53\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306f\u3001\/view\/hello\/index.tpl\u306b\u5225\u3067\u7ba1\u7406\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\"># view\/hello\/index.tpl\nHello, &lt;?=$name?&gt;\n<\/code><\/pre>\n<p>\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6700\u521d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u540c\u3058\u304f\"Hello, alice.\"\u3068\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>PhpRenderer\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3067\u306f\u3001view\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7ba1\u7406\u3059\u308b\u30d9\u30fc\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\\Slim\\Views\\PhpRenderer::render()\u3067response\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u6e21\u305b\u3070\u3001\u7d50\u679c\u306ehtml\u304c\u51fa\u529b\u3055\u308c\u305fresponse\u3068\u3057\u3066\u8fd4\u3055\u308c\u308b\u306e\u3067\u3001return\u3059\u308c\u3070\u3088\u3044\u3067\u3059\u3002<\/p>\n<p>Controller\u304b\u3089View\u306b\u6e21\u3059\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u9023\u60f3\u914d\u5217\u3092\u7528\u610f\u3057\u3066render()\u306e\u7b2c\u4e09\u5f15\u6570\u306b\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002view\u3067\u306f\u9023\u60f3\u914d\u5217\u306e\u30ad\u30fc\u304c\u5909\u6570\u540d\u3068\u3057\u3066\u53c2\u7167\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u305d\u306e\u307e\u307e\u6e21\u3059<\/h2>\n<p>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3067\u6e21\u3055\u308c\u308b\u30d1\u30e9\u30e1\u30fc\u30bf(URL\u6307\u5b9a\u3067\u8a18\u8ff0\u3057\u305f'\/hello\/{name}'\u306ename\u306b\u8a72\u5f53\u3059\u308b\u90e8\u5206)\u306f\u3001\u30af\u30ed\u30fc\u30b8\u30e3\u30fc\u306e\u7b2c\u4e09\u5f15\u6570\u3067\u53d7\u3051\u53d6\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u69d8\u306b\u66f8\u304f\u3068View\u3078\u306e\u53d7\u3051\u6e21\u3057\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5225\u9014\u7528\u610f\u3059\u308b\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001{name}\u306b\u76f8\u5f53\u3059\u308b\u60c5\u5831\u304c$args['name']\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-php\">$app-&gt;get('\/hello\/{name}', function (Request $request, Response $response, $args) {\n    $renderer = new \\Slim\\Views\\PhpRenderer(\".\/view\");\n\n    return $renderer-&gt;render($response, 'hello\/index.tpl', $args);\n});\n<\/code><\/pre>\n<h2>ViewRenderer\u3092DI\u30b3\u30f3\u30c6\u30ca\u3067\u7ba1\u7406\u3059\u308b<\/h2>\n<p>Slim Framework\u306eViewRenderer\u3067\u3059\u304c\u3001PhpRenderer\u4ee5\u5916\u306b\u3082Smarty\u3084Twig\u3092\u30d9\u30fc\u30b9\u306b\u3057\u305f\u7269\u304c\u8907\u6570\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u305f\u3081\u3001\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u5074\u3067\u76f4\u63a5\\Slim\\Views\\PhpRenderer\u30af\u30e9\u30b9\u3092\u751f\u6210\u3057\u3066\u3044\u308b\u3068\u3001\u5c06\u6765View\u306e\u30ec\u30f3\u30c0\u30e9\u30fc\u3092\u5909\u3048\u305f\u3044\u3068\u304d\u306b\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u30ed\u30b8\u30c3\u30af\u3092\u4fee\u6b63\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">$renderer = new \\Slim\\Views\\PhpRenderer(\".\/view\");\n\u2193\n$renderer = new \\Slim\\Views\\SmartyRenderer(\".\/view\");\n<\/code><\/pre>\n<p>\u3053\u308c\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u306f\u3001DI\u30b3\u30f3\u30c6\u30ca\u3092\u5229\u7528\u3059\u308b\u3068\u3088\u3044\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306bDI\u30b3\u30f3\u30c6\u30ca\u306bView\u306eRenderer\u3092\u767b\u9332\u3057\u305f\u3046\u3048\u3067...<\/p>\n<pre><code class=\"language-php\">\/\/ View\u30ec\u30f3\u30c0\u30e9\u3092DI\u30b3\u30f3\u30c6\u30ca\u306b\u767b\u9332\n$app = new \\Slim\\App;\n$container = $app-&gt;getContainer();\n$container['renderer'] = function ($c) {\n    return new \\Slim\\Views\\PhpRenderer(\".\/view\")\n};\n<\/code><\/pre>\n<p>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u5074\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b$this->renderer\u3067\u3001DI\u30b3\u30f3\u30c6\u30ca\u306b\u767b\u9332\u3055\u308c\u305fRenderer\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">\/\/ DI\u30b3\u30f3\u30c6\u30ca\u306b\u767b\u9332\u3055\u308c\u305f\u30ec\u30f3\u30c0\u30e9\u3067\u51fa\u529b\u3059\u308b\n$app-&gt;get('\/hello\/{name}', function (Request $request, Response $response, $args) {\n    return $this-&gt;renderer-&gt;render($response, 'hello\/index.tpl', $args);\n});\n<\/code><\/pre>\n<p>\u3053\u3046\u3057\u3066\u304a\u304f\u3068\u3001\u5c06\u6765View\u30ec\u30f3\u30c0\u30e9\u30fc\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306bDI\u30b3\u30f3\u30c6\u30ca\u3078\u306e\u767b\u9332\u51e6\u7406\u3060\u3051\u5dee\u3057\u66ff\u3048\u308c\u3070\u3088\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">\/\/ View\u30ec\u30f3\u30c0\u30e9\u3068\u3057\u3066PhpRenderer\u3092\u4f7f\u7528\n$container['renderer'] = function ($c) {\n    return new \\Slim\\Views\\PhpRenderer(\".\/view\");\n};\n<\/code><\/pre>\n<p>\u2193<\/p>\n<pre><code class=\"language-php\">\/\/ View\u30ec\u30f3\u30c0\u30e9\u3068\u3057\u3066Smarty\u3092\u4f7f\u7528\n$container['renderer'] = function ($c) {\n    return new Slim\\Views\\Smarty()\n};\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u306e\u30de\u30a4\u30af\u30ed\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3067\u3042\u308bSlim Framework\u3067\u306f\u3001\u6a19\u6e96\u3067\u306fView\u306b\u76f8\u5f53\u3059\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u30de\u30a4\u30af\u30ed\u306a\u3060\u3051\u306b\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u51e6\u7406\u4e2d\u3067View\u306e\u51fa\u529b\u307e\u3067\u884c\u3063\u3066\u3082\u826f\u3044\u306e\u3067\u3059\u304c\u3001\u6700\u4f4e\u9650\u306e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":741,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/akamist.com\/blog\/wp-content\/uploads\/2017\/08\/icon_slimframework.png","jetpack-related-posts":[{"id":815,"url":"https:\/\/akamist.com\/blog\/archives\/815","url_meta":{"origin":422,"position":0},"title":"Slim3\u306e\u30b9\u30b1\u30eb\u30c8\u30f3\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3001slim\/slim-skeleton\u306e\u89e3\u8aac","date":"2017\u5e7411\u67085\u65e5","format":false,"excerpt":"PHP\u3067Slim3\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u3063\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b\u5834\u5408\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u69cb\u6210\u306e\u3072\u306a\u578b\u3068\u3057\u3066sli\u2026","rel":"","context":"SlimFramework","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/akamist.com\/blog\/wp-content\/uploads\/2017\/08\/icon_slimframework.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1155,"url":"https:\/\/akamist.com\/blog\/archives\/1155","url_meta":{"origin":422,"position":1},"title":"[PHP]Slim Framework 3.9.0\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f","date":"2017\u5e7411\u67086\u65e5","format":false,"excerpt":"PHP\u306e\u30de\u30a4\u30af\u30ed\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308bSlim Framework\u306e\u30d0\u30fc\u30b8\u30e7\u30f33.9.0\u304c\u30012017\/\u2026","rel":"","context":"SlimFramework","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/akamist.com\/blog\/wp-content\/uploads\/2017\/08\/icon_slimframework.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":433,"url":"https:\/\/akamist.com\/blog\/archives\/433","url_meta":{"origin":422,"position":2},"title":"[PHP]Slim Framework\u3067API\u30ad\u30fc\u306b\u3088\u308b\u30a2\u30af\u30bb\u30b9\u8a8d\u8a3c\u3092\u5b9f\u88c5\u3059\u308b","date":"2017\u5e748\u670810\u65e5","format":false,"excerpt":"PHP\u3092\u4f7f\u3063\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3001\u7c21\u5358\u306aWebAPI\u3092\u5b9f\u88c5\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002 \u5c0f\u3055\u306aWebAPI\u30b5\u30fc\u30d0\u2026","rel":"","context":"SlimFramework","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/akamist.com\/blog\/wp-content\/uploads\/2017\/08\/icon_slimframework.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":358,"url":"https:\/\/akamist.com\/blog\/archives\/358","url_meta":{"origin":422,"position":3},"title":"[PHP]Slim Framework\u3067302\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u884c\u3046\u65b9\u6cd5","date":"2017\u5e747\u670821\u65e5","format":false,"excerpt":"PHP\u3067\u5229\u7528\u3067\u304d\u308b\u30de\u30a4\u30af\u30ed\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4e00\u3064\u306b\u3001Slim Framework\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002\u2026","rel":"","context":"SlimFramework","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/akamist.com\/blog\/wp-content\/uploads\/2017\/08\/icon_slimframework.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":429,"url":"https:\/\/akamist.com\/blog\/archives\/429","url_meta":{"origin":422,"position":4},"title":"[PHP]php\u3067\u306eyaml\u8aad\u307f\u8fbc\u307f\u306fsymfony\/yaml\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u4fbf\u5229","date":"2017\u5e748\u67089\u65e5","format":false,"excerpt":"php\u304b\u3089yaml\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u3080\u6a5f\u4f1a\u304c\u3042\u3063\u305f\u306e\u3067\u3059\u304c\u3001symfony\/yaml\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u307f\u305f\u2026","rel":"","context":"yaml","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/akamist.com\/blog\/wp-content\/uploads\/2017\/10\/icon_php.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":759,"url":"https:\/\/akamist.com\/blog\/archives\/759","url_meta":{"origin":422,"position":5},"title":"[PHP]\u8d85\u5165\u9580!! Guzzle\u306e\u4f7f\u3044\u65b9\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb","date":"2017\u5e7411\u67081\u65e5","format":false,"excerpt":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001PHP\u3067Http\u901a\u4fe1\u3092\u884c\u3046\u305f\u3081\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u3042\u308b\u3001Guzzle\u3092\u4f7f\u3046\u305f\u3081\u306e\u624b\u9806\u3092\u8aac\u2026","rel":"","context":"composer","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/akamist.com\/blog\/wp-content\/uploads\/2017\/08\/icon_guzzle.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/posts\/422"}],"collection":[{"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/comments?post=422"}],"version-history":[{"count":7,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/posts\/422\/revisions"}],"predecessor-version":[{"id":449,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/posts\/422\/revisions\/449"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/media\/741"}],"wp:attachment":[{"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/media?parent=422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/categories?post=422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/tags?post=422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}