Download the PHP package chenall/phalapi-soap without Composer

On this page you can find all versions of the php package chenall/phalapi-soap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phalapi-soap

SOAP

PhalApi SOAP扩展. 当需要使用SOAP时,需要在配置PHP时,通过参数开启SOAP。

安装

在项目下直接运行以下命令即可完成扩展安装。

配置

需要将以下扩展配置添加到项目配置文件./Config/SOAP.php。

其中,wsdl配置对应SoapServer构造函数的第一个参数,options配置则对应第二个参数,其中的uri须与下面的入口文件路径对应。

SOAP服务端访问入口

SOAP扩展不需要注册DI服务,但需要单独实现访问入口,参考以下实现。

至此,SOAP的服务端已搭建完毕。接下来,客户端便可通过SOAP进行访问了。

SOAP客户端调用

SOAP客户端的使用,需要使用SoapClient类,其使用示例如下所示。

注意,客户端传递的接口参数,最后需要JSON编码后再传递。

(5) SOAP调试脚本

SOAP扩展提供了一个可以发起SOAP访问的脚本,使用示例如下。

(6) 对客户端的影响

当使用SOAP访问接口服务时,服务端可以通过使用SOAP扩展快速搭建Web Services,但对于客户端,如同使用PHPRPC协议一样,也要进行三方面的调整。这里简单说明一下。

首先是客户端调用方式的改变,需要通过SOAP协议进行访问。

其次是对POST参数传递的改变。和前面的PHPRPC协议一样,客户端需要把全部的参数JSON编码后再传递。当POST的数据和GET的数据冲突时,以POST为准。

相应地,当需要传递POST参数时,客户需要这样调整:

若无此POST参数,则可以忽略不传。

和PHPRPC协议一样,客户端接收到的是接口服务直接返回的源数据,不再是序列化后返回的字符串。如前面示例中,返回的是数组类型。


All versions of phalapi-soap with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package chenall/phalapi-soap contains the following files

Loading the files please wait ....