ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
~~~ composer require topthink/think-captcha composer require topthink/think-helper composer require topthink/think-image composer require topthink/think-installer composer require topthink/think-migration composer require topthink/think-mongo composer require topthink/think-oracle composer require topthink/think-queue ~~~ ``` - Installing psr/container (1.0.0): Downloading (connecting...) Downloading (100%) - Installing topthink/think-helper (v3.1.4): Downloading (100%) - Installing psr/log (1.1.3): Downloading (100%) - Installing psr/simple-cache (1.0.1): Downloading (100%) - Installing topthink/think-orm (v2.0.33): Downloading (failed) Downloading (100%) - Installing symfony/polyfill-php80 (v1.17.1): Downloading (100%) - Installing symfony/polyfill-php72 (v1.17.0): Downloading (100%) - Installing symfony/polyfill-mbstring (v1.17.1): Downloading (100%) - Installing symfony/var-dumper (v4.4.10): Downloading (100%) - Installing opis/closure (3.5.5): Downloading (100%) - Installing psr/cache (1.0.1): Downloading (100%) - Installing league/flysystem (1.0.69): Downloading (100%) - Installing league/flysystem-cached-adapter (1.0.9): Downloading (100%) - Installing topthink/framework (v6.0.3): Downloading (100%) - Installing topthink/think-trace (v1.3): Downloading (100%) ``` ~~~ composer require phpoffice/common composer require phpoffice/phpword composer require phpoffice/phpexcel composer require phpoffice/phpvisio composer require phpoffice/phpproject ~~~ ``` composer require phpmailer/phpmailer composer require endroid/qr-code composer require qiniu/php-sdk ``` ``` composer remove phpmailer/phpmailer ``` 2. ``` Your requirements could not be resolved to an installable set of packages. Problem 1 - topthink/think-captcha v3.0.3 requires topthink/framework ^6.0.0 -> satisfiable by topthink/framework[6.0.x-dev, v6.0.0, v6.0.0-rc2, v6.0.0-rc3, v6.0.0-rc4, v6.0.0-rc5, v6.0.1, v6.0.2, v6.0.3] but these conflict with your requirements or minimum-stability. - topthink/think-captcha v3.0.2 requires topthink/framework ^6.0.0 -> satisfiable by topthink/framework[6.0.x-dev, v6.0.0, v6.0.0-rc2, v6.0.0-rc3, v6.0.0-rc4, v6.0.0-rc5, v6.0.1, v6.0.2, v6.0.3] but these conflict with your requirements or minimum-stability. - topthink/think-captcha v3.0.1 requires topthink/framework ^6.0.0 -> satisfiable by topthink/framework[6.0.x-dev, v6.0.0, v6.0.0-rc2, v6.0.0-rc3, v6.0.0-rc4, v6.0.0-rc5, v6.0.1, v6.0.2, v6.0.3] but these conflict with your requirements or minimum-stability. - topthink/think-captcha v3.0.0 requires topthink/framework ^6.0.0 -> satisfiable by topthink/framework[6.0.x-dev, v6.0.0, v6.0.0-rc2, v6.0.0-rc3, v6.0.0-rc4, v6.0.0-rc5, v6.0.1, v6.0.2, v6.0.3] but these conflict with your requirements or minimum-stability. - Installation request for topthink/think-captcha ^3.0 -> satisfiable by topthink/think-captcha[v3.0.0, v3.0.1, v3.0.2, v3.0.3]. topthink/think-captcha v3.0.3 需要tp6.0版本才能安装 ``` 3. ``` [Symfony\Component\Process\Exception\RuntimeException] The Process class relies on proc_open, which is not available on your PHP installation. 解决方法:   在php.ini中,找到disable\_functions选项,看看后面是否有proc\_open函数被禁用了,如果有的话,去掉即可. 其实如果php的文档熟悉的话,你应该马上就能知道proc\_open实际上是一个函数,是php用来和shell交互的函数,一般这种可以直接作用于操作系统的函数是非常不安全的,对于这种不安全的函数,总是要做一些措施来进行保护      正如在google上寻找找的答案一样,在php.ini的配置中,找到disable\_functions选项,这个选项就是专门用来禁止某些不安全函数的,尤其在命令行运行时,很可能对操作系统带来安全隐患 disable\_functions = passthru,exec,system,chroot,chgrp,chown,shell\_exec,proc\_open,proc\_get\_status,popen,ini\_alter,ini\_restore ``` 4. ``` ~~~ composer config -l -g //切换到国内源 阿里 composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ composer config -g --unset repos.packagist ~~~ ```