mszewcz/php-json-rpc
Composer 安装命令:
composer require mszewcz/php-json-rpc
包简介
JSON RPC 2.0 client and server implementation for PHP 7.1+
README 文档
README
PHP 7.1+ implementation of JSON RPC 2.0. Client and server libraries can handle regular requests, notifications. Batch requests are supported. Server supports namespaces and self-description (automatically provides input and output schema for each method in each namespace - please refer to Wiki). Client is able to send requests using stream context, cURL extension or by user defined transport class.
Contents
What is JSON RPC?
JSON RPC is a simple and light weight communication protocol that allows clients and servers talk to each other. Version 2.0, which is implemented by this library, is described here. Please take a while to read this, to understand request and response formats as well as some server-regarded rules.
Installation
If you use Composer to manage the dependencies simply add a dependency on mszewcz/php-json-rpc to your project's composer.json file. Here is a minimal example of a composer.json:
{
"require": {
"mszewcz/php-json-rpc": ">=1.0"
}
}
You can also clone or download this respository.
php-json-rpc meets PSR-4 autoloading standards. If using the Composer please include its autoloader file:
require_once 'vendor/autoload.php';
If you cloned or downloaded this repository, you will have to code your own PSR-4 style autoloader implementation.
Usage
Please refer to project Wiki:
You may also want to check examples directory.
Contributing
Contributions are welcome. Please send your contributions through GitHub pull requests
Pull requests for bug fixes must be based on latest stable release from the master branch whereas pull requests for new features must be based on the developer branch.
Due to time constraints, I am not always able to respond as quickly as I would like. If you feel you're waiting too long for merging your pull request please remind me here.
Coding standards
I follow PSR-2 coding style and PSR-4 autoloading standards. Be sure you're also following them before sending us your pull request.
License
php-json-rpc is licensed under the MIT License - see the LICENSE file for details.
mszewcz/php-json-rpc 适用场景与选型建议
mszewcz/php-json-rpc 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 46 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 11 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「rpc」 「php」 「json」 「http」 「client」 「server」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mszewcz/php-json-rpc 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mszewcz/php-json-rpc 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mszewcz/php-json-rpc 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Microservice RPC through message queues.
Kinikit - PHP Application development framework MVC component
ext-json wrapper with sane defaults
A package to cast json fields, each sub-keys is castable
swagger-php - Generate interactive documentation for your RESTful API using phpdoc annotations
Get wordpress nav menus and share the main site menus with the child sites.
统计信息
- 总下载量: 46
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-13