PHPackages                             inetprocess/libinventoryclient - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. inetprocess/libinventoryclient

ActiveLibrary

inetprocess/libinventoryclient
==============================

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

v2.1.3(1y ago)67.0k12Apache-2.0PHPPHP &gt;=7.0

Since Jan 5Pushed 11mo ago7 watchersCompare

[ Source](https://github.com/inetprocess/libinventoryclient)[ Packagist](https://packagist.org/packages/inetprocess/libinventoryclient)[ RSS](/packages/inetprocess-libinventoryclient/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (7)Versions (13)Used By (2)

inetprocess/libinventoryclient [![Build Status](https://camo.githubusercontent.com/c22c1b508f6253e5e1624814aa3c33036371faddfaef8da75141078a08d9fb41/68747470733a2f2f7472617669732d63692e6f72672f696e657470726f636573732f6c6962696e76656e746f7279636c69656e742e737667)](https://travis-ci.org/inetprocess/libinventoryclient)
============================================================================================================================================================================================================================================================================================================================

[](#inetprocesslibinventoryclient-)

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

Facter
------

[](#facter)

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

### Usage

[](#usage)

#### System Facter

[](#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

[](#sugarcrm-facter)

```
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"
  ...

```

#### Combine facters

[](#combine-facters)

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

Agent
-----

[](#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`.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance51

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~379 days

Recently: every ~0 days

Total

10

Last Release

374d ago

Major Versions

v1.0.1-beta → 2.0.0.x-dev2016-04-15

v1.0.1 → v2.0.02016-04-15

PHP version history (2 changes)v1.0.0-betaPHP &gt;=5.3.3

v2.1.2PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1478ac4a9766e3554dd561a9b0a2bec6046e6d58e2865f52a6e5cfde2fb7fc30?d=identicon)[edyan](/maintainers/edyan)

---

Tags

sugarcrm

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/inetprocess-libinventoryclient/health.svg)

```
[![Health](https://phpackages.com/badges/inetprocess-libinventoryclient/health.svg)](https://phpackages.com/packages/inetprocess-libinventoryclient)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[phpbench/phpbench

PHP Benchmarking Framework

2.0k13.0M627](/packages/phpbench-phpbench)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
