RobBrazier/Laravel_Piwik

View on GitHub
src/config/config.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

return [

    /*
     *  Server URL
     */
    'piwik_url'     => 'https://piwik.example.com',

    /*
     *  Optional API Key (will be used instead of Username and Password)
     *  The bundle works much faster with the API Key, rather than username and password.
     */

    'api_key'       => '',

    /*
     *  Format for API calls to be returned in
     *
     *  Can be [php, xml, json, html, rss, original]
     *
     *  The default is 'json'
     */
    'format'        => 'json',

    /*
     *  Period/Date range for results
     *
     *  Can be [today, yesterday, previous7, previous30, last7, last30, currentweek, currentmonth, currentyear]
     *  as well as a date range in the format of "yyyy-MM-dd,yyyy-MM-dd"
     *
     *  The default is 'yesterday'
     */
    'period'        => 'yesterday',

    /*
     *  The Site ID you want to use
     */
    'site_id'       => '1',

    /*
     * Indicates if cURL should verify the server certificate
     * Can be boolean or a path to a custom SSL certificate on disk
     */
    'verify_peer' => true,

    /*
     * HTTP timeout to be used when såending requests to the Piwik server. Defaults to 5 (seconds)
     */
    'http_timeout' => 5.0,
];