Download the PHP package codeaken/laravel-piwiktracker without Composer

On this page you can find all versions of the php package codeaken/laravel-piwiktracker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-piwiktracker

Laravel Piwik Tracker

This Laravel 4 package allows you to insert the Piwik tracking code in your templates with the new Blade directive @piwiktracker.

It also has a feature that will allow you to hide your Piwik server URL by using the included proxy. This is great if you do not want anyone to find all of your sites by searching for the Pwik server URL.

Installation

Require the package in your composer.json and then run composer update

"require": {
    ...
    "codeaken/laravel-piwiktracker": "1.*"
    ...
},

After updating composer, add the Service Provider to the providers array in app/config/app.php

'providers' => array(
    ...
    'Codeaken\PiwikTracker\ServiceProvider',
    ...
),

Also add the Facade to the aliases array in app/config/app.php

'aliases' => array(
    ...
    'PiwikTracker' => 'Codeaken\PiwikTracker\Facade',
    ...
),

The tracker is disabled by default so you need to copy the configuration file and enable it

$ php artisan config:publish codeaken/laravel-piwiktracker

Configuration file

Adding the tracking code

In your layout (or any other template) add the new Blade directive @piwiktracker before the </body> tag and the tracking code should display if you have set enabled to true in the configuration file (and also set a valid site_id and tracker_url).

Hidden tracker URL

The Piwik Tracker Package has a feature of hiding the Piwik server URL (tracker_url in the config). You enable it by setting hidden to true and adding a valid token.

The request for the Piwik javascript will then go to the route piwiktracker/js and we will fetch the javascript (and cache it) from the Piwik server and return it.

The actual tracking call will go to piwiktracker/php where we add the pageview via the Piwik API by using the token in the config. We also return the 1x1 gif file.

License

Laravel Piwik Tracker is licensed under the MIT License.

Copyright 2014 Magnus Johansson


All versions of laravel-piwiktracker with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version 4.2.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package codeaken/laravel-piwiktracker contains the following files

Loading the files please wait ....