xodej/php-olapi

用PHP编写的Jedox OLAP HTTP API包装器

dev-master 2022-02-19 18:46 UTC

This package is auto-updated.

Last update: 2024-09-20 00:36:08 UTC


README

一个用于与Jedox OLAP通信的纯PHP库(使用HTTP API)

此仓库是不稳定的。请更新应用程序时谨慎。一些API/方法可能会中断或更改。如果您使用此库进行专业工作,您应该分叉您开发的版本或参考特定的提交。

安装

需要PHP 7.3+

composer require xodej/php-olapi:dev-master

示例

<?php

require_once __DIR__ . '/vendor/autoload.php';

// import Connection class
use Xodej\Olapi\Connection;

// connection parameters
$host = 'http://127.0.0.1:7777';
$user = 'admin';
$pass = 'admin';

// initialize a connection to Jedox OLAP
$conn = new Connection($host, $user, $pass);

// fetch cube Balance from database Biker
$cube = $conn->getCube('Biker/Balance');

// read and print value to screen
echo $cube->getValue(['Actual', '2015', 'Apr', '10 Best Bike Seller AG', 'Goodwill']);

文档

更多示例请查看 这里

令牌机制

当前不支持API令牌机制。操作期间对服务器上的所有更改都将忽略。

许可

MIT许可证下授权。