fillup/walmart-auth-signature-php 问题修复 & 功能扩展

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

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

fillup/walmart-auth-signature-php

Composer 安装命令:

composer require fillup/walmart-auth-signature-php

包简介

PHP library for calculating auth signatures for Walmart APIs

README 文档

README

Walmart uses a signature calculation algorithm for authenticating API calls, it is fairly complicated so this library is intended to make it as easy as calling a function.

Build Status

Build Status Coverage Status

Installation

The easiest way to install this library is using Composer. Simply add the following to your composer.json file:

"fillup/walmart-auth-signature-php": "dev-master"

Or run composer require fillup/walmart-auth-signature-php:dev-master. This assumes you have composer installed and available in your path as composer.

Versioning

This library uses semantic versioning as well as a Git Flow process for development. Usage of dev-master should be safe as the master branch is considered production ready.

Usage

You can either use Walmart\Auth\Signature class in an object form, or by calling static methods on it.

Object interface

If you need to make repeated API calls you can instantiate a Signature object and simply call the getSignature method to get a new signature over and over:

<?php

use Walmart\Auth\Signature as AuthSignature;

$authSignature = new AuthSignature($consumerId, $privateKey, $requestUrl, $requestMethod);
$signatureString = $authSignature->getSignature();

// Make your call

// Get a new signature for a new call
$signatureString = $authSignature->getSignature(null,$newUrl);

Static method interface

Sometimes just calling a static method is easier or more elegant, here you go:

<?php

use Walmart\Auth\Signature as AuthSignature;

$signatureString = AuthSignature::calculateSignature($consumerId, $privateKey, $requestUrl, $requestMethod);

// Make your call

// Get a new signature for a new call
$signatureString = AuthSignature::calculateSignature($consumerId, $privateKey, $requestUrl, $requestMethod);

Contributing

I appreciate issue reports and pull requests, so if you see opportunity for improvement, please let us know and send us a pull request.

License

The MIT License (MIT)

Copyright (c) 2015 Phillip Shipley

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

fillup/walmart-auth-signature-php 适用场景与选型建议

fillup/walmart-auth-signature-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 162.29k 次下载、GitHub Stars 达 6, 最近一次更新时间为 2016 年 05 月 17 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 fillup/walmart-auth-signature-php 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 162.29k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 13
  • 依赖项目数: 8
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-17