PHPackages                             pmmotors/pm-analytics-package - 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. pmmotors/pm-analytics-package

ActiveLibrary

pmmotors/pm-analytics-package
=============================

Project to manage the analytics

1.1(4y ago)014MITPHPPHP &gt;=5.4.0

Since Jul 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pmmotors/pm-analytics-package)[ Packagist](https://packagist.org/packages/pmmotors/pm-analytics-package)[ Docs](https://github.com/pmmotors/pm-adwords-package)[ RSS](/packages/pmmotors-pm-analytics-package/feed)WikiDiscussions main Synced 6d ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

PMAnalytics Package
===================

[](#pmanalytics-package)

Library for managing analytics and be installed in another projects

CONFIGURATION FOR DEVELOP IN THIS PROJECT:
------------------------------------------

[](#configuration-for-develop-in-this-project)

SET UP
------

[](#set-up)

- Clone this repository
- Create the `.env` file with the correct values.
- Add the `adwords.ini` file
- Create container:

```
    docker-compose up -d
```

- Access the container:

```
    docker-compose exec php-apache bash
```

- Install dependencies:

```
    composer install
```

- Open a browser on `localhost:8000`

CONFIGURATION FOR ADD THIS PROJECT AS A DEPENDENCY:
---------------------------------------------------

[](#configuration-for-add-this-project-as-a-dependency)

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

[](#installation)

Install via composer running

```
  composer require pmmotors/pm-analytics-package
```

Usage
-----

[](#usage)

In this example, pm-reports project will be used:

### Using AdWords

[](#using-adwords)

Injectin PmAnalyticsPackage:

```
// use App\Api\Analytics\AdWords\AdWordsReportV2;
use PmAnalyticsPackage\api\AdWords\AdWordsReportV2;

class AdWordsReportMaserati extends AdWordsReportV2 {

    ...

}
```

Using AdWordsReportMaserati

```
$report = new AdWordsReportMaserati(
    $clientId,
    $startDate,
    $endDate,
    $accountName
);

$report->getReport();
```

### Using Facebook

[](#using-facebook)

```
// init al facebook configuration
Facebook::FacebookInit();

// add facebook account
$account = Facebook::FacebookAccount($account_id);

$facebookAd = new FacebookReport(
    $account,
    $startDate,
    $endDate,
    $accountName
);

$facebookAd->getDateFromFacebookAPI();
```

### Using DialogTech

[](#using-dialogtech)

```
$dialog = new DialogTechReport(
    $reportStarDate,
    $reportEndDate,
    $accountName,
    $phoneNumberArr
);

$dialog->getDialogTechArray();
```

### Using Google

[](#using-google)

```
$dataSourcePath = 'path';

$analytics = Google::make('analytics');
$google = new GoogleAnalyticsReport(
    $analytics,
    $profileId,
    $reportDate,
    $accountName,
    $dataSourcePath
);

$google->getAnalyticsArray();
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.8% 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 ~6 days

Total

2

Last Release

1768d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/46d8be2f8adbcec2f68d6363febeec01f2c774bebc5f5f987663e4d83b014013?d=identicon)[pmmotors](/maintainers/pmmotors)

---

Top Contributors

[![hectortllo](https://avatars.githubusercontent.com/u/22400672?v=4)](https://github.com/hectortllo "hectortllo (57 commits)")[![pmmotors](https://avatars.githubusercontent.com/u/25538168?v=4)](https://github.com/pmmotors "pmmotors (11 commits)")

### Embed Badge

![Health badge](/badges/pmmotors-pm-analytics-package/health.svg)

```
[![Health](https://phpackages.com/badges/pmmotors-pm-analytics-package/health.svg)](https://phpackages.com/packages/pmmotors-pm-analytics-package)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[bacula-web/bacula-web

The open source web based reporting and monitoring tool for Bacula

1537.5k](/packages/bacula-web-bacula-web)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[doppar/framework

The Doppar Framework

366.7k8](/packages/doppar-framework)

PHPackages © 2026

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