1. Go to this page and download the library: Download instaclick/phpolap library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
instaclick / phpolap example snippets
php
ap\Xmla\Connection\Connection;
use phpOlap\Xmla\Connection\Adaptator\SoapAdaptator;
// for Mondrian
$connection = new Connection(
new SoapAdaptator('http://localhost:8080/mondrian/xmla'),
array(
'DataSourceInfo' => 'Provider=Mondrian;DataSource=MondrianFoodMart;'
'CatalogName' => 'FoodMart',
'schemaName' => 'FoodMart'
)
);
// for Microsoft SQL Server Analysis Services
/*
$connection = new Connection(
new SoapAdaptator('http://192.168.1.12/olap/msmdpump.dll', 'julien', 'juju'),
array(
'DataSourceInfo' => null,
'CatalogName' => 'Adventure Works DW 2008R2 SE'
)
);
*/
$cube = $connection->findOneCube(null, array('CUBE_NAME' => 'Sales'));