PHPackages                             megaads/ga-service - 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. megaads/ga-service

ActiveLibrary[API Development](/categories/api)

megaads/ga-service
==================

Service get report from google analytic, google ads

1.2(6y ago)126MITPHPPHP &gt;=5.6.4CI failing

Since Feb 26Pushed 6y ago5 watchersCompare

[ Source](https://github.com/megaads-vn/ga-api-service)[ Packagist](https://packagist.org/packages/megaads/ga-service)[ Docs](https://www.megaads.vn)[ RSS](/packages/megaads-ga-service/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

\#Installation add in file composer.json

```
"require": {
	"megaads/ga-service": "^1.2"
}

```

\#Get Report From Google Analytic

```
$KEY_FILE_LOCATION =  '../config/client-secrets.json';
$name = 'Chiaki';
$filter = [
    'viewId' => 'xxxxxxxx',
    'from' => '2020-02-01',
    'to' => '2020-02-25',
    'metrics' => [
       'ga:sessions', 'ga:users', 'ga:bounces'
    ]
];
$gaTransfer = new \GaServices\GoogleAnalytic();
$items = $gaTransfer->report($name, $KEY_FILE_LOCATION, $filter);

```

\#Google Ads

```
\\ Get cost ads of account
$adsCostAccount = new \GaServices\AdsCostAccount();
$fileConfig = '../config/adsapi_php.ini';
$customerId = 'xxx-xxx-xxxx';
$filter = ['from' => '2020-01-01', 'to' => '2020-01-29']
$cost = $adsCostAccount->report($customerId, $fileConfig, $filter);

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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 ~1 days

Total

3

Last Release

2272d ago

Major Versions

0.0.1 → 1.02020-02-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/72ad425c743522a807fd15e2a7b0ada9c2a2127ecca76fbef37cf9292022006a?d=identicon)[megaads-vn](/maintainers/megaads-vn)

---

Top Contributors

[![limjim](https://avatars.githubusercontent.com/u/5043260?v=4)](https://github.com/limjim "limjim (19 commits)")

---

Tags

analyticgoogle adsgaads report

### Embed Badge

![Health badge](/badges/megaads-ga-service/health.svg)

```
[![Health](https://phpackages.com/badges/megaads-ga-service/health.svg)](https://phpackages.com/packages/megaads-ga-service)
```

###  Alternatives

[revolution/laravel-google-sheets

Google Sheets API v4

4483.1M6](/packages/revolution-laravel-google-sheets)[pulkitjalan/google-apiclient

Google api php client wrapper with Cloud Platform and Laravel support

2582.9M5](/packages/pulkitjalan-google-apiclient)[dacastro4/laravel-gmail

Gmail API package for Laravel

312382.9k1](/packages/dacastro4-laravel-gmail)[spotonlive/php-google-my-business

Google MyBusiness

31677.1k](/packages/spotonlive-php-google-my-business)[baibaratsky/yii2-ga-measurement-protocol

Google Analytics Measurement Protocol for Yii2

13104.2k](/packages/baibaratsky-yii2-ga-measurement-protocol)[famdirksen/laravel-google-indexing

Index Laravel website in Google via Indexing API

4175.9k](/packages/famdirksen-laravel-google-indexing)

PHPackages © 2026

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