To use Piwik the recommended way is to download the latest stable version. Alternatively, in case you want to use the very latest bleeding edge Piwik, you may use Piwik directly from our Git repository.
To deploy Piwik from Git, run the following commands once:
cd path/to/piwik # Clone the Git repository git clone https://github.com/piwik/piwik.git . # Setup composer libraries curl -sS https://getcomposer.org/installer | php php composer.phar install
To automatically deploy the latest code from our repository, setup a crontab or automated script with the following commands:
cd path/to/piwik # Pull the latest code from Piwik repositories php console git:pull # Upgrade the libraries in case there is any to be upgraded php composer.phar self-update > /dev/null php composer.phar install > /dev/null # Run the upgrade in case there was one php console core:update > /dev/null
Note: we do not recommend to do this on production server, as the latest code from Git may be unstable at times and could cause data loss.