{"id":21614212,"url":"https://github.com/ceytek-labs/matomo-services-lite","last_synced_at":"2026-01-28T06:16:36.481Z","repository":{"id":261453641,"uuid":"884345872","full_name":"ceytek-labs/matomo-services-lite","owner":"ceytek-labs","description":"Matomo Services Lite is a lightweight and extendable library designed to help you manage data easily using the Matomo in your PHP projects.","archived":false,"fork":false,"pushed_at":"2024-11-14T14:17:07.000Z","size":914,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"1.x","last_synced_at":"2025-03-25T04:41:37.386Z","etag":null,"topics":["automation","data-updates","lite-library","matomo","matomo-api","matomo-services","matomo-services-lite","php","track-online-visits","web-analytics"],"latest_commit_sha":null,"homepage":"https://github.com/ceytek-labs/matomo-services-lite","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/ceytek-labs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-06T15:29:36.000Z","updated_at":"2024-11-14T14:17:11.000Z","dependencies_parsed_at":"2024-11-06T16:52:13.922Z","dependency_job_id":"bfc3f21c-df2c-446c-86ec-8964791bcf87","html_url":"https://github.com/ceytek-labs/matomo-services-lite","commit_stats":null,"previous_names":["ceytek-labs/matomo-services-lite"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceytek-labs%2Fmatomo-services-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceytek-labs%2Fmatomo-services-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceytek-labs%2Fmatomo-services-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceytek-labs%2Fmatomo-services-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceytek-labs","download_url":"https://codeload.github.com/ceytek-labs/matomo-services-lite/tar.gz/refs/heads/1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248358548,"owners_count":21090401,"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":["automation","data-updates","lite-library","matomo","matomo-api","matomo-services","matomo-services-lite","php","track-online-visits","web-analytics"],"created_at":"2024-11-24T22:07:12.718Z","updated_at":"2026-01-28T06:16:36.442Z","avatar_url":"https://github.com/ceytek-labs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/ceytek-labs/matomo-services-lite/refs/heads/1.x/art/banner.png\" width=\"400\" alt=\"Matomo Services Lite\"\u003e\n    \u003cp align=\"center\"\u003e\n        \u003ca href=\"https://packagist.org/packages/ceytek-labs/matomo-services-lite\"\u003e\u003cimg alt=\"Total Downloads\" src=\"https://img.shields.io/packagist/dt/ceytek-labs/matomo-services-lite\"\u003e\u003c/a\u003e\n        \u003ca href=\"https://packagist.org/packages/ceytek-labs/matomo-services-lite\"\u003e\u003cimg alt=\"Latest Version\" src=\"https://img.shields.io/packagist/v/ceytek-labs/matomo-services-lite\"\u003e\u003c/a\u003e\n        \u003ca href=\"https://packagist.org/packages/ceytek-labs/matomo-services-lite\"\u003e\u003cimg alt=\"Size\" src=\"https://img.shields.io/github/repo-size/ceytek-labs/matomo-services-lite\"\u003e\u003c/a\u003e\n        \u003ca href=\"https://packagist.org/packages/ceytek-labs/matomo-services-lite\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/packagist/l/ceytek-labs/matomo-services-lite\"\u003e\u003c/a\u003e\n    \u003c/p\u003e\n\u003c/p\u003e\n\n------\n\n# Matomo Services Lite - Matomo API for PHP\n\n**Matomo Services Lite** is a lightweight and extendable library designed to help you manage data easily using the Matomo in your PHP projects.\n\n\u003e **Disclaimer:** This package is not an official product of Matomo. The developers accept no responsibility for any issues, discrepancies, or damages that may arise from its use.\n\n## Requirements\n\n- PHP 7.0 or higher (including PHP 8)\n\n## Installation\n\nYou can add this package to your projects via Composer:\n\n```bash\ncomposer require ceytek-labs/matomo-services-lite\n```\n\n## Services\n\n- [Actions](#actions)\n    - [Get](#actions-get)\n    - [Get Page Urls](#actions-get-page-urls)\n- [Devices Detection](#devices-detection)\n    - [Get Type](#devices-detection-get-type)\n- [Events](#events)\n    - [Get Action](#events-get-action)\n    - [Get Category](#events-get-category)\n    - [Get Name](#events-get-name)\n    - [Get Name From Action ID](#events-get-name-from-action-id)\n- [Marketing Campaigns Reporting](#marketing-campaigns-reporting)\n    - [Get Name](#marketing-campaigns-reporting-get-name)\n- [Sites Manager](#sites-manager)\n    - [Get All Sites](#sites-manager-get-all-sites)\n- [Users Manager](#users-manager)\n    - [Get Users With Site Access](#users-manager-get-users-with-site-access)\n- [Visits Summary](#visits-summary)\n    - [Get](#visits-summary-get)\n\n## Actions\n\nThe Actions API lets you request reports for all your Visitor Actions: Page URLs, Page titles, Events, Content Tracking, File Downloads and Clicks on external websites.\n\n### Example Usage\n\nThe following example demonstrates how to manage data in a **Actions** document:\n\n**[⬆ Back to services](#services)**\n\n#### Actions: Get\n\n```php\nuse CeytekLabs\\MatomoServicesLite\\Matomo;\n\n$result = Matomo::make()\n    -\u003esetApi('\u003cyour-api-url\u003e')\n    -\u003esetToken('\u003cyour-token\u003e')\n    -\u003eactions()\n    -\u003esetIdSite('\u003cyour-id-site\u003e')\n    -\u003esetPeriod('\u003cyour-period\u003e')\n    -\u003esetDate('\u003cyour-date\u003e')\n    -\u003eget();\n\necho '\u003cpre\u003e'; print_r($result);\n```\n\n**[⬆ Back to services](#services)**\n\n#### Actions: Get Page Urls\n\n```php\nuse CeytekLabs\\MatomoServicesLite\\Matomo;\n\n$result = Matomo::make()\n    -\u003esetApi('\u003cyour-api-url\u003e')\n    -\u003esetToken('\u003cyour-token\u003e')\n    -\u003eactions()\n    -\u003esetIdSite('\u003cyour-id-site\u003e')\n    -\u003esetPeriod('\u003cyour-period\u003e')\n    -\u003esetDate('\u003cyour-date\u003e')\n    -\u003egetPageUrls();\n\necho '\u003cpre\u003e'; print_r($result);\n```\n\n**[⬆ Back to services](#services)**\n\n## Devices Detection\n\nThe DevicesDetection API lets you access reports on your visitors devices, brands, models, Operating system, Browsers.\n\n### Example Usage\n\nThe following example demonstrates how to manage data in a **Devices Detection** document:\n\n**[⬆ Back to services](#services)**\n\n#### Devices Detection: Get Type\n\n```php\nuse CeytekLabs\\MatomoServicesLite\\Matomo;\n\n$result = Matomo::make()\n    -\u003esetApi('\u003cyour-api-url\u003e')\n    -\u003esetToken('\u003cyour-token\u003e')\n    -\u003edevicesDetection()\n    -\u003esetIdSite('\u003cyour-id-site\u003e')\n    -\u003esetPeriod('\u003cyour-period\u003e')\n    -\u003esetDate('\u003cyour-date\u003e')\n    -\u003egetType();\n\necho '\u003cpre\u003e'; print_r($result);\n```\n\n**[⬆ Back to services](#services)**\n\n## Events\n\nThe Events API lets you request reports about your users' Custom Events.\n\n### Example Usage\n\nThe following example demonstrates how to manage data in a **Devices Detection** document:\n\n**[⬆ Back to services](#services)**\n\n#### Events: Get Action\n\n```php\nuse CeytekLabs\\MatomoServicesLite\\Matomo;\n\n$result = Matomo::make()\n    -\u003esetApi('\u003cyour-api-url\u003e')\n    -\u003esetToken('\u003cyour-token\u003e')\n    -\u003eevents()\n    -\u003esetIdSite('\u003cyour-id-site\u003e')\n    -\u003esetPeriod('\u003cyour-period\u003e')\n    -\u003esetDate('\u003cyour-date\u003e')\n    -\u003egetAction();\n\necho '\u003cpre\u003e'; print_r($result);\n```\n\n**[⬆ Back to services](#services)**\n\n#### Events: Get Category\n\n```php\nuse CeytekLabs\\MatomoServicesLite\\Matomo;\n\n$result = Matomo::make()\n    -\u003esetApi('\u003cyour-api-url\u003e')\n    -\u003esetToken('\u003cyour-token\u003e')\n    -\u003eevents()\n    -\u003esetIdSite('\u003cyour-id-site\u003e')\n    -\u003esetPeriod('\u003cyour-period\u003e')\n    -\u003esetDate('\u003cyour-date\u003e')\n    -\u003egetCategory();\n\necho '\u003cpre\u003e'; print_r($result);\n```\n\n**[⬆ Back to services](#services)**\n\n#### Events: Get Name\n\n```php\nuse CeytekLabs\\MatomoServicesLite\\Matomo;\n\n$result = Matomo::make()\n    -\u003esetApi('\u003cyour-api-url\u003e')\n    -\u003esetToken('\u003cyour-token\u003e')\n    -\u003eevents()\n    -\u003esetIdSite('\u003cyour-id-site\u003e')\n    -\u003esetPeriod('\u003cyour-period\u003e')\n    -\u003esetDate('\u003cyour-date\u003e')\n    -\u003egetName();\n\necho '\u003cpre\u003e'; print_r($result);\n```\n\n**[⬆ Back to services](#services)**\n\n#### Events: Get Name From Action ID\n\n```php\nuse CeytekLabs\\MatomoServicesLite\\Matomo;\n\n$result = Matomo::make()\n    -\u003esetApi('\u003cyour-api-url\u003e')\n    -\u003esetToken('\u003cyour-token\u003e')\n    -\u003eevents()\n    -\u003esetIdSite('\u003cyour-id-site\u003e')\n    -\u003esetPeriod('\u003cyour-period\u003e')\n    -\u003esetDate('\u003cyour-date\u003e')\n    -\u003esetIdSubtable('\u003cyour-id-subtable\u003e')\n    -\u003egetNameFromActionId();\n\necho '\u003cpre\u003e'; print_r($result);\n```\n**[⬆ Back to services](#services)**\n\n## Marketing Campaigns Reporting\n\nAPI for plugin MarketingCampaignsReporting\n\n### Example Usage\n\nThe following example demonstrates how to manage data in a **Marketing Campaigns Reporting** document:\n\n**[⬆ Back to services](#services)**\n\n#### Marketing Campaigns Reporting: Get Name\n\n```php\nuse CeytekLabs\\MatomoServicesLite\\Matomo;\n\n$result = Matomo::make()\n    -\u003esetApi('\u003cyour-api-url\u003e')\n    -\u003esetToken('\u003cyour-token\u003e')\n    -\u003emarketingCampaignsReporting()\n    -\u003esetIdSite('\u003cyour-id-site\u003e')\n    -\u003esetPeriod('\u003cyour-period\u003e')\n    -\u003esetDate('\u003cyour-date\u003e')\n    -\u003egetName();\n\necho '\u003cpre\u003e'; print_r($result);\n```\n\n**[⬆ Back to services](#services)**\n\n## Sites Manager\n\nThe SitesManager API gives you full control on Websites in Matomo (create, update and delete), and many methods to retrieve websites based on various attributes.\n\n### Example Usage\n\nThe following example demonstrates how to manage data in a **Sites Manager** document:\n\n**[⬆ Back to services](#services)**\n\n#### Sites Manager: Get All Sites\n\n```php\nuse CeytekLabs\\MatomoServicesLite\\Matomo;\n\n$result = Matomo::make()\n    -\u003esetApi('\u003cyour-api-url\u003e')\n    -\u003esetToken('\u003cyour-token\u003e')\n    -\u003esitesManager()\n    -\u003egetAllSites();\n\necho '\u003cpre\u003e'; print_r($result);\n```\n\n**[⬆ Back to services](#services)**\n\n## Users Manager\n\nThe UsersManager API lets you Manage Users and their permissions to access specific websites.\n\n### Example Usage\n\nThe following example demonstrates how to manage data in a **Users Manager** document:\n\n**[⬆ Back to services](#services)**\n\n#### Users Manager: Get Users With Site Access\n\n```php\nuse CeytekLabs\\MatomoServicesLite\\Matomo;\n\n$result = Matomo::make()\n    -\u003esetApi('\u003cyour-api-url\u003e')\n    -\u003esetToken('\u003cyour-token\u003e')\n    -\u003eusersManager()\n    -\u003esetIdSite('\u003cyour-id-site\u003e')\n    -\u003esetAccess('\u003cyour-access\u003e')\n    -\u003egetUsersWithSiteAccess();\n\necho '\u003cpre\u003e'; print_r($result);\n```\n\n**[⬆ Back to services](#services)**\n\n## Visits Summary\n\nVisitsSummary API lets you access the core web analytics metrics (visits, unique visitors, count of actions (page views \u0026 downloads \u0026 clicks on outlinks), time on site, bounces and converted visits).\n\n### Example Usage\n\nThe following example demonstrates how to manage data in a **Visits Summary** document:\n\n**[⬆ Back to services](#services)**\n\n#### Visits Summary: Get\n\n```php\nuse CeytekLabs\\MatomoServicesLite\\Matomo;\n\n$result = Matomo::make()\n    -\u003esetApi('\u003cyour-api-url\u003e')\n    -\u003esetToken('\u003cyour-token\u003e')\n    -\u003evisitsSummary()\n    -\u003esetIdSite('\u003cyour-id-site\u003e')\n    -\u003esetPeriod('\u003cyour-period\u003e')\n    -\u003esetDate('\u003cyour-date\u003e')\n    -\u003eget();\n\necho '\u003cpre\u003e'; print_r($result);\n```\n\n## Contributing\n\nFeel free to submit a **pull request** or report an issue. Any contributions and feedback are highly appreciated!\n\n## License\n\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceytek-labs%2Fmatomo-services-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceytek-labs%2Fmatomo-services-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceytek-labs%2Fmatomo-services-lite/lists"}