# mta-h5 **Repository Path**: freyo/mta-h5 ## Basic Information - **Project Name**: mta-h5 - **Description**: PHP SDK for Mobile Tencent Analytics HTML5 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-07-27 - **Last Updated**: 2021-04-09 ## Categories & Tags **Categories**: web-dev-toolkits **Tags**: None ## README # Mobile Tencent Analytics HTML5 PHP SDK for Mobile Tencent Analytics HTML5

Software License Quality Score Packagist Version

## 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. [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffreyo%2Fmta-h5.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Ffreyo%2Fmta-h5?ref=badge_large)