PHP code example of famouswolf / matomoapi
1. Go to this page and download the library: Download famouswolf/matomoapi library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
famouswolf / matomoapi example snippets
plugin.tx_matomoapi {
settings {
apiUrl = https://example.org/matomo/index.php?
tokenAuth = 1234567890abcdef1234567890abcdef
method = Actions.getPageUrls
parameters {
idSite = 1
period = day
date = yesterday
flat = 1
filter_limit = 1
}
}
}