Recommend this page to a friend! |
Classes of Joseluis Laso | PHP Stats Graphs | README.md | Download |
|
Downloadsimple-statsA simple system to log events in your PHP app InstallationYou need only to require this package in your project Configuration (optional)In order to let know the library where it can put it's database file and other things related with setup you can copy the distribution file config-stats-base.yml.dist in the root of your project with the config-stats-base.yml This file contains:
The database key configures how the sqlite will work, and the models key informs SimpleStats about the events we want to register. Any change on any of these keys requires remove the sqlite database file in order that SimpleStats recreates new one. For the moment no migration process is allowed. InfoThat library uses svg files in order to show the results of the statistics. CommandsIn order to check the examples I provided a couple of commands that you can start from terminal Create demo dataCreate thousand of records in every event table with invented data.
src/console graph:create --graph=scatter --event="clicks,ips,logins" --title="Events by day" open temp.svg.html
|