Giter Site home page Giter Site logo

piwikclient's People

Contributors

docteurklein avatar everzet avatar inoryy avatar l3pp4rd avatar mbontemps avatar stloyd avatar tzi avatar

Stargazers

 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

piwikclient's Issues

Repository name

Regarding to the README from the KnpPiwikBundle, this bundle should be located at git://github.com/knplabs/KnpPiwikClient.git.

So maybe you should rename the repository or change the KnpPiwikBundle README?

Proposal > call arguments

Hi!

This is a proposal. If you accept it on the principle, I will make a PR with the updated code, tests & docs.


Could we cut the call() $method argument in two parts?

// For the moment
$client->call('API.getReportMetadata', array(), 'php');
$client->call('Plugin.method', $params, $format);
// Proposition
$client->call('API', 'getReportMetadata', array(), 'php');
$client->call($plugin, $method, $params, $format);

This could make a good abstraction of the Piwik API structure.

Cheers,
Thomas.

Proposal > adaptative Client constructor

Hi!

This is a proposal. If you accept it on the principle, I will make a PR with the updated code, tests & docs.


I propose to introduce more polymorphism in the Client instantiation:

use \Knp\PiwikClient\Client;

// Exactly what you want
new Client($connection, $apiToken);
// Your connection with an anonymous use of API
new Client($connection);
// A HttpConnection
new Client($apiURL, $apiToken);
// A HttpConnection with an anonymous use of API
new Client($apiURL);
// A PiwikConnection (local PHP instance)
new Client();

This will simplify the use of the library & make an awesome example for the README.

Cheers,
Thomas.

Required buzz version

Not sure if this is problem with your requirements list or buzz's versioning, but will get following error:

knplabs/knp-piwik-client dev-master requires kriswallsmith/buzz 0.10.* -> no matching package found.

Proposal > catch Buzz exceptions

Hi!

This is a proposal. If you accept it on the principle, I will make a PR with the updated code, tests & docs.


I propose to catch Buzz exceptions, and throw a PiwikClientException. Because Buzz is a sub dependency, it should not be exposed.

Cheers,
Thomas.

Proposal > remove license file header

Hi!

This is a proposal. If you accept it on the principle, I will make a PR with the updated code, tests & docs.


Could we remove the license headers on every file?
We juste have to keep the README & LICENSE files.

It simpler and it seems to be what you do on your other projets.

Cheers,
Thomas.

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.