edbizarro / bi-connect
Connect with 3rd party sources.
Installs: 5 072
Dependents: 0
Suggesters: 1
Security: 0
Stars: 2
Watchers: 1
Forks: 2
Open Issues: 5
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
- dev-master
- v0.6.2
- v0.6.1
- v0.6
- v0.5
- v0.4
- v0.3
- v0.2
- v0.1.3
- v0.1.2
- dev-dependabot/composer/facebook/php-business-sdk-tw-3.2or-tw-4.0or-tw-5.0or-tw-6.0or-tw-16.0
- dev-dependabot/composer/friendsofphp/php-cs-fixer-tw-2or-tw-3
- dev-dependabot/add-v2-config-file
- dev-dependabot/composer/facebook/php-business-sdk-tw-3.2or-tw-4.0or-tw-5.0or-tw-6.0or-tw-10.0
- dev-dependabot/composer/tightenco/collect-tw-5.6or-tw-5.7or-tw-5.8or-tw-6.0or-tw-8.0
- dev-dependabot/composer/googleads/googleads-php-lib-tw-41.0or-tw-42.0or-tw-43.0or-tw-46.0or-tw-48.0
This package is auto-updated.
Last update: 2024-12-06 12:34:42 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