edbizarro / bi-connect
Connect with 3rd party sources.
v0.6.2
2019-05-28 14:02 UTC
Requires
- php: >=7.1.3
- ext-json: *
- adobe-marketing-cloud/marketing-cloud-php-sdk: ^2.1
- facebook/graph-sdk: ~5.7
- facebook/php-business-sdk: ^3.2
- google/apiclient: ^2.2
- googleads/googleads-php-lib: ^41.0 || ^42.0
- guzzlehttp/guzzle: ~6.3
- nesbot/carbon: ^1.23 || ^2.0
- tightenco/collect: ^5.6 || ^5.7 || ^5.8
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2
- mnapoli/pretty: ^1.0
- phpunit/phpunit: ^8
This package is auto-updated.
Last update: 2026-06-06 16:04:08 UTC
README
BI - Connect
Connect with 3rd party sources to get data.Supported sources:
- Google Analytics
- Adobe Analytics (WIP)
- Facebook Ads (WIP)
- Instagram Ads (WIP)
- Twitter (WIP)
- TailTarget (WIP)
Here are a few examples on how you can use the package:
use Bi\Connect\Google\GoogleConnect; use Bi\Connect\Google\Auth\CredentialsFileAuth; $googleConnect = new GoogleConnect( new CredentialsFileAuth('path/to/ga/credentials.json) // https://developers.google.com/analytics/devguides/reporting/core/v4/authorization#common_oauth_20_flows ); $googleConnect->addScope('analytics'); $googleConnect->setRedirectUrl('registered callback url'); // Se link above $googleConnect->getLoginUrl(); // Get google login auth url // OAuth2 flow
After the OAuth2 flow you can access GA Analytics API
// Retrieve all analytics accounts $accounts = $googleConnect->analytics()->accounts();
Installation
You can install the package via composer:
composer require edbizarro/bi-connect