PHPackages                             kryptonpay/powerbi-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. kryptonpay/powerbi-sdk

ActiveLibrary[API Development](/categories/api)

kryptonpay/powerbi-sdk
======================

PHP SDK for working with PowerBI

0235PHP

Since Feb 3Pushed 4y agoCompare

[ Source](https://github.com/KryptonPay/PowerBI-SDK-PHP)[ Packagist](https://packagist.org/packages/kryptonpay/powerbi-sdk)[ RSS](/packages/kryptonpay-powerbi-sdk/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PowerBI PHP SDK
===============

[](#powerbi-php-sdk)

[![Build Status](https://camo.githubusercontent.com/7d34c4a8c4250ead2bdd407aa6034a3323451df8678121ab7ea1aa1f3a0df638/68747470733a2f2f7472617669732d63692e6f72672f54616e67656e74536f6c7574696f6e732f506f77657242492d53444b2d5048502e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/TangentSolutions/PowerBI-SDK-PHP)[![Codacy Badge](https://camo.githubusercontent.com/6e008ceace402f2fb22daac555fd5ae7ce5d0d2afc522940165820bcaf469d42/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f436f7665726167652f3864383165323036363731353435376439373935373035346338623162623537)](https://www.codacy.com/app/TangentSolutions/PowerBI-SDK-PHP?utm_source=github.com&utm_medium=referral&utm_content=TangentSolutions/PowerBI-SDK-PHP&utm_campaign=Badge_Coverage)[![Codacy Badge](https://camo.githubusercontent.com/8a78cce3cfa9c2e1bc1bd514a842ceb4cb7e6b823e7a4dab1d6afc8fff4417c2/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3864383165323036363731353435376439373935373035346338623162623537)](https://www.codacy.com/app/TangentSolutions/PowerBI-SDK-PHP?utm_source=github.com&utm_medium=referral&utm_content=TangentSolutions/PowerBI-SDK-PHP&utm_campaign=Badge_Grade)

A SDK which makes it easier to work with the PowerBI REST API.

Installation
------------

[](#installation)

```
composer require tangent-solutions/powerbi-sdk

```

Usage
-----

[](#usage)

You will first have to obtain an authorized access token. See the below example on how to do this with the [League OAuth2 Client](https://github.com/thephpleague/oauth2-client):

```
$provider = new \League\OAuth2\Client\Provider\GenericProvider([
    'clientId'                => '',
    'clientSecret'            => '',
    'urlAuthorize'            => 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',
    'urlAccessToken'          => 'https://login.windows.net//oauth2/token',
    'urlResourceOwnerDetails' => '',
    'scopes'                  => 'openid',
]);

try {
    // Try to get an access token using the resource owner password credentials grant.
    $accessToken = $provider->getAccessToken('password', [
        'username' => '',
        'password' => '',
        'resource' => 'https://analysis.windows.net/powerbi/api'
    ]);

    $token = $accessToken->getToken();
} catch (\League\OAuth2\Client\Provider\Exception\IdentityProviderException $e) {
    // Failed to get the access token
    exit($e->getMessage());
}
```

Once you have the access token you can create the client like this:

```
$client = new \Tngnt\PBI\Client($token);
```

Documentation
-------------

[](#documentation)

[Wiki](https://github.com/TangentSolutions/PowerBI-SDK-PHP/wiki)

[PowerBI API Reference](https://msdn.microsoft.com/en-us/library/mt147898.aspx)

Issues
------

[](#issues)

View or log issues on the [Issues](https://github.com/microsoftgraph/msgraph-sdk-php/issues) tab on the repo.

Copyright and License
---------------------

[](#copyright-and-license)

Copyright (c) Tangent Solutions. All Rights Reserved. Licensed under the MIT [license](LICENSE).

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/facd21c7d1526d3ba78322570aa02a8b0192b83b6c9f4ad857ad8e7bf062dfc8?d=identicon)[KryptonPay](/maintainers/KryptonPay)

---

Top Contributors

[![lhidalgo42](https://avatars.githubusercontent.com/u/3030497?v=4)](https://github.com/lhidalgo42 "lhidalgo42 (16 commits)")[![geevcookie](https://avatars.githubusercontent.com/u/722325?v=4)](https://github.com/geevcookie "geevcookie (14 commits)")[![victorsousao](https://avatars.githubusercontent.com/u/19959921?v=4)](https://github.com/victorsousao "victorsousao (3 commits)")[![elwingert](https://avatars.githubusercontent.com/u/2514638?v=4)](https://github.com/elwingert "elwingert (2 commits)")[![andreybolonin](https://avatars.githubusercontent.com/u/2576509?v=4)](https://github.com/andreybolonin "andreybolonin (2 commits)")[![beachcoffee](https://avatars.githubusercontent.com/u/82775870?v=4)](https://github.com/beachcoffee "beachcoffee (1 commits)")[![andyparkerson](https://avatars.githubusercontent.com/u/28819605?v=4)](https://github.com/andyparkerson "andyparkerson (1 commits)")

### Embed Badge

![Health badge](/badges/kryptonpay-powerbi-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/kryptonpay-powerbi-sdk/health.svg)](https://phpackages.com/packages/kryptonpay-powerbi-sdk)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
