knplabs / piwikclient Goto Github PK
View Code? Open in Web Editor NEW[UNMAINTAINED] Simple Piwik API client, written in PHP 5.3
Home Page: http://www.knplabs.com/
License: MIT License
[UNMAINTAINED] Simple Piwik API client, written in PHP 5.3
Home Page: http://www.knplabs.com/
License: MIT License
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?
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.
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.
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.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.