2017 © Pedro Peláez
 

library bi-connect

Connect with 3rd party sources to get data

image

edbizarro/bi-connect

Connect with 3rd party sources to get data

  • Monday, July 9, 2018
  • by edbizarro
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3,435 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 2739 % Grown

The README.md

, (*1)

BI - Connect

Connect with 3rd party sources to get data., (*2)


Build Status StyleCI Latest Stable Version License
, (*3)

Supported sources:, (*4)

  • 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:, (*5)

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, (*6)

// Retrieve all analytics accounts
$accounts = $googleConnect->analytics()->accounts();

Installation

You can install the package via composer:, (*7)

bash composer require edbizarro/bi-connect, (*8)


forthebadge, (*9)

FOSSA Status, (*10)

The Versions