|Classes of Joseluis Laso||>||PHP Stats Graphs||>||README.md||>||Download|
A simple system to log events in your PHP app
You need only to require this package in your project
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.
That library uses svg files in order to show the results of the statistics.
In order to check the examples I provided a couple of commands that you can start from terminal
Create demo data
Create 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