承接 szeidler/revive-xmlrpc 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

szeidler/revive-xmlrpc

最新稳定版本:v2.5.6

Composer 安装命令:

composer require szeidler/revive-xmlrpc

包简介

Fork of https://github.com/Artistan/Revive-XmlRpc

README 文档

README

Remote procedure calls - RPC - is a basic API that has existed on Revive since it was OpenX Source. This is a basic update to that system and extracted into a package which can be used in virtually any Php Project to access your Revive server or manage multiple Revive servers. The response data is not exactly pretty for Ads Display, but hopefully I can come up with a version 3 that format the data into a more friendly format.

Revive AdServer XML API

Extracted into a package and updated to use packages rather than pear

Requires

  • php-xml

Uses

Setup

Composer

 "require": { "szeidler/revive-xmlrpc": "^2" },

Using the API

phpdoc documentation

API version 2 XML

these examples were tested in Laravel 5.6 Commands

Configuration

Loads definitions in this order Each step will override/replace the previous step

  1. loads /Assets/Config/revive-xmlrpc.php (defaults)
  2. laravel style configs (if function config exists)
  3. constructor array settings (first param can be an array)
  4. constructor individual settings
Laravel config/env
php artisan vendor:publish --provider=artistan/revive-xmlrpc

you can edit the config/revive-xmlrpc.php file add these env variables to or .env files

RVRPC_HOST=ads.me.com RVRPC_BASEPATH=/api/v2/xmlrpc/ RVRPC_USERNAME=admin RVRPC_PASSWORD=~test~ RVRPC_PORT=0 RVRPC_SSL=1 RVRPC_TIMEOUT=15
use Artistan\ReviveXmlRpc\OpenAdsV2ApiXmlRpc; $rpc = new OpenAdsV2ApiXmlRpc(); $list = $rpc->getAgencyList();
Custom config initialization

uses ./Assets/Config/revive-xmlrpc.php for config if you do not provide it to the class.

use Artistan\ReviveXmlRpc\OpenAdsV2ApiXmlRpc; $config = [ 'host'=>'ads.me.com', 'basepath'=>'/www/api/v2/xmlrpc/', 'username'=>'admin', 'password'=>'~test~', 'port'=>0, 'ssl'=>true, 'timeout'=>15 ] $rpc = new OpenAdsV2ApiXmlRpc($config); $list = $rpc->getAgencyList();
Full initialization
use Artistan\ReviveXmlRpc\OpenAdsV2ApiXmlRpc; $rpc = new OpenAdsV2ApiXmlRpc('ads.me.com', '/www/api/v2/xmlrpc/', 'admin', '~test~', 0, true, 15); $list = $rpc->getAgencyList();

API version 1 XML

use Artistan\ReviveXmlRpc\OpenAdsV1ApiXmlRpc; $rpc = new OpenAdsV1ApiXmlRpc('ads.me.com', '/www/api/v1/xmlrpc/', 'admin', '~test~', 0, true, 15); $list = $rpc->getAgencyList();

Ad Display Retrieval XML

 $rpc = new OpenAdsDisplayXmlRpc('ads.me.com', '/www/delivery/axmlrpc.php', 443, true, 15); $rpc->setRemoteInfo('remote_addr', 'chuck-dev'); $list = $rpc->view( /* string zone */ 'zone:1', /* int campaignid */ 0, /* string target */ '', /* string source */ '', /* 0|1 withText */ 0, /* array contect */ [], /* strubg charset */ '' ); var_dump(json_decode(json_encode($list),true));

Documentation updates

PHP-Markdown-Documentation-Generator

./vendor/bin/phpdoc-md generate --ignore=test,examples src > api.md

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固