我正在尝试使用zendframework/zend-soap库在 PHP 中编写一个 SOAP 服务器。这是我的目录结构:|- app/ |- mySoapService.php|- composer.json|- composer.lock|- vendor/这是的内容composer.json:{ "name": "my_soap_service", "description": "This package is implementing a SOAP service.", "type": "project", "require": { "zendframework/zend-soap": "^2.8" }, "require-dev": { }}我在终端中输入了以下命令:zeinab: ~/my_soap_server$ composer installPHP Warning: Module 'soap' already loaded in Unknown on line 0PHP Warning: Module 'soap' already loaded in Unknown on line 0Loading composer repositories with package informationUpdating dependencies (including require-dev)Package operations: 10 installs, 0 updates, 0 removals - Installing psr/container (1.0.0): Loading from cache - Installing container-interop/container-interop (1.2.0): Loading from cache - Installing zendframework/zend-stdlib (3.2.1): Loading from cache - Installing zendframework/zend-validator (2.12.2): Downloading (100%) - Installing zendframework/zend-escaper (2.6.1): Downloading (100%) - Installing zendframework/zend-uri (2.7.1): Downloading (100%) - Installing zendframework/zend-eventmanager (3.2.1): Loading from cache - Installing zendframework/zend-code (3.4.1): Downloading (100%) - Installing zendframework/zend-server (2.8.1): Downloading (100%) - Installing zendframework/zend-soap (2.8.0): Downloading (100%) zendframework/zend-validator suggests installing psr/http-message (psr/http-message, required when validating PSR-7 UploadedFileInterface instances via the Upload and UploadFile validators)
1 回答
婷婷同学_
TA贡献1844条经验 获得超8个赞
您似乎忘记添加作曲家的自动加载功能。这对于告诉 PHP 在哪里可以找到您正在实例化的类是必要的。查看Composer 的文档以获取有关它的更多信息。
include __DIR__ . '/PATH/TO/VENDOR/FOLDER/autoload.php';在文件开头添加。
- 1 回答
- 0 关注
- 128 浏览
添加回答
举报
0/150
提交
取消
