https://github.com/freyo/mta-h5
📈PHP SDK for Mobile Tencent Analytics HTML5
https://github.com/freyo/mta-h5
mta
Last synced: 11 months ago
JSON representation
📈PHP SDK for Mobile Tencent Analytics HTML5
- Host: GitHub
- URL: https://github.com/freyo/mta-h5
- Owner: freyo
- License: mit
- Created: 2019-04-18T13:02:42.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-03T11:04:27.000Z (over 6 years ago)
- Last Synced: 2025-04-30T03:49:25.366Z (about 1 year ago)
- Topics: mta
- Language: PHP
- Homepage: https://mta.qq.com/mta/ctr_index/h5
- Size: 35.2 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mobile Tencent Analytics HTML5
PHP SDK for Mobile Tencent Analytics HTML5
## Installation
```shell
composer require freyo/mta-h5
```
## Bootstrap
```php
'your-app-id',
'secret_key' => 'your-secret-key',
];
$app = new Application($config);
```
### API
```php
$app->trend->query($startDate, $endDate);
$app->trend->realtime();
$app->trend->heartbeat();
$app->user->realtime($page = 1);
$app->user->compare($startDate, $endDate);
$app->user->portrait($startDate, $endDate);
$app->device->query($startDate, $endDate, $typeId, $typeContents = []);
$app->device->operator($startDate, $endDate, $typeIds);
$app->device->area($startDate, $endDate, $typeIds);
$app->device->province($startDate, $endDate, $typeIds);
$app->page->realtime();
$app->page->offline($startDate, $endDate, $page = 1);
$app->page->query($startDate, $endDate, $urls);
$app->page->depth($startDate, $endDate);
$app->page->speed($startDate, $endDate, $typeContents, $type);
$app->custom->query($startDate, $endDate, $custom);
$app->source->query($startDate, $endDate, $urls);
$app->source->land($startDate, $endDate, $urls);
$app->source->leave($startDate, $endDate, $urls);
$app->adtag->query($startDate, $endDate, $adTags);
```
## Use in Laravel
**Laravel 5.5+ uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.**
```php
$app = app('mta-h5');
```
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.
[](https://app.fossa.io/projects/git%2Bgithub.com%2Ffreyo%2Fmta-h5?ref=badge_large)