Statistics module for resto
Copy statistics.php file under include/resto/Modules folder of your resto instance
Add following lines to resto configuration file (include/config.php) in module section :
'Statistics' => array(
'activate' => true, // true/false : to activate or not the module
'route' => 'stats', // route to this module
'options' => array()
),
HTTP GET on {resto_route}/{module_route} (for example : https://localhost/resto/stats)
Route | Comments |
---|---|
/users | Statistics about users |
/users/count/{field} | Get users number by distinct {field} |
/users/countries/centroid | Get users number per country + country centroid |
/users/countries/geometry | Get users number per country + country geometry |
/users/{userid} | Statistics about user identified by {userid} |
/downloads | Statistics about downloads |
/downloads/best | Statistics about downloads |
/downloads/products | Statistics about downloaded products |
/downloads/recent | Statistics about recent downloads |
/search | Statistics about search |
/search/recent | Statistics about recent search |
/search/best | Statistics about search products |
/search/products | Statistics about search products by month |
/insert | Statistics about insert |
/insert/recent | Statistics about recent insert |
/products | Statistics about products |
/new/users | Statistics about new users |
/new/users/count | Count users inscription by month |