{"id":210,"date":"2021-03-03T10:23:35","date_gmt":"2021-03-03T01:23:35","guid":{"rendered":"http:\/\/192.168.0.139:8080\/2021\/03\/03\/composer%e3%82%92%e4%bd%bf%e3%81%84%e3%80%81%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aaphpspreadsheet%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab\/"},"modified":"2021-03-03T10:23:35","modified_gmt":"2021-03-03T01:23:35","slug":"composer%e3%82%92%e4%bd%bf%e3%81%84%e3%80%81%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aaphpspreadsheet%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"http:\/\/192.168.0.139:8080\/2021\/03\/03\/210\/","title":{"rendered":"composer\u3092\u4f7f\u3044\u3001\u30e9\u30a4\u30d6\u30e9\u30ea(PhpSpreadsheet)\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"\n

\u5148\u65e5\u3001PHP\u3068Composer\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

https:\/\/minokamo.tokyo\/2021\/02\/18\/3390\/<\/a>

PHP\u3067\u30a8\u30af\u30bb\u30eb\u3092\u6271\u3048\u308b\u300cPhpSpreadsheet\u300d\u3092\u5229\u7528\u3057\u305f\u3044\u306e\u3067\u3001\u305d\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5c0e\u5165\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

composer require phpoffice\/phpspreadsheet<\/code><\/pre>\n\n\n\n

\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

Your requirements could not be resolved to an installable set of packages.\n\n  Problem 1\n    - Root composer.json requires phpoffice\/phpspreadsheet ^1.16 -> satisfiable by phpoffice\/phpspreadsheet[1.16.0].\n    - phpoffice\/phpspreadsheet 1.16.0 requires ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.\n\nTo enable extensions, verify that they are enabled in your .ini files:\n    - \/etc\/php.ini\n    - \/etc\/php.d\/10-opcache.ini\n    - \/etc\/php.d\/20-bz2.ini\n    - \/etc\/php.d\/20-calendar.ini\n    - \/etc\/php.d\/20-ctype.ini\n    - \/etc\/php.d\/20-curl.ini\n    - \/etc\/php.d\/20-dom.ini\n    - \/etc\/php.d\/20-exif.ini\n    - \/etc\/php.d\/20-fileinfo.ini\n    - \/etc\/php.d\/20-ftp.ini\n    - \/etc\/php.d\/20-gettext.ini\n    - \/etc\/php.d\/20-iconv.ini\n    - \/etc\/php.d\/20-intl.ini\n    - \/etc\/php.d\/20-mbstring.ini\n    - \/etc\/php.d\/20-phar.ini\n    - \/etc\/php.d\/20-posix.ini\n    - \/etc\/php.d\/20-shmop.ini\n    - \/etc\/php.d\/20-simplexml.ini\n    - \/etc\/php.d\/20-sockets.ini\n    - \/etc\/php.d\/20-sysvmsg.ini\n    - \/etc\/php.d\/20-sysvsem.ini\n    - \/etc\/php.d\/20-sysvshm.ini\n    - \/etc\/php.d\/20-tokenizer.ini\n    - \/etc\/php.d\/20-xml.ini\n    - \/etc\/php.d\/20-xmlwriter.ini\n    - \/etc\/php.d\/20-xsl.ini\n    - \/etc\/php.d\/30-xmlreader.ini\n    - \/etc\/php.d\/40-apcu.ini\n    - \/etc\/php.d\/40-zip.ini\nYou can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.\n\nInstallation failed, deleting .\/composer.json.<\/code><\/pre>\n\n\n\n
\"\"\/<\/figure>\n\n\n\n

PHP-GD\u3068\u3044\u3046\u3082\u306e\u304c\u7121\u3044\u307f\u305f\u3044\u3067\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u307e\u3057\u305f\u304c\u65e2\u306b\u3042\u308b\u307f\u305f\u3044\u3067\u3059\u3002gd\u3068gd-devel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

yum install --enablerepo=remi,remi-php80 php80-php-gd\nyum install gd gd-devel<\/code><\/pre>\n\n\n\n

\u5148\u307b\u3069\u3068\u540c\u3058\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002
\u3082\u3057\u304b\u3059\u308b\u3068\u3001\u9055\u3046PHP\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u304b\u3068\u601d\u3044\u3001PHP\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002<\/p>\n\n\n\n

module load php80<\/code><\/pre>\n\n\n\n

\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u304c\u3001\u5148\u307b\u3069\u306e\u5185\u5bb9\u3068\u306f\u9055\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

Your requirements could not be resolved to an installable set of packages.\n\n  Problem 1\n    - Root composer.json requires phpoffice\/phpspreadsheet ^1.16 -> satisfiable by phpoffice\/phpspreadsheet[1.16.0].\n    - phpoffice\/phpspreadsheet 1.16.0 requires ext-zip * -> it is missing from your system. Install or enable PHP's zip extension.\n\nTo enable extensions, verify that they are enabled in your .ini files:\n    - \/etc\/opt\/remi\/php80\/php.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-bz2.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-calendar.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-ctype.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-curl.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-dom.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-exif.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-fileinfo.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-ftp.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-gd.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-gettext.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-iconv.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-intl.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-mbstring.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-mysqlnd.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-pdo.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-phar.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-simplexml.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-sockets.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-sodium.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-sqlite3.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-tokenizer.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-xml.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-xmlwriter.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/20-xsl.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/30-mysqli.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/30-pdo_mysql.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/30-pdo_sqlite.ini\n    - \/etc\/opt\/remi\/php80\/php.d\/30-xmlreader.ini\nYou can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.\n\nInstallation failed, deleting .\/composer.json.<\/code><\/pre>\n\n\n\n
\"\"\/<\/figure>\n\n\n\n

\u30a8\u30e9\u30fc\u5185\u5bb9\u3067\u306fZIP\u304c\u7121\u3044\u307f\u305f\u3044\u3067\u3059\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

yum install --enablerepo=remi,remi-php80 php80-php-zip<\/code><\/pre>\n\n\n\n

\u4eca\u5ea6\u306f\u3046\u307e\u304f\u3044\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

composer\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n

\n