GithubHelp home page GithubHelp logo

carlosbuenosvinos / php-geckoboard-api Goto Github PK

View Code? Open in Web Editor NEW
41.0 9.0 36.0 143 KB

A PHP library for pushing data into Geckoboard custom widgets

Home Page: http://www.geckoboard.com

License: MIT License

PHP 100.00%

php-geckoboard-api's Issues

updated docs

hey carlos, thanks for the nice work!

Was wondering if you can provide some additional docs, in the README, for the widgets that are implemented but not documented (ie. line charts).

[status code] 400 [reason phrase] Bad Request

After following the installation process in the README, copying and pasting the first widget code and replacing the Widget ID and API key with accurate values, I run my script and receive the following:

PHP Fatal error:  Uncaught exception 'Guzzle\Http\Exception\ClientErrorResponseException' with message 'Client error response
[status code] 400
[reason phrase] Bad Request

Can't install with guzzle 3.9.1

  • Installation request for carlosio/geckoboard 1.0.5 -> satisfiable by carlosio/geckoboard[1.0.5].
    • Conclusion: remove guzzle/guzzle v3.9.1
    • carlosio/geckoboard 1.0.5 requires guzzle/guzzle 3.7.* -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4].
    • Can only install one of: guzzle/guzzle[v3.9.1, v3.7.0].
    • Can only install one of: guzzle/guzzle[v3.9.1, v3.7.1].
    • Can only install one of: guzzle/guzzle[v3.9.1, v3.7.2].
    • Can only install one of: guzzle/guzzle[v3.9.1, v3.7.3].
    • Can only install one of: guzzle/guzzle[v3.9.1, v3.7.4].
    • Installation request for guzzle/guzzle == 3.9.1.0 -> satisfiable by guzzle/guzzle[v3.9.1].

Bullet Measurement should be Measure

Thanks so much for putting this package together.

I found one thing that I believe needs to be changed in \Data\Bullet\Item.php

toArray() should use the key 'measure' instead of 'measurement'

Let me know if you have any questions.

Thanks!

Support for LeaderBoard optional parameters

Hey,

First off, this is a very useful library, so thank you for writing it!

I was wondering you would be able to add support for a couple of optional parameters on the LeaderBoard widget?

According to the Geckoboard API Docs you can optionally supply format and unit parameters:

https://developer.geckoboard.com/#parameters-10

It would be great to be able to do something like this:

$widget = new LeaderBoard();

$widget->setId( $widget_id );

$widget->setFormat('currency');

$widget->setUnit('GBP');

...

Thanks in advance.

Plans to upgrade Guzzle from 3 to 6?

Hi,

Is there any plans on upgrading this library from Guzzle 3 to Guzzle 6?

Guzzle 3 is very very old and will from my experience not work (at all) with PHP versions newer than 7.0. And the lifetime of PHP 7.0 is coming to it's end quite soon: http://php.net/supported-versions.php

This lib is also the most downloaded geckoboard library on packagist, so it's probably worth upgrading it to work with supported versions of PHP (as of december): https://packagist.org/?query=geckoboard

Unless the project is abandoned, but I don't see any mentions of that (as in huge titles on top of the readme or so).

Enhancement Request for Number & 2nd Stat Widget

I have another request for the Num & 2nd Stat widget:

If $secondaryValue has not been set it would be great if null or "" is passed as the value.

Right now it gets set to 0 (intval of null). If 0 is sent then geckboard will calculate the % difference and list it as a 100% increase. In my cases, I'd like the % increase to not be included at all if secondary value is null.

Let me know if you have any questions.

Thanks,

Dan

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.