RobBrazier/Laravel_Piwik

View on GitHub
docs/Usage.md

Summary

Maintainability
Test Coverage
# Usage

There are two ways of using the Piwik Library;

1. Using the Laravel Facade 
2. Using the app container

## Facade

If you have added the alias for Piwik to app.php, you can use the library as follows:

```php
Piwik::method()
```

## App Container

If you don't want to use the static Facade method of accessing the class, you can also do it non-statically via any of the following App/Service Container interfaces:

```php
$this->app['piwik']->method()
$this->app->make('piwik')->method()
App::make('piwik')->method()
```