PHPackages                             hogus/laravel-mta-analytics - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hogus/laravel-mta-analytics

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

hogus/laravel-mta-analytics
===========================

mta

v1.0.3(6y ago)05MITPHPPHP &gt;=7.0

Since Apr 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/hogus2037/laravel-mta-analytics)[ Packagist](https://packagist.org/packages/hogus/laravel-mta-analytics)[ RSS](/packages/hogus-laravel-mta-analytics/feed)WikiDiscussions master Synced 1mo ago

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

 laravel-mta-analytics
=======================

[](#-laravel-mta-analytics-)

 mta.

Installing
----------

[](#installing)

```
$ composer require hogus/laravel-mta-analytics
```

Usage
-----

[](#usage)

- publish config

```
$ php artisan vendor:publish --provider="Hogus\LaravelMtaAnalytics\ServiceProvider" --tag="config"
```

Example
-------

[](#example)

```
$mta = Mta::gateway('h5'); // h5,mini,app
// App 区别于ios或安卓，使用同一个appid，不同的serect_key获取的是各自平台的数据。如要获取其他平台，使用前应使用setSecretKey()方法覆盖当前的secret_key
// $mta->setSecretKey("app_key");
$mta->coreData('2020-01-01', '2020-01-05');
```

### H5

[](#h5)

- [应用历史趋势](https://mta.qq.com/docs/h5_api.html#%E5%BA%94%E7%94%A8%E5%8E%86%E5%8F%B2%E8%B6%8B%E5%8A%BF) coreData(string $start\_date, string $end\_date, $idx)
- [应用实时小时数据](https://mta.qq.com/docs/h5_api.html#%E5%BA%94%E7%94%A8%E5%AE%9E%E6%97%B6%E5%B0%8F%E6%97%B6%E6%95%B0%E6%8D%AE) getRealtimeByHour($idx)
- [应用心跳数据](https://mta.qq.com/docs/h5_api.html#%E5%BA%94%E7%94%A8%E5%BF%83%E8%B7%B3%E6%95%B0%E6%8D%AE) heartbeat()
- [实时访客](https://mta.qq.com/docs/h5_api.html#%E5%AE%9E%E6%97%B6%E8%AE%BF%E5%AE%A2) userRealtime(int $page = 1)
- [新老访客比](https://mta.qq.com/docs/h5_api.html#%E6%96%B0%E8%80%81%E8%AE%BF%E5%AE%A2%E6%AF%94) userCompare(string $start\_date, string $end\_date)
- [用户画像](https://mta.qq.com/docs/h5_api.html#%E7%94%A8%E6%88%B7%E7%94%BB%E5%83%8F) userPortrait(string $start\_date, string $end\_date, $idx)
- [客户端分析-地区数据](https://mta.qq.com/docs/h5_api.html#%E5%9C%B0%E5%8C%BA%E6%95%B0%E6%8D%AE) getArea(string $start\_date, string $end\_date, $idx, $type\_ids)
- [省市数据](https://mta.qq.com/docs/h5_api.html#%E7%9C%81%E5%B8%82%E6%95%B0%E6%8D%AE) getProvince(string $start\_date, string $end\_date, $idx, $type\_ids)
- [运营商](https://mta.qq.com/docs/h5_api.html#%E8%BF%90%E8%90%A5%E5%95%86) getOperator(string $start\_date, string $end\_date, $idx, $type\_ids)
- [终端属性列表](https://mta.qq.com/docs/h5_api.html#%E7%BB%88%E7%AB%AF%E5%B1%9E%E6%80%A7%E5%88%97%E8%A1%A8) getClientPara(string $start\_date, string $end\_date, $idx, $type\_id)
- [终端信息](https://mta.qq.com/docs/h5_api.html#%E7%BB%88%E7%AB%AF%E4%BF%A1%E6%81%AF) getClientContent(string $start\_date, string $end\_date, $idx, string $type\_id, $type\_contents)
- [页面排行-当天实时列表](https://mta.qq.com/docs/h5_api.html#%E9%A1%B5%E9%9D%A2%E6%8E%92%E8%A1%8C-%E5%BD%93%E5%A4%A9%E5%AE%9E%E6%97%B6%E5%88%97%E8%A1%A8) getRealtimePage($idx)
- [页面排行-离线列表](https://mta.qq.com/docs/h5_api.html#%E9%A1%B5%E9%9D%A2%E6%8E%92%E8%A1%8C-%E7%A6%BB%E7%BA%BF%E5%88%97%E8%A1%A8) getOfflinePage(string $start\_date, string $end\_date, $idx, int $page = 1)
- [页面排行-指定查询部分url](https://mta.qq.com/docs/h5_api.html#%E9%A1%B5%E9%9D%A2%E6%8E%92%E8%A1%8C-%E6%8C%87%E5%AE%9A%E6%9F%A5%E8%AF%A2%E9%83%A8%E5%88%86url) getPage(string $start\_date, string $end\_date, $urls, $idx)
- [性能监控-省市](https://mta.qq.com/docs/h5_api.html#%E6%80%A7%E8%83%BD%E7%9B%91%E6%8E%A7) getAreaPageSpeed(string $start\_date, string $end\_date, $idx, $contents)
- [性能监控-运营商](https://mta.qq.com/docs/h5_api.html#%E6%80%A7%E8%83%BD%E7%9B%91%E6%8E%A7) getProxyPageSpeed(string $start\_date, string $end\_date, $idx, $contents)
- [性能监控-页面地址](https://mta.qq.com/docs/h5_api.html#%E6%80%A7%E8%83%BD%E7%9B%91%E6%8E%A7) getUrlPageSpeed(string $start\_date, string $end\_date, $idx, $contents)
- 性能监控 pageSpeedRequest(array $params)
- [访问深度](https://mta.qq.com/docs/h5_api.html#%E8%AE%BF%E9%97%AE%E6%B7%B1%E5%BA%A6) depth(string $start\_date, string $end\_date)
- [来源分析-外部链接](https://mta.qq.com/docs/h5_api.html#%E6%9D%A5%E6%BA%90%E5%88%86%E6%9E%90) sourceOut(string $start\_date, string $end\_date, $urls, $idx)
- [来源分析-入口页面](https://mta.qq.com/docs/h5_api.html#%E5%85%A5%E5%8F%A3%E9%A1%B5%E9%9D%A2) getPageLand(string $start\_date, string $end\_date, $urls)
- [来源分析-离开页面](https://mta.qq.com/docs/h5_api.html#%E7%A6%BB%E5%BC%80%E9%A1%B5%E9%9D%A2) getPageExit(string $start\_date, string $end\_date, $urls)
- [自定义事件](https://mta.qq.com/docs/h5_api.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BA%8B%E4%BB%B6) custom(string $start\_date, string $end\_date, $custom, $idx)
- [渠道效果统计](https://mta.qq.com/docs/h5_api.html#%E6%B8%A0%E9%81%93%E6%95%88%E6%9E%9C%E5%88%86%E6%9E%90) adtag(string $start\_date, string $end\_date, $adtags, $idx)

### Mini (小程序)

[](#mini-小程序)

- [实时数据](https://mta.qq.com/docs/wechat_mini_program_api.html#%E5%AE%9E%E6%97%B6%E6%95%B0%E6%8D%AE-get-analyticsrealtime) realTime()
- [历史趋势](https://mta.qq.com/docs/wechat_mini_program_api.html#%E5%8E%86%E5%8F%B2%E8%B6%8B%E5%8A%BF-get-analyticshistory) history(string $start\_time, string $end\_time)
- [新老用户](https://mta.qq.com/docs/wechat_mini_program_api.html#%E6%96%B0%E8%80%81%E7%94%A8%E6%88%B7-get-analyticsusercompare) userCompare(string $start\_time, string $end\_time)
- [分享分析](https://mta.qq.com/docs/wechat_mini_program_api.html#%E5%88%86%E4%BA%AB%E5%88%86%E6%9E%90-get-analyticsshare) share(string $start\_time, string $end\_time)
- [地域](https://mta.qq.com/docs/wechat_mini_program_api.html?q=#%E5%9C%B0%E5%9F%9F-get-analyticsarea) area(string $start\_time, string $end\_time)
- [终端信息](https://mta.qq.com/docs/wechat_mini_program_api.html#%E7%BB%88%E7%AB%AF%E4%BF%A1%E6%81%AF-get-analyticsterminal) terminal(string $start\_time, string $end\_time, string $type)
- [网络类型](https://mta.qq.com/docs/wechat_mini_program_api.html#%E7%BD%91%E7%BB%9C%E7%B1%BB%E5%9E%8B-get-analyticsnetwork) network(string $start\_time, string $end\_time)
- [自定义事件列表](https://mta.qq.com/docs/wechat_mini_program_api.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BA%8B%E4%BB%B6%E5%88%97%E8%A1%A8-get-analyticsevent) event(string $start\_time, string $end\_time)
- [自定义事件详情 ](https://mta.qq.com/docs/wechat_mini_program_api.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BA%8B%E4%BB%B6%E8%AF%A6%E6%83%85-get-analyticseventdetail) enentDetail(string $start\_time, string $end\_time, $event\_id)
- [自定义事件-漏斗模型详情](https://mta.qq.com/docs/wechat_mini_program_api.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BA%8B%E4%BB%B6-%E6%BC%8F%E6%96%97%E6%A8%A1%E5%9E%8B%E8%AF%A6%E6%83%85-get-analyticsfunnel) getFunnel(string $start\_time, string $end\_time, $funnel\_id)
- [漏斗模型配置](https://mta.qq.com/docs/wechat_mini_program_api.html#%E6%BC%8F%E6%96%97%E6%A8%A1%E5%9E%8B%E9%85%8D%E7%BD%AE-get-funnel) funnel()
- [使用时段](https://mta.qq.com/docs/wechat_mini_program_api.html#%E4%BD%BF%E7%94%A8%E6%97%B6%E6%AE%B5-get-analyticsperiod) period(string $start\_time, string $end\_time)
- [机型](https://mta.qq.com/docs/wechat_mini_program_api.html#%E6%9C%BA%E5%9E%8B-get-analyticsmachine) machine(string $start\_time, string $end\_time)

### App

[](#app)

- [应用基本指标-离线数据](https://mta.qq.com/mta/ctr_index/open_api_detail?func_id=101) getUserOfficeData(array $params)
- [应用基础指标-实时数据](https://mta.qq.com/mta/ctr_index/open_api_detail?func_id=102) getUserRealtimeData(array $params)
- [终端设备数据-离线数据](https://mta.qq.com/mta/ctr_index/open_api_detail?func_id=103) getTerminalOfficeData(array $params)
- [用户活跃度](https://mta.qq.com/mta/ctr_index/open_api_detail?func_id=104) getActiveAnalOfficeData(array $params)
- [用户行为分析](https://mta.qq.com/mta/ctr_index/open_api_detail?func_id=105) getUsageAnalOfficeData(array $params)
- [使用频率分析](https://mta.qq.com/mta/ctr_index/open_api_detail?func_id=106) getUsageAnalFreqDis(array $params)
- [用户留存率](https://mta.qq.com/mta/ctr_index/open_api_detail?func_id=110) getUserOfficeData(array $params)

License
-------

[](#license)

MIT

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

4

Last Release

2221d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e1d437156710565b6239dfd93b09c2293771f6d244bcb9345fb8942d192bdce5?d=identicon)[hogus2037](/maintainers/hogus2037)

---

Tags

mtamta-analytics

### Embed Badge

![Health badge](/badges/hogus-laravel-mta-analytics/health.svg)

```
[![Health](https://phpackages.com/badges/hogus-laravel-mta-analytics/health.svg)](https://phpackages.com/packages/hogus-laravel-mta-analytics)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

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

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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