Code Monkey home page Code Monkey logo

nagios-livestatus-client's People

Contributors

aashley avatar awiddersheim avatar diogouchoas avatar haroldiedema avatar rswarts avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

nagios-livestatus-client's Issues

Syntax error

In latest commit: 85f7963

The library breaks compatibility with anything below PHP 7, by using a reserved keyword as method name.

PHP Parse error: syntax error, unexpected 'and' (T_LOGICAL_AND), expecting identifier (T_STRING) in Client.php on line 166

Please make a (stable) release

Could you please create a release with a proper version number? Currently we have to set it to dev-master in our composer which isn't locked to a specific commit. Using a release you can do this.

Format output

It would be nice if the result from ->execute() was an associated array instead of just a raw dump from the socket.

Since the first index in the array is a list of columns, just use this to build a nice array with array_combine()

Somthing like

$keys = array_shift($response);
foreach ( $response as $row ) {
   $res[] = array_combine($keys, $row);
}

or you could use the data from ->columns() to build the keys.

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.