PHP code example of wikibase-solutions / w-s-stats
1. Go to this page and download the library: Download wikibase-solutions/w-s-stats 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/ */
wikibase-solutions / w-s-stats example snippets
`
$wgWSStats = array();
`
# Record anonymous users
$wgWSStats['skip_anonymous'] = false;
`
# Record anonymous users
$wgWSStats['skip_anonymous'] = false;
# Skip if user is in following groups
$wgWSStats['skip_user_groups'][] = 'sysop';
$wgWSStats['skip_user_groups'][] = 'admin';
# Allow all usergroups, including sysop
$wgWSStats['skip_user_groups'] = [];