php-soap-backports/engine 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

php-soap-backports/engine

Composer 安装命令:

composer require php-soap-backports/engine

包简介

SOAP engine design back-porting to PHP 7.1

README 文档

README

This package contains the contracts and models that allow you to create a customizable SOAP engine compatible for php 7.1. The design looks like this:

Engine

  • Driver: A driver is a combination of an encoder + decoder + metadata that can work together in order to process SOAP requests.
    • Encoder: Can encode mixed data into a valid SOAP Request.
    • Decoder: Can decode a SOAP Response into a mixed data result.
    • Metadata: Processes the WSDL and returns a collection of available types and methods.
  • Transport: Sends the HTTP SOAP Request and receives the HTTP SOAP Response.

Every component above can be used seperately in order to create your own customized SOAP Engine.

Want to help out? 💚

Installation

composer install php-soap-backports/engine

Engines

This package provides engines that can be used in a generic way:

SimpleEngine

The SimpleEngine is a wrapper around a previous defined Driver and a Transport implementation.

use Soap\Engine\SimpleEngine;

$engine = new SimpleEngine($driver,$transport);

LazyEngine

You don't want to be loading WSDL files or SOAP services if you don't need to. By wrapping an engine in a lazy engine, you can prevent any WSDL loading from happening before actually requesting a resource.

use Soap\Engine\SimpleEngine;
use Soap\Engine\LazyEngine;

$engine = new LazyEngine(function () {
    return new SimpleEngine($driver, $transport);
});

List of compatible components:

  • ext-soap-engine: An engine based on PHP's ext-soap.
    • ExtSoapEncoder: Uses PHP's SoapClient in order to encode a mixed request body into a SOAP request.
    • ExtSoapDecoder: Uses PHP's SoapClient in order to decode a SOAP Response into mixed data.
    • ExtSoapMetadata: Parses the methods and types from PHP's SoapClient into something more usable.
    • ExtSoapDriver: Combines the ext-soap encoder, decoder and metadata tools into a usable ext-soap preset.
    • ExtSoapClientTransport: Uses PHP's SoapClient to handle SOAP requests.
    • ExtSoapServerTransport: Uses PHP's SoapServer to handle SOAP requests.
    • TraceableTransport: Can be used to decorate another transport and keeps track of the last request and response.

php-soap-backports/engine 适用场景与选型建议

php-soap-backports/engine 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.89k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2022 年 12 月 23 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 php-soap-backports/engine 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 php-soap-backports/engine 我们能提供哪些服务?
定制开发 / 二次开发

基于 php-soap-backports/engine 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 2.89k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 7
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-23