{"id":3543,"date":"2022-04-06T13:21:57","date_gmt":"2022-04-06T04:21:57","guid":{"rendered":"https:\/\/taitan916.info\/blog\/?p=3543"},"modified":"2025-06-21T13:15:00","modified_gmt":"2025-06-21T04:15:00","slug":"post-3543","status":"publish","type":"post","link":"https:\/\/taitan916.info\/blog\/archives\/3543","title":{"rendered":"PHP\u3067Excel\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5(PhpSpreadsheet)"},"content":{"rendered":"<p>PHP\u3067\u30a8\u30af\u30bb\u30eb\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3055\u305b\u305f\u3044\u3002\u4ee5\u524d\u306f<a href=\"https:\/\/github.com\/PHPOffice\/PHPExcel\" target=\"_blank\" rel=\"noopener\">PHPExcel<\/a>\u3092\u5229\u7528\u3057\u3066\u3044\u305f\u304c\u73fe\u5728\u306f\u975e\u63a8\u5968\u3089\u3057\u304f\u5f8c\u7d99\u306e<a href=\"https:\/\/github.com\/PHPOffice\/PhpSpreadsheet\" target=\"_blank\" rel=\"noopener\">PhpSpreadsheet<\/a>\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u306e\u304c\u826f\u3044\u3068\u306e\u3053\u3068\u3002\u4ee5\u4e0b\u306b\u5c0e\u5165\u65b9\u6cd5\u3068\u4f7f\u7528\u65b9\u6cd5\u3092\u30e1\u30e2\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u516c\u5f0f\u30b5\u30a4\u30c8<\/h2>\n<p><a href=\"https:\/\/phpspreadsheet.readthedocs.io\/en\/latest\/\" target=\"_blank\" rel=\"noopener\">https:\/\/phpspreadsheet.readthedocs.io\/en\/latest\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>PhpSpreadsheet\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u4eca\u56de\u306e\u30b5\u30fc\u30d0\u306fcomposer\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u305d\u3053\u304b\u3089\u30b9\u30bf\u30fc\u30c8\u3002\u5c1a\u3001CentOS7\u3068PHP7.4\u306e\u74b0\u5883\u3067\u4f5c\u696d\u3057\u305f\u3002\u9069\u5f53\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3001\u79fb\u52d5\u3057\u4ee5\u4e0b\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#composer\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\ncurl -sS https:\/\/getcomposer.org\/installer | php\r\nmv composer.phar \/usr\/local\/bin\/composer\r\n\r\n#\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d\r\ncomposer --version\r\n\r\n#\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8868\u793a\u306b\u306a\u308c\u3070OK\r\n#Composer version 2.3.3 2022-04-01 22:15:35\r\n\r\n#\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\nyum --enablerepo=emi,remi-php74 install -y php-xml php-gd php-mbstring php-zip\r\n\r\n#phpSpreadsheet\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\ncomposer require phpoffice\/phpspreadsheet<\/pre>\n<p>&nbsp;<\/p>\n<h2>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;?php\r\nrequire 'vendor\/autoload.php';\r\nuse PhpOffice\\PhpSpreadsheet\\Spreadsheet;\r\nuse PhpOffice\\PhpSpreadsheet\\Reader\\Xls as XlsReader;\r\nuse PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx as Reader;\r\nuse PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx;\r\nuse PhpOffice\\PhpSpreadsheet\\Style\\NumberFormat;\r\nuse PhpOffice\\PhpSpreadsheet\\Style\\Border;\r\nuse PhpOffice\\PhpSpreadsheet\\Style\\Alignment;\r\nuse PhpOffice\\PhpSpreadsheet\\Worksheet\\Worksheet;\r\n\r\n\/\/\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u4f5c\u6210\r\n$spreadsheet = new Spreadsheet();\r\n\r\n\/\/\u30b7\u30fc\u30c8\u4f5c\u6210\r\n$spreadsheet-&gt;getActiveSheet('sheet1')-&gt;UnFreezePane();\r\n$sheet = $spreadsheet-&gt;getActiveSheet();\r\n$sheet-&gt;setTitle(\"\u30b7\u30fc\u30c8\u540d\");\r\n\r\n\/\/\u30bf\u30a4\u30c8\u30eb\u3092\u8a2d\u5b9a\r\n$sheet-&gt;setCellValue('A1', '\u540d\u524d');\r\n$sheet-&gt;setCellValue('B1', '\u5e74\u9f62');\r\n\r\n\/\/\u5024\u3092\u8a2d\u5b9a\r\n$data = array(\r\n    0 =&gt; array('\u5c71\u7530', 20,),\r\n    1 =&gt; array('\u9234\u6728', 30,),\r\n    2 =&gt; array('\u4f50\u85e4', 40,),\r\n    3 =&gt; array('\u7530\u4e2d', 50,),\r\n    4 =&gt; array('\u85e4\u4e95', 60,),\r\n);\r\n$sheet-&gt;fromArray($data, NULL, 'A2', true);\r\n\r\n\/\/\u30d0\u30c3\u30d5\u30a1\u3092\u30af\u30ea\u30a2\r\nob_end_clean();\r\n\r\n\/\/\u30d5\u30a1\u30a4\u30eb\u540d\r\n$fileName = \"test.xlsx\";\r\n\r\n\/\/\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\r\nheader('Content-Type: application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet');\r\nheader('Content-Disposition: attachment;filename=\"'.$fileName.'\"');\r\nheader('Cache-Control: max-age=0');\r\nheader('Cache-Control: max-age=1');\r\nheader('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\r\nheader('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');\r\nheader('Cache-Control: cache, must-revalidate');\r\nheader('Pragma: public');\r\n\r\n$writer = new Xlsx($spreadsheet);\r\n$writer-&gt;save('php:\/\/output');\r\n\r\nexit();\r\n\r\n?&gt;<\/pre>\n<p>&nbsp;<\/p>\n<h2>\u6240\u611f<\/h2>\n<p>\u3061\u3087\u3063\u3068\u3057\u305f\u30a8\u30af\u30bb\u30eb\u4f5c\u6210\u306a\u3089\u7c21\u5358\u306b\u3067\u304d\u305d\u3046\u3002\u3042\u307e\u308a\u51dd\u3063\u305f\u3053\u3068\u306f\u3057\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u5341\u5206\u4f7f\u3048\u308b\u304b\u3068\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u53c2\u8003\u30b5\u30a4\u30c8<\/h2>\n<p><a href=\"https:\/\/wiblok.com\/blog\/spreadsheet\/\" target=\"_blank\" rel=\"noopener\">https:\/\/wiblok.com\/blog\/spreadsheet\/<\/a><\/p>\n<p><a href=\"https:\/\/www.logw.jp\/cloudserver\/9832.html\" target=\"_blank\" rel=\"noopener\">https:\/\/www.logw.jp\/cloudserver\/9832.html<\/a><\/p>\n<p><a href=\"https:\/\/blitzgate.co.jp\/blog\/1636\/\" target=\"_blank\" rel=\"noopener\">https:\/\/blitzgate.co.jp\/blog\/1636\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u3067\u30a8\u30af\u30bb\u30eb\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3055\u305b\u305f\u3044\u3002\u4ee5\u524d\u306fPHPExcel\u3092\u5229\u7528\u3057\u3066\u3044\u305f\u304c\u73fe\u5728 ... <\/p>\n","protected":false},"author":1,"featured_media":6972,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[100,112],"class_list":["post-3543","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-library","tag-excel"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"PHP\u3067\u30a8\u30af\u30bb\u30eb\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3055\u305b\u305f\u3044\u3002\u4ee5\u524d\u306fPHPExcel\u3092\u5229\u7528\u3057\u3066\u3044\u305f\u304c\u73fe\u5728\u306f\u975e\u63a8\u5968\u3089\u3057\u304f\u5f8c\u7d99\u306ePhpSpreadsheet\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u306e\u304c\u826f\u3044\u3068\u306e\u3053\u3068\u3002\u4ee5\u4e0b\u306b\u5c0e\u5165\u65b9\u6cd5\u3068\u4f7f\u7528\u65b9\u6cd5\u3092\u30e1\u30e2\u3002\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"taitan\"\/>\n\t<meta name=\"keywords\" content=\"\u30e9\u30a4\u30d6\u30e9\u30ea,excel\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/taitan916.info\/blog\/archives\/3543\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u52c9\u5f37\u3057\u305f\u3053\u3068\u306e\u30e1\u30e2\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"PHP\u3067Excel\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5(PhpSpreadsheet) | \u52c9\u5f37\u3057\u305f\u3053\u3068\u306e\u30e1\u30e2\" \/>\n\t\t<meta property=\"og:description\" content=\"PHP\u3067\u30a8\u30af\u30bb\u30eb\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3055\u305b\u305f\u3044\u3002\u4ee5\u524d\u306fPHPExcel\u3092\u5229\u7528\u3057\u3066\u3044\u305f\u304c\u73fe\u5728\u306f\u975e\u63a8\u5968\u3089\u3057\u304f\u5f8c\u7d99\u306ePhpSpreadsheet\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u306e\u304c\u826f\u3044\u3068\u306e\u3053\u3068\u3002\u4ee5\u4e0b\u306b\u5c0e\u5165\u65b9\u6cd5\u3068\u4f7f\u7528\u65b9\u6cd5\u3092\u30e1\u30e2\u3002\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/taitan916.info\/blog\/archives\/3543\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2025\/06\/excel.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2025\/06\/excel.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"240\" \/>\n\t\t<meta property=\"og:image:height\" content=\"240\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-04-06T04:21:57+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-06-21T04:15:00+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"PHP\u3067Excel\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5(PhpSpreadsheet) | \u52c9\u5f37\u3057\u305f\u3053\u3068\u306e\u30e1\u30e2\" \/>\n\t\t<meta name=\"twitter:description\" content=\"PHP\u3067\u30a8\u30af\u30bb\u30eb\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3055\u305b\u305f\u3044\u3002\u4ee5\u524d\u306fPHPExcel\u3092\u5229\u7528\u3057\u3066\u3044\u305f\u304c\u73fe\u5728\u306f\u975e\u63a8\u5968\u3089\u3057\u304f\u5f8c\u7d99\u306ePhpSpreadsheet\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u306e\u304c\u826f\u3044\u3068\u306e\u3053\u3068\u3002\u4ee5\u4e0b\u306b\u5c0e\u5165\u65b9\u6cd5\u3068\u4f7f\u7528\u65b9\u6cd5\u3092\u30e1\u30e2\u3002\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2025\/06\/excel.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/3543#article\",\"name\":\"PHP\\u3067Excel\\u30b7\\u30fc\\u30c8\\u3092\\u51fa\\u529b\\u3059\\u308b\\u65b9\\u6cd5(PhpSpreadsheet) | \\u52c9\\u5f37\\u3057\\u305f\\u3053\\u3068\\u306e\\u30e1\\u30e2\",\"headline\":\"PHP\\u3067Excel\\u30b7\\u30fc\\u30c8\\u3092\\u51fa\\u529b\\u3059\\u308b\\u65b9\\u6cd5(PhpSpreadsheet)\",\"author\":{\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/author\\\/taitan916#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/excel.png\",\"width\":240,\"height\":240},\"datePublished\":\"2022-04-06T13:21:57+09:00\",\"dateModified\":\"2025-06-21T13:15:00+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/3543#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/3543#webpage\"},\"articleSection\":\"PHP, \\u30e9\\u30a4\\u30d6\\u30e9\\u30ea, Excel\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/3543#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\\/\\\/taitan916.info\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/category\\\/php#listItem\",\"name\":\"PHP\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/category\\\/php#listItem\",\"position\":2,\"name\":\"PHP\",\"item\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/category\\\/php\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/3543#listItem\",\"name\":\"PHP\\u3067Excel\\u30b7\\u30fc\\u30c8\\u3092\\u51fa\\u529b\\u3059\\u308b\\u65b9\\u6cd5(PhpSpreadsheet)\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/3543#listItem\",\"position\":3,\"name\":\"PHP\\u3067Excel\\u30b7\\u30fc\\u30c8\\u3092\\u51fa\\u529b\\u3059\\u308b\\u65b9\\u6cd5(PhpSpreadsheet)\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/category\\\/php#listItem\",\"name\":\"PHP\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/#person\",\"name\":\"taitan\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/author\\\/taitan916#author\",\"url\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/author\\\/taitan916\",\"name\":\"taitan\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/3543#webpage\",\"url\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/3543\",\"name\":\"PHP\\u3067Excel\\u30b7\\u30fc\\u30c8\\u3092\\u51fa\\u529b\\u3059\\u308b\\u65b9\\u6cd5(PhpSpreadsheet) | \\u52c9\\u5f37\\u3057\\u305f\\u3053\\u3068\\u306e\\u30e1\\u30e2\",\"description\":\"PHP\\u3067\\u30a8\\u30af\\u30bb\\u30eb\\u30b7\\u30fc\\u30c8\\u3092\\u51fa\\u529b\\u3055\\u305b\\u305f\\u3044\\u3002\\u4ee5\\u524d\\u306fPHPExcel\\u3092\\u5229\\u7528\\u3057\\u3066\\u3044\\u305f\\u304c\\u73fe\\u5728\\u306f\\u975e\\u63a8\\u5968\\u3089\\u3057\\u304f\\u5f8c\\u7d99\\u306ePhpSpreadsheet\\u3068\\u3044\\u3046\\u30e9\\u30a4\\u30d6\\u30e9\\u30ea\\u3092\\u4f7f\\u3046\\u306e\\u304c\\u826f\\u3044\\u3068\\u306e\\u3053\\u3068\\u3002\\u4ee5\\u4e0b\\u306b\\u5c0e\\u5165\\u65b9\\u6cd5\\u3068\\u4f7f\\u7528\\u65b9\\u6cd5\\u3092\\u30e1\\u30e2\\u3002\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/3543#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/author\\\/taitan916#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/author\\\/taitan916#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/excel.png\",\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/3543\\\/#mainImage\",\"width\":240,\"height\":240},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/archives\\\/3543#mainImage\"},\"datePublished\":\"2022-04-06T13:21:57+09:00\",\"dateModified\":\"2025-06-21T13:15:00+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/\",\"name\":\"\\u52c9\\u5f37\\u3057\\u305f\\u3053\\u3068\\u306e\\u30e1\\u30e2\",\"description\":\"Web\\u30a8\\u30f3\\u30b8\\u30cb\\u30a2 \\\/ \\u30d7\\u30ed\\u30b0\\u30e9\\u30de\\u304c\\u52c9\\u5f37\\u3057\\u305f\\u3053\\u3068\\u306e\\u30e1\\u30e2\\u3002\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/taitan916.info\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"PHP\u3067Excel\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5(PhpSpreadsheet) | \u52c9\u5f37\u3057\u305f\u3053\u3068\u306e\u30e1\u30e2","description":"PHP\u3067\u30a8\u30af\u30bb\u30eb\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3055\u305b\u305f\u3044\u3002\u4ee5\u524d\u306fPHPExcel\u3092\u5229\u7528\u3057\u3066\u3044\u305f\u304c\u73fe\u5728\u306f\u975e\u63a8\u5968\u3089\u3057\u304f\u5f8c\u7d99\u306ePhpSpreadsheet\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u306e\u304c\u826f\u3044\u3068\u306e\u3053\u3068\u3002\u4ee5\u4e0b\u306b\u5c0e\u5165\u65b9\u6cd5\u3068\u4f7f\u7528\u65b9\u6cd5\u3092\u30e1\u30e2\u3002","canonical_url":"https:\/\/taitan916.info\/blog\/archives\/3543","robots":"max-image-preview:large","keywords":"\u30e9\u30a4\u30d6\u30e9\u30ea,excel","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/taitan916.info\/blog\/archives\/3543#article","name":"PHP\u3067Excel\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5(PhpSpreadsheet) | \u52c9\u5f37\u3057\u305f\u3053\u3068\u306e\u30e1\u30e2","headline":"PHP\u3067Excel\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5(PhpSpreadsheet)","author":{"@id":"https:\/\/taitan916.info\/blog\/archives\/author\/taitan916#author"},"publisher":{"@id":"https:\/\/taitan916.info\/blog\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2025\/06\/excel.png","width":240,"height":240},"datePublished":"2022-04-06T13:21:57+09:00","dateModified":"2025-06-21T13:15:00+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/taitan916.info\/blog\/archives\/3543#webpage"},"isPartOf":{"@id":"https:\/\/taitan916.info\/blog\/archives\/3543#webpage"},"articleSection":"PHP, \u30e9\u30a4\u30d6\u30e9\u30ea, Excel"},{"@type":"BreadcrumbList","@id":"https:\/\/taitan916.info\/blog\/archives\/3543#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/taitan916.info\/blog#listItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/taitan916.info\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/taitan916.info\/blog\/archives\/category\/php#listItem","name":"PHP"}},{"@type":"ListItem","@id":"https:\/\/taitan916.info\/blog\/archives\/category\/php#listItem","position":2,"name":"PHP","item":"https:\/\/taitan916.info\/blog\/archives\/category\/php","nextItem":{"@type":"ListItem","@id":"https:\/\/taitan916.info\/blog\/archives\/3543#listItem","name":"PHP\u3067Excel\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5(PhpSpreadsheet)"},"previousItem":{"@type":"ListItem","@id":"https:\/\/taitan916.info\/blog#listItem","name":"\u30db\u30fc\u30e0"}},{"@type":"ListItem","@id":"https:\/\/taitan916.info\/blog\/archives\/3543#listItem","position":3,"name":"PHP\u3067Excel\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5(PhpSpreadsheet)","previousItem":{"@type":"ListItem","@id":"https:\/\/taitan916.info\/blog\/archives\/category\/php#listItem","name":"PHP"}}]},{"@type":"Person","@id":"https:\/\/taitan916.info\/blog\/#person","name":"taitan"},{"@type":"Person","@id":"https:\/\/taitan916.info\/blog\/archives\/author\/taitan916#author","url":"https:\/\/taitan916.info\/blog\/archives\/author\/taitan916","name":"taitan"},{"@type":"WebPage","@id":"https:\/\/taitan916.info\/blog\/archives\/3543#webpage","url":"https:\/\/taitan916.info\/blog\/archives\/3543","name":"PHP\u3067Excel\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5(PhpSpreadsheet) | \u52c9\u5f37\u3057\u305f\u3053\u3068\u306e\u30e1\u30e2","description":"PHP\u3067\u30a8\u30af\u30bb\u30eb\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3055\u305b\u305f\u3044\u3002\u4ee5\u524d\u306fPHPExcel\u3092\u5229\u7528\u3057\u3066\u3044\u305f\u304c\u73fe\u5728\u306f\u975e\u63a8\u5968\u3089\u3057\u304f\u5f8c\u7d99\u306ePhpSpreadsheet\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u306e\u304c\u826f\u3044\u3068\u306e\u3053\u3068\u3002\u4ee5\u4e0b\u306b\u5c0e\u5165\u65b9\u6cd5\u3068\u4f7f\u7528\u65b9\u6cd5\u3092\u30e1\u30e2\u3002","inLanguage":"ja","isPartOf":{"@id":"https:\/\/taitan916.info\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/taitan916.info\/blog\/archives\/3543#breadcrumblist"},"author":{"@id":"https:\/\/taitan916.info\/blog\/archives\/author\/taitan916#author"},"creator":{"@id":"https:\/\/taitan916.info\/blog\/archives\/author\/taitan916#author"},"image":{"@type":"ImageObject","url":"https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2025\/06\/excel.png","@id":"https:\/\/taitan916.info\/blog\/archives\/3543\/#mainImage","width":240,"height":240},"primaryImageOfPage":{"@id":"https:\/\/taitan916.info\/blog\/archives\/3543#mainImage"},"datePublished":"2022-04-06T13:21:57+09:00","dateModified":"2025-06-21T13:15:00+09:00"},{"@type":"WebSite","@id":"https:\/\/taitan916.info\/blog\/#website","url":"https:\/\/taitan916.info\/blog\/","name":"\u52c9\u5f37\u3057\u305f\u3053\u3068\u306e\u30e1\u30e2","description":"Web\u30a8\u30f3\u30b8\u30cb\u30a2 \/ \u30d7\u30ed\u30b0\u30e9\u30de\u304c\u52c9\u5f37\u3057\u305f\u3053\u3068\u306e\u30e1\u30e2\u3002","inLanguage":"ja","publisher":{"@id":"https:\/\/taitan916.info\/blog\/#person"}}]},"og:locale":"ja_JP","og:site_name":"\u52c9\u5f37\u3057\u305f\u3053\u3068\u306e\u30e1\u30e2","og:type":"article","og:title":"PHP\u3067Excel\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5(PhpSpreadsheet) | \u52c9\u5f37\u3057\u305f\u3053\u3068\u306e\u30e1\u30e2","og:description":"PHP\u3067\u30a8\u30af\u30bb\u30eb\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3055\u305b\u305f\u3044\u3002\u4ee5\u524d\u306fPHPExcel\u3092\u5229\u7528\u3057\u3066\u3044\u305f\u304c\u73fe\u5728\u306f\u975e\u63a8\u5968\u3089\u3057\u304f\u5f8c\u7d99\u306ePhpSpreadsheet\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u306e\u304c\u826f\u3044\u3068\u306e\u3053\u3068\u3002\u4ee5\u4e0b\u306b\u5c0e\u5165\u65b9\u6cd5\u3068\u4f7f\u7528\u65b9\u6cd5\u3092\u30e1\u30e2\u3002","og:url":"https:\/\/taitan916.info\/blog\/archives\/3543","og:image":"https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2025\/06\/excel.png","og:image:secure_url":"https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2025\/06\/excel.png","og:image:width":240,"og:image:height":240,"article:published_time":"2022-04-06T04:21:57+00:00","article:modified_time":"2025-06-21T04:15:00+00:00","twitter:card":"summary","twitter:title":"PHP\u3067Excel\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5(PhpSpreadsheet) | \u52c9\u5f37\u3057\u305f\u3053\u3068\u306e\u30e1\u30e2","twitter:description":"PHP\u3067\u30a8\u30af\u30bb\u30eb\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3055\u305b\u305f\u3044\u3002\u4ee5\u524d\u306fPHPExcel\u3092\u5229\u7528\u3057\u3066\u3044\u305f\u304c\u73fe\u5728\u306f\u975e\u63a8\u5968\u3089\u3057\u304f\u5f8c\u7d99\u306ePhpSpreadsheet\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u306e\u304c\u826f\u3044\u3068\u306e\u3053\u3068\u3002\u4ee5\u4e0b\u306b\u5c0e\u5165\u65b9\u6cd5\u3068\u4f7f\u7528\u65b9\u6cd5\u3092\u30e1\u30e2\u3002","twitter:image":"https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2025\/06\/excel.png"},"aioseo_meta_data":{"post_id":"3543","title":null,"description":"PHP\u3067\u30a8\u30af\u30bb\u30eb\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3055\u305b\u305f\u3044\u3002\u4ee5\u524d\u306fPHPExcel\u3092\u5229\u7528\u3057\u3066\u3044\u305f\u304c\u73fe\u5728\u306f\u975e\u63a8\u5968\u3089\u3057\u304f\u5f8c\u7d99\u306ePhpSpreadsheet\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u306e\u304c\u826f\u3044\u3068\u306e\u3053\u3068\u3002\u4ee5\u4e0b\u306b\u5c0e\u5165\u65b9\u6cd5\u3068\u4f7f\u7528\u65b9\u6cd5\u3092\u30e1\u30e2\u3002","keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":{"id":"#aioseo-article-659920988b9ec","slug":"article","graphName":"Article","label":"\u8a18\u4e8b","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-04-06 03:58:53","updated":"2025-12-18 07:22:29","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/taitan916.info\/blog\" title=\"\u30db\u30fc\u30e0\">\u30db\u30fc\u30e0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/taitan916.info\/blog\/archives\/category\/php\" title=\"PHP\">PHP<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPHP\u3067Excel\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5(PhpSpreadsheet)\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\u30db\u30fc\u30e0","link":"https:\/\/taitan916.info\/blog"},{"label":"PHP","link":"https:\/\/taitan916.info\/blog\/archives\/category\/php"},{"label":"PHP\u3067Excel\u30b7\u30fc\u30c8\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5(PhpSpreadsheet)","link":"https:\/\/taitan916.info\/blog\/archives\/3543"}],"_links":{"self":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/3543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/comments?post=3543"}],"version-history":[{"count":1,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/3543\/revisions"}],"predecessor-version":[{"id":5468,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/3543\/revisions\/5468"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media\/6972"}],"wp:attachment":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media?parent=3543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/categories?post=3543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/tags?post=3543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}