2017 © Pedro PelĂĄez
 

library libinventoryclient

This library provides various classes to get information about a SugarCRM Installation

image

inetprocess/libinventoryclient

This library provides various classes to get information about a SugarCRM Installation

  • Friday, April 15, 2016
  • by edyan
  • Repository
  • 7 Watchers
  • 6 Stars
  • 6,267 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 6 % Grown

The README.md

inetprocess/libinventoryclient Build Status

PHP library to fetch information from the system and SugarCRM and send it to an inventory server (REST API), (*1)

Facter

Fetch informations about the system or a SugarCRM Instance and return a key, value PHP array., (*2)

Usage

System Facter

use Inet\Inventory\Facter\SystemFacter;
$facter = new SystemFacter();
$facts = $facter->getFacts();
var_dump($facts);
array(20) {
  'system_uptime' =>
  array(4) {
    'seconds' =>
    int(2353764)
    'hours' =>
    double(653)
    'days' =>
    double(27)
    'uptime' =>
    string(40) "27 days, 5 hours, 49 minutes, 54 seconds"
  }
  'architecture' =>
  string(6) "x86_64"
  ...


#### SugarCRM Facter
```php
use Psr\Log\NullLogger;
use Inet\SugarCRM\Application;
use Inet\SugarCRM\Database\SugarPDO;
use Inet\Inventory\Facter\SugarFacter;

$app = new Application(new NullLogger(), 'path/to/sugarcrm');
$facter = new SugarFacter($app, new SugarPDO($app));
$facts = $facter->getFacts();
var_dump($facts);

array(17) { 'version' => string(7) "7.6.0.0" 'db_version' => string(7) "7.6.0.0" 'flavor' => string(3) "PRO" 'build' => string(4) "1552" 'build_timestamp' => string(18) "2015-06-05 03:29pm" ..., (*3)

#### Combine facters
```php
use Inet\Inventory\Facter\MultiFacterFacter;
$facter = new MultiFacterFacter(array($system_facter));
$facter->addFacter($sugar_facter);
$facts = $facter->getFacts();

Agent

Send information to a REST API. Three entities are used: * Account : Client name. * Server : Sugarcrm host and OS informations. * SugarCRM instance: Installed SugarCRM instance. It is related to an account and a server. The API is described in src/InventoryService.json., (*4)

The Versions

15/04 2016

dev-master

9999999-dev

This library provides various classes to get information about a SugarCRM Installation

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Rémi Sauvat

sugarcrm

15/04 2016

v1.0.1

1.0.1.0

This library provides various classes to get information about a SugarCRM Installation

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Rémi Sauvat

sugarcrm

06/01 2016

v1.0.1-beta

1.0.1.0-beta

This library provides various classes to get information about a SugarCRM Installation

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by Rémi Sauvat

sugarcrm

05/01 2016

v1.0.0-beta

1.0.0.0-beta

This library provides various classes to get information about a SugarCRM Installation

  Sources   Download

The Requires

 

The Development Requires

by Rémi Sauvat

sugarcrm