定制 p16/paypal-rest-api-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

p16/paypal-rest-api-client

Composer 安装命令:

composer require p16/paypal-rest-api-client

包简介

PHP Library for accessing PayPal Rest API.

README 文档

README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

This library wants to be a PHP client for the PayPal REST API.

There is an official SDK and you can find it here.

I tried it and I tried to contribute on it (the tests were calling the actual paypal sandbox). But I needed a simpler and OOP library, and I did not have the time to contribute as much as I think is needed on the official one, therefore I did this one.

I'm working on a first stable realease that should be out before August 15th.

Feedback, PR and contribution are welcome.

Features

At the moment the only PayPal REST API calls implemented are:

Installation

Run

composer require p16/paypal-rest-api-client:1.0.0

or edit your composer.json as follow

...
    "require": {
        "p16/paypal-rest-api-client": "1.0.0"
        ...
    }
...

and then run

composer update p16/paypal-rest-api-client

Running tests

Donwload the repository

Run

composer install

From the root folder run

./vendor/bin/phpunit -c .

Documentation

Using the library

PayPal Json schema validation

A Json Schema validator is used to validate a call request body. You can find all the available schema definition here.

TO-DO for release 1.1.0

  • Move PayPalJsonSchemaValidator into a standalone repo (?)

  • Make the builder aware of the PayPalJsonSchemaValidator, so that they can validate what they are building when building from/to json

  • Add strict validation to model classes (?)

TO-DO for release 1.2.0

License

Licensed under the MIT license

Read LICENSE for more information

统计信息

  • 总下载量: 68
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-08-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固