Giter Site home page Giter Site logo

robbrazier / laravel_piwik Goto Github PK

View Code? Open in Web Editor NEW
108.0 108.0 20.0 4.63 MB

An Interface to Piwik's Analytics API for Laravel (Composer Package).

Home Page: https://docs.robbrazier.com/Laravel_Piwik/

License: MIT License

PHP 98.02% Hack 1.98%
analytics laravel matomo php piwik piwik-analytics-api

laravel_piwik's Introduction

Hi there 👋

I have some of my public projects on this GitHub repository but also use Codeberg

RobBrazier's GitHub stats

laravel_piwik's People

Contributors

cammackmatthew avatar dependabot[bot] avatar elvendor avatar katzefudder avatar leechael avatar nickurt avatar renovate[bot] avatar robbrazier avatar scrutinizer-auto-fixer avatar swatty007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel_piwik's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): lock file maintenance

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

composer
composer.json
  • php >=7.3
  • guzzlehttp/guzzle ^6.5|^7.3
  • illuminate/support >=5.0
  • orchestra/testbench ^6.19
  • phpunit/phpunit ^9.5
  • phpunit/phpcov ^8.2
  • phpspec/prophecy ^1.13
github-actions
.github/workflows/build.yaml
  • actions/checkout v4
  • shivammathur/setup-php v2
  • actions/cache v3
  • actions/checkout v4
  • shivammathur/setup-php v2
  • actions/cache v3
  • codacy/codacy-coverage-reporter-action v1
  • actions/checkout v4
  • shivammathur/setup-php v2
.github/workflows/publish.yaml
  • actions/checkout v4
  • shivammathur/setup-php v2
  • actions/setup-python v5.0.0
  • JamesIves/github-pages-deploy-action v4.5.0
.github/workflows/tag.yaml
  • actions/checkout v4
  • coditory/changelog-parser v1
  • ncipollo/release-action v1
pip_requirements
docs/requirements.txt
  • mkdocs ==1.5.3
  • mkdocs-material ==9.5.3
  • mkdocs-redirects ==1.2.1

  • Check this box to trigger a request for Renovate to run again on this repository

Support for custom time ranges

The default date ranges are:
today, yesterday, previous7, previous30, last7, last30, currentweek, currentmonth, currentyear
But cannot be a customized range.

Usage with Matomo Cloud?

Hi,

First of all thank you for making and maintaining this package! 🙌

This might sound basic but I've been trying to make this work with the cloud version of Matomo as the API should still be the same (and this package is featured on the Matomo docs), but I'm having a few issues.

First of all Guzzle doesn't seem to like the certificate Matomo uses (I'm guessing the wildcard isn't handled well) so I need to disable SSL checking. Not a huge deal (same thing happens with cURL) but still…

Second, after disabling SSL checking, I get a 502 (Bad Gateway) error… that I don't get using my browser to hit the same URL directly (I'm dumping the URL from the ServerException using $error->getRequest()->getUri()).

Should there be some extra headers sent to the API? Am I missing some config?

The URL I'm hitting looks like this: https://{my_subdomain}.matomo.cloud/index.php?module=API&method=VisitsSummary.getVisits&period=month&date=yesterday&idSite=1&format=json&token_auth={my_api_token}.

Laravel 6 Support - String and Array Helpers removed

Since the str_- and array_-helpers has been removed from the framework itself to the laravel/helpers package, it would be nice to update this package to use the Illuminate\Support\Str and Illuminate\Support\Array package.

I know it's possible to install laravel/helpers but the change to the classes would prevent another dependency.

Dependencies for Laravel 4

Can you change the dependencies for "illuminate/support: 4.0.x" to "illuminate/support: 4.1.x". I can't install your package through composer because I've installed laravel/framework v4.1.0

Laravel piwik installation and location?

Hi:

Well, this might sound silly to you but I'd like to know a few things about this tool.

  1. First I'd like to know if I have to install Piwik on my host to use this inteface.
  2. Second I'm facing a lot of troubles with the installation process of piwik on my host because I dont really know where to install it /var/www/ or /var/www/laravel or somewhere else
  3. Third: If my host address is http://192.168.33.117/ then where is the piwik site I'm suppose to go when initiating the installation process,

I know is a lot but please help me here
Thanks

optimise dockerfiles

remove duplicate dockerfiles and switch to using build arguments to determine versions

this will allow extra php/laravel versions to be tested with much less effort

Why can't we pass additional arguments to method calls?

Why is it made not possible for us to not pass additional argument for method calls?

Example use case: When we want to get the pageTitles() for last 10 days and our default period (in configuration) is set to last 30 days. This seems to be impossible to do with Piwik::page_titles([$format]) which takes only $format as the argument! Instead one would use the Piwik::custom(...) method to achieve the above use-case.

This seems to be the case with most other method calls as well.

If you think this is good to implement, let me know, i'll push up modifications to implement this.

Integration for Contents.getContentNames and Contents.getContentPieces

Thanks so much for this useful package! As far as I can see, there is no support for following methods Contents.getContentNames and Contents.getContentPieces.

It's possible to get this data via the getCustom()-Method but it would be super handy if there is a dedicated method like Piwik::contents()->getNames() or something like this.

Thanks so much!

Integration Laraval 7 : Help Support

Hi, this is my first API integration,
I meet a error when i try to return api

I actually have :

  • Add the package ton Composer.json,
  • Update/upgrade it,
  • Configure the config/piwik.php file and add the api_key i have created from my matomo website

add the following line to my controller.php:
use RobBrazier\Piwik\Piwik;
And I actually try to return some informations like :

       $test = Piwik::tag();
       dd($test);

`

ErrorException

Non-static method RobBrazier\Piwik\Piwik::websites() should not be called statically

`

Could you help me to solved them ?
Thank you kindly :-)

Timeout config file

In default config piwik.php file, variable http_timeout isn't used.
Correct variable name is curl_timeout.

Laravel 8 & Piwik 4

Hey Rob,

I noticed in some recent pull requests you mentioned Laravel 8 and Piwik 4. Did you happen to integrate those upgrades into the master?

Vendor publish does not publish config

After I ran the command;

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

I get a success message but the config doesn't exist in the config directory.

Documentations are not working

Hi @RobBrazier,
Thanks for the package; it's awesome. I've used this some time back, now I need to add some features to my app using the package. Unfortunately the documentation/API Docs doesn't work.

Can you please take a look at this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.