joel-depiltech/ripcord
Composer 安装命令:
composer require joel-depiltech/ripcord
包简介
Ripcord is a very easy to use XML-RPC library for PHP.
README 文档
README
Readme Ripcord: Easy XML-RPC Client and Server for PHP 5
=============================================================================
Ripcord is a very easy to use XML-RPC library for PHP. It provides client,
server and auto documentation features for XML-RPC but also SimpleRPC and
simplified SOAP (1.1). It uses PHP's xmlrpc library and it needs at least PHP 5.
To create a simple xmlrpc client do something like this:
<?php
require_once('ripcord.php');
$client = ripcord::xmlrpcClient( 'http://www.moviemeter.nl/ws' );
$score = $client->film->getScore( 'e3dee9d19a8c3af7c92f9067d2945b59', 500 );
?>
See the RipcordClientManual
<http://code.google.com/p/ripcord/wiki/RipcordClientManual> for more information.
To create a simple xmlrpc server do something like this:
<?php
require_once('ripcord.php');
class myTest {
public function Foo() {
return 'Bar';
}
}
$test = new MyTest();
$server = ripcord::server( $test );
$server->run();
?>
See the RipcordServerManual
<http://code.google.com/p/ripcord/wiki/RipcordServerManual> for more information.
Extending Ripcord
=================
Ripcord is also very simple to extend. All functionality can be changed
through dependency injection. The client by default uses the PHP Streams API
to connect to a server, but can simply be reconfigured to use CURL. You
can provide your own configuration or even a completely new transport method
by simply injecting a new transport object into the client.
Any server created with Ripcord is auto documenting by default. Simply browse
to the URL of your RPC server and you will see a list of all methods including
any inline documentation for that method, if you use docblock style comments, e.g.:
/**
* This will show up with your method description.
*/
function yourMethod() {
}
The auto documentor is again easily extended to use your own styles or extensions
and you can simply inject a completely different documentor object into the server
if you want. Or skip it altogether.
Documentation
=============
The full API documentation is included in the docs/ directory.
joel-depiltech/ripcord 适用场景与选型建议
joel-depiltech/ripcord 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.68k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2016 年 11 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 joel-depiltech/ripcord 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 joel-depiltech/ripcord 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 4.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-18