{"id":17858520,"url":"https://github.com/matomo-org/matomo-php-tracker","last_synced_at":"2025-05-14T11:13:16.116Z","repository":{"id":37431734,"uuid":"21182913","full_name":"matomo-org/matomo-php-tracker","owner":"matomo-org","description":"PHP Client for Matomo Analytics Tracking API","archived":false,"fork":false,"pushed_at":"2025-01-22T13:59:09.000Z","size":308,"stargazers_count":215,"open_issues_count":14,"forks_count":84,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-05-10T17:23:34.523Z","etag":null,"topics":["matomo","php","php-client"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matomo-org.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2014-06-24T22:31:52.000Z","updated_at":"2025-01-22T23:54:59.000Z","dependencies_parsed_at":"2024-04-16T07:22:44.768Z","dependency_job_id":"cbad09eb-fc38-49db-9f72-34675f10d38c","html_url":"https://github.com/matomo-org/matomo-php-tracker","commit_stats":{"total_commits":130,"total_committers":35,"mean_commits":"3.7142857142857144","dds":0.7384615384615385,"last_synced_commit":"4fb85291a6fbcc43cafe9bbc05123f9c9b2ded71"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matomo-org%2Fmatomo-php-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matomo-org%2Fmatomo-php-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matomo-org%2Fmatomo-php-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matomo-org%2Fmatomo-php-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matomo-org","download_url":"https://codeload.github.com/matomo-org/matomo-php-tracker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254129529,"owners_count":22019628,"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":["matomo","php","php-client"],"created_at":"2024-10-28T05:09:07.894Z","updated_at":"2025-05-14T11:13:16.075Z","avatar_url":"https://github.com/matomo-org.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Client for Matomo Analytics Tracking API\n\nThe PHP Tracker Client provides all features of the [Matomo Javascript Tracker](https://developer.matomo.org/api-reference/tracking-javascript), such as Ecommerce Tracking, Custom Variables, Event Tracking and more. \n\n## Documentation and examples \nCheck out our [Matomo-PHP-Tracker developer documentation](https://developer.matomo.org/api-reference/PHP-Piwik-Tracker) and [Matomo Tracking API guide](https://matomo.org/docs/tracking-api/).\n\n\n```php\n// Required variables\n$matomoSiteId = 6;                  // Site ID\n$matomoUrl = \"https://example.tld\"; // Your matomo URL\n$matomoToken = \"\";                  // Your authentication token\n\n// Optional variable\n$matomoPageTitle = \"\";              // The title of the page\n\n// Load object\nrequire_once(\"MatomoTracker.php\");\n\n// Matomo object\n$matomoTracker = new MatomoTracker((int)$matomoSiteId, $matomoUrl);\n\n// Set authentication token\n$matomoTracker-\u003esetTokenAuth($matomoToken);\n\n// Track page view\n$matomoTracker-\u003edoTrackPageView($matomoPageTitle);\n```\n\n## Requirements:\n* JSON extension (json_decode, json_encode)\n* cURL or stream extension (to issue the HTTPS request to Matomo)\n\n## Installation\n\n### Composer\n\n```\ncomposer require matomo/matomo-php-tracker\n``` \n\n### Manually\n\nAlternatively, you can download the files and require the Matomo tracker manually: \n\n```\nrequire_once(\"MatomoTracker.php\");\n```\n\n## License\n\nReleased under the [BSD License](https://opensource.org/licenses/BSD-3-Clause)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatomo-org%2Fmatomo-php-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatomo-org%2Fmatomo-php-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatomo-org%2Fmatomo-php-tracker/lists"}