作曲家要求 phpoffice/phpspreadsheet 不起作用
肥皂起泡泡
2023-08-06 10:41:48
最初,我需要一個(gè)庫來幫助我將數(shù)據(jù)上傳到 Excel,找到了這個(gè)庫,然后出現(xiàn)了問題我嘗試安裝Composer require phpoffice/phpspreadsheet 但我有問題Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested PHP extension ext-spltype * is missing from your system. Install or enable PHP's spltype extension.Installation failed, reverting ./composer.json to its original content.我不明白錯(cuò)誤來自哪里,因?yàn)槲业腸omposer.json中有一個(gè)依賴項(xiàng) "ext-spltype": "*"這是我的composer.json{ "type": "project", "license": "proprietary", "require": { "php": "^7.2.5", "ext-ctype": "*", "ext-iconv": "*", "sensio/framework-extra-bundle": "^5.5", "symfony/asset": "5.1.*", "symfony/console": "5.1.*", "symfony/dotenv": "5.1.*", "symfony/expression-language": "5.1.*", "symfony/flex": "^1.3.1", "symfony/form": "5.1.*", "symfony/framework-bundle": "5.1.*", "symfony/http-client": "5.1.*", "symfony/intl": "5.1.*", "symfony/mailer": "5.1.*", "symfony/mime": "5.1.*", "symfony/monolog-bundle": "^3.1", "symfony/notifier": "5.1.*", "symfony/orm-pack": "^1.0", "symfony/process": "5.1.*", "symfony/security-bundle": "5.1.*", "symfony/serializer-pack": "*", "symfony/string": "5.1.*", "symfony/translation": "5.1.*", "symfony/twig-pack": "^1.0", "symfony/validator": "5.1.*", "symfony/web-link": "5.1.*", "symfony/yaml": "5.1.*", "ext-spltype": "*" }, "require-dev": { "symfony/debug-pack": "*", "symfony/maker-bundle": "^1.19", "symfony/profiler-pack": "*", "symfony/test-pack": "*" },我也嘗試安裝 sudo pecl install SPL_Types ,但我有錯(cuò)誤
查看完整描述