{"id":15631863,"url":"https://github.com/freyo/mta-h5","last_synced_at":"2025-08-03T17:35:08.326Z","repository":{"id":62507386,"uuid":"182088919","full_name":"freyo/mta-h5","owner":"freyo","description":"📈PHP SDK for Mobile Tencent Analytics HTML5","archived":false,"fork":false,"pushed_at":"2019-12-03T11:04:27.000Z","size":36,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T03:49:25.366Z","etag":null,"topics":["mta"],"latest_commit_sha":null,"homepage":"https://mta.qq.com/mta/ctr_index/h5","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freyo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-18T13:02:42.000Z","updated_at":"2022-03-14T11:50:03.000Z","dependencies_parsed_at":"2022-11-02T12:31:03.015Z","dependency_job_id":null,"html_url":"https://github.com/freyo/mta-h5","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freyo%2Fmta-h5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freyo%2Fmta-h5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freyo%2Fmta-h5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freyo%2Fmta-h5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freyo","download_url":"https://codeload.github.com/freyo/mta-h5/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251638761,"owners_count":21619663,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mta"],"created_at":"2024-10-03T10:41:54.916Z","updated_at":"2025-04-30T03:49:29.464Z","avatar_url":"https://github.com/freyo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mobile Tencent Analytics HTML5\n\nPHP SDK for Mobile Tencent Analytics HTML5\n\n\u003cdiv\u003e\n  \u003cp align=\"\"\u003e\n    \u003ca href=\"LICENSE\"\u003e\n      \u003cimage src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\" alt=\"Software License\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://scrutinizer-ci.com/g/freyo/mta-h5\"\u003e\n      \u003cimage src=\"https://img.shields.io/scrutinizer/g/freyo/mta-h5.svg?style=flat-square\" alt=\"Quality Score\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/freyo/mta-h5\"\u003e\n      \u003cimage src=\"https://img.shields.io/packagist/v/freyo/mta-h5.svg?style=flat-square\" alt=\"Packagist Version\"\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n## Installation\n\n  ```shell\n  composer require freyo/mta-h5\n  ```\n\n## Bootstrap\n\n  ```php\n  \u003c?php\n  use Freyo\\MtaH5\\Application;\n\n  include __DIR__ . '/vendor/autoload.php';\n\n  $config = [\n      'app_id' =\u003e 'your-app-id',\n      'secret_key' =\u003e 'your-secret-key',\n  ];\n  \n  $app = new Application($config);\n  \n  ```\n### API\n\n```php\n$app-\u003etrend-\u003equery($startDate, $endDate);\n$app-\u003etrend-\u003erealtime();\n$app-\u003etrend-\u003eheartbeat();\n\n$app-\u003euser-\u003erealtime($page = 1);\n$app-\u003euser-\u003ecompare($startDate, $endDate);\n$app-\u003euser-\u003eportrait($startDate, $endDate);\n\n$app-\u003edevice-\u003equery($startDate, $endDate, $typeId, $typeContents = []);\n$app-\u003edevice-\u003eoperator($startDate, $endDate, $typeIds);\n$app-\u003edevice-\u003earea($startDate, $endDate, $typeIds);\n$app-\u003edevice-\u003eprovince($startDate, $endDate, $typeIds);\n\n$app-\u003epage-\u003erealtime();\n$app-\u003epage-\u003eoffline($startDate, $endDate, $page = 1);\n$app-\u003epage-\u003equery($startDate, $endDate, $urls);\n$app-\u003epage-\u003edepth($startDate, $endDate);\n$app-\u003epage-\u003espeed($startDate, $endDate, $typeContents, $type);\n\n$app-\u003ecustom-\u003equery($startDate, $endDate, $custom);\n\n$app-\u003esource-\u003equery($startDate, $endDate, $urls);\n$app-\u003esource-\u003eland($startDate, $endDate, $urls);\n$app-\u003esource-\u003eleave($startDate, $endDate, $urls);\n\n$app-\u003eadtag-\u003equery($startDate, $endDate, $adTags);\n```\n\n## Use in Laravel\n  \n**Laravel 5.5+ uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.**\n\n```php\n$app = app('mta-h5');\n```\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n\n[![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)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreyo%2Fmta-h5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreyo%2Fmta-h5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreyo%2Fmta-h5/lists"}