PHPackages                             victorap93/powerbiembedded - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. victorap93/powerbiembedded

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

victorap93/powerbiembedded
==========================

Power BI Embedded is an easy way to obtain the necessary token to build the Power BI Embedded interface

0.1.0(4y ago)3589MITPHPPHP &gt;=5.5

Since Mar 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/victorap93/powerbiembedded)[ Packagist](https://packagist.org/packages/victorap93/powerbiembedded)[ RSS](/packages/victorap93-powerbiembedded/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

Power BI Embedded
=================

[](#power-bi-embedded)

[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Latest Version](https://camo.githubusercontent.com/4147becb07df48406c37c54de2594eccc693950caca1bd82efb4d069ac0815c6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f766963746f72617039332f706f7765726269656d6265646465642e7376673f7374796c653d666c61742d737175617265)](https://github.com/victorap93/powerbiembedded/releases)[![Total Downloads](https://camo.githubusercontent.com/25c931387a3ad00dfcb7c8484a8a8b8e6ba4e1126f6396b297c5fce339dcd266/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766963746f72617039332f706f7765726269656d6265646465642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/victorap93/powerbiembedded)

Power BI Embedded is an easy way to obtain the necessary token to build the Power BI Embedded interface

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

[](#installation)

The recommended way to install this is through [Composer](https://getcomposer.org/).

```
composer require victorap93/powerbiembedded
```

How to use
----------

[](#how-to-use)

### Get the nedded parameters:

[](#get-the-nedded-parameters)

Read this [step](https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=net-core#step-5---get-the-embedding-parameter-values) to know how to get neded params.

### Get Embedded Token by using MS Client Secret:

[](#get-embedded-token-by-using-ms-client-secret)

```
use \victorap93\PowerBIEmbedded\MSToken;
use \victorap93\PowerBIEmbedded\EmbeddedToken;

$tenantId = "";
$clientId = "";
$clientSecret = "";
$workspaceId = "";
$reportId = "";

$MSToken = new MSToken;
$ms_token = $MSToken->getMSTokenBySecret($tenantId, $clientId, $clientSecret);

$EmbeddedToken = new EmbeddedToken;
$result = $EmbeddedToken->getEmbeddedToken($workspaceId, $reportId, $embedded_token->access_token, ["accessLevel" => "View"]);

echo $embedded_token->token;
```

### Get Embedded Token by using MS Username and Password:

[](#get-embedded-token-by-using-ms-username-and-password)

```
use \victorap93\PowerBIEmbedded\MSToken;
use \victorap93\PowerBIEmbedded\EmbeddedToken;

$tenantId = "";
$clientId = "";
$username = "";
$password = "";
$workspaceId = "";
$reportId = "";

$MSToken = new MSToken;
$ms_token = $MSToken->getMSTokenByCredentials($tenant_id, $client_id, $username, $password);

$EmbeddedToken = new EmbeddedToken;
$result = $EmbeddedToken->getEmbeddedToken($workspaceId, $reportId, $embedded_token->access_token, ["accessLevel" => "View"]);

echo $embedded_token->token;
```

Help and docs
-------------

[](#help-and-docs)

- [Power BI developer documentation](https://docs.microsoft.com/en-us/power-bi/developer/)
- [Tutorial: Embed Power BI content using a sample embed for your customers application](https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=net-core)
- [Power BI Developer Samples](https://github.com/Microsoft/PowerBI-Developer-Samples)
- [Power BI Sandbox](https://playground.powerbi.com/pt-br/dev-sandbox)
- [Request Body](https://docs.microsoft.com/en-us/rest/api/power-bi/embed-token/datasets-generate-token-in-group#request-body)

More
----

[](#more)

You can see full implementation with these two projects:

- [PHP API](https://github.com/victorap93/powerbiembedded-php-api)
- [React APP](https://github.com/victorap93/powerbiembedded-react-app)

License
-------

[](#license)

Power BI Embedded is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~7 days

Total

3

Last Release

1592d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21a59b5dc4d17fe6457c4a31e88c02103e0cb443c0400827baa094045b164ce9?d=identicon)[victorap93](/maintainers/victorap93)

---

Top Contributors

[![victorap93](https://avatars.githubusercontent.com/u/4273876?v=4)](https://github.com/victorap93 "victorap93 (7 commits)")

---

Tags

tokenmicrosoftreportdashboardPower BI Embedded

### Embed Badge

![Health badge](/badges/victorap93-powerbiembedded/health.svg)

```
[![Health](https://phpackages.com/badges/victorap93-powerbiembedded/health.svg)](https://phpackages.com/packages/victorap93-powerbiembedded)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k555.0M2.8k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k55](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)[aspose-cloud/aspose-words-cloud

Open, generate, edit, split, merge, compare and convert Word documents. Integrate Cloud API into your solutions to manipulate documents. Convert PDF to Word (DOC, DOCX, ODT, RTF and HTML) and in the opposite direction.

33182.7k](/packages/aspose-cloud-aspose-words-cloud)

PHPackages © 2026

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