eightpoints/guzzle-wsse-middleware 问题修复 & 功能扩展

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

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

eightpoints/guzzle-wsse-middleware

最新稳定版本:v4.3.0

Composer 安装命令:

composer require eightpoints/guzzle-wsse-middleware

包简介

WSSE Middleware for Guzzle, a PHP HTTP client library and framework for building RESTful web service clients

README 文档

README

This middleware integrates WSSE funtionality into Guzzle, a PHP framework for building RESTful web service clients.

Requirements

Installation

Using composer:

{
    "require": {
        "eightpoints/guzzle-wsse-middleware": "^4.1.1"
    }
}

Usage

<?php 

$wsse = new \EightPoints\Guzzle\WsseAuthMiddleware($username, $password);

# Optional: Set createdAt by a expression (if not, current time will be used automatically)
# http://php.net/manual/en/datetime.formats.relative.php
# Useful if there is a small difference of time between client and server
# DateTime object will be regenerated for every request
$wsse->setCreatedAtTimeExpression('-10 seconds');

$stack = \GuzzleHttp\HandlerStack::create();

// Add the wsse middleware to the handler stack.
$stack->push($wsse->attach());

$client   = new \GuzzleHttp\Client(['handler' => $stack]);
$response = $client->get('http://www.8points.de');

Authors

See also the list of contributors who participated in this project.

License

This middleware is licensed under the MIT License - see the LICENSE file for details

统计信息

  • 总下载量: 2.09M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 31
  • 点击次数: 3
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

  • Stars: 31
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固