Skip to content

Laravel 4

Installation

Add RobBrazier/Piwik to composer.json:

composer require "robbrazier/piwik=~2.0"

Setup Service Provider

// app/config/app.php
'providers' = array(
    //...
    'RobBrazier\Piwik\PiwikServiceProvider',
    //...
),

'aliases' = array(
    //...
    'Piwik' => 'RobBrazier\Piwik\Facades\Piwik',
    //...
),

Publish Configuration File

This will create a piwik.php config file in config/

php artisan vendor:publish --provider="RobBrazier\Piwik\PiwikServiceProvider"