arall/losquery

Osquery 的 PHP 封装

0.0.1 2016-06-01 18:12 UTC

This package is not auto-updated.

Last update: 2024-09-20 20:46:49 UTC


README

关于

Losquery 是围绕 Facebook 的 Osquery 的 PHP 封装。使用此包,您可以与 osqueryi(查询控制台/外壳)通信。

安装

Composer

    composer require wrcx/losquery:dev-master

使用

构建查询

    $query = new \Wrcx\Losquery\Losquery();
    $query = $query->select('*')
            ->from("users")
            ->get();

运行查询

    $runner = new \Wrcx\Losquery\Losrunner();
    // json or csv
    echo $runner->run($query, 'json');

注意

该包仍在开发中。

待办事项

  • 测试
  • 安装信息

许可