PHPackages                             pezsdk/pezsdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. pezsdk/pezsdk

ActiveLibrary[API Development](/categories/api)

pezsdk/pezsdk
=============

A easy-use and wonderful API-SDK development framework for PHP

00PHP

Since Jul 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/PezSDK/PezSDK)[ Packagist](https://packagist.org/packages/pezsdk/pezsdk)[ RSS](/packages/pezsdk-pezsdk/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PezSDK
======

[](#pezsdk)

此项目还在编写中。如果您对此项目有兴趣或者希望帮助我们，请联系2387911242#qq.com(使用@代替#) This project is still under preparation. If you are interested in this project or want to help us, please contact 2387911242#qq.com(Replace # with @)

文档 Documentation
----------------

[](#文档-documentation)

快速开始(中文) Getting Start(English)

什么是PezSDK? What is PezSDK?
--------------------------

[](#什么是pezsdk-what-is-pezsdk)

PezSDK 是一个基于PHP和Composer的快捷且对SDK开发者和基于SDK开发的开发者都非常友好的SDK开发框架

PezSDK is a quick and friendly SDK development framework for SDK developer and software Developer based on PHP and Composer

PezSDK的优势在哪里? What are the advantages of PezSDK?
------------------------------------------------

[](#pezsdk的优势在哪里-what-are-the-advantages-of-pezsdk)

### 高度集成，开箱即用 Highly integrated, out of the box

[](#高度集成开箱即用-highly-integrated-out-of-the-box)

PezSDK中已经集成了HTTP客户端，GET/POST参数提交等等常见模块。你要做的仅仅只是用几句代码描述你的接口。而以后我们还将推出自动化生成接口的程序。

PezSDK has integrated HTTP client, GET/POST parameter assembler and other common modules. All you have to do is describe your API interface in a few lines of code. In the future, we will have a automatic program to let developers automatically generating API interface description file.

### 功能强大，高度自定义Powerful and Customizable

[](#功能强大高度自定义powerful-and-customizable)

得益于PezSDK的插件机制，PezSDK可以满足70%以上对API SDK的制作需求，包括鉴权，自定义头，自定义参数拼装等自定义功能。甚至你可以重写其中大部分模块（如你可以使用TCP而不是HTTP发送你的请求）。而且对于其中的大部分功能，你可以轻松地进行实现。

Thanks to the plugin mechanism of PezSDK, it can meet more than 70% of API SDK production requirements, including authentication, custom header, custom parameter assembly and other custom functions. You can even rewrite most of these modules (for example, you can send your request using TCP instead of HTTP). And for most of these functions, you can easily implement them.

### 简单易用便捷美观 Easyuse and beautiful

[](#简单易用便捷美观-easyuse-and-beautiful)

PezSDK使用了多种方法方便开发者进行调用。首先基于PezSDK的SDK的接入可以使用单点面向接口编程,如

```
Github::withCredential(new TokenCredential("Your credential data"))
  ->getRepository("PezSDK/PezSDK")
  ->send()
```

或者你也可以通过继承类的方式，接入主流框架（目前计划支持ThinkPHP和Laravel一键导入）

Laravel:

```
