PHPackages                             glpi-project/inventory\_format - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. glpi-project/inventory\_format

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

glpi-project/inventory\_format
==============================

GLPI Inventory format lib

1.2.3(5mo ago)10517.4k↓11.5%14[2 PRs](https://github.com/glpi-project/inventory_format/pulls)MITPHPPHP &gt;=7.4CI passing

Since Jan 18Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/glpi-project/inventory_format)[ Packagist](https://packagist.org/packages/glpi-project/inventory_format)[ RSS](/packages/glpi-project-inventory-format/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (8)Versions (53)Used By (0)

GLPI Inventory format
---------------------

[](#glpi-inventory-format)

This is the specification for inventory format integrated in GLPI core.

It relies on [JSON Schema](https://json-schema.org).

The [inventory.schema.json](inventory.schema.json) file is the JSON schema itself.

The [lib/php](lib/php) directory contains a PHP class that cans handle conversion from XML files to new format; with some adjustments. You can either use directly `Convert` from your project, or rely on the [executable script](bin/convert) provided.

Run unit tests
--------------

[](#run-unit-tests)

You can use the local PHP environment or the provided Docker image to run unit tests.

### Localhost

[](#localhost)

```
composer test
```

### With Docker Compose

[](#with-docker-compose)

```
docker compose run --rm ci
```

To use another PHP version:

```
PHP_VERSION=7.4 docker compose run --rm --build ci
```

PHP\_VERSION can be set from 7.4 to 8.5 (default is 8.3).

In case, you need a shell in the container to run some tests manually:

```
docker compose run --rm ci bash
```

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance84

Actively maintained with recent releases

Popularity46

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 65.6% of commits — single point of failure

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 ~36 days

Recently: every ~110 days

Total

51

Last Release

163d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/224733?v=4)[Johan Cwiklinski](/maintainers/trasher)[@trasher](https://github.com/trasher)

![](https://www.gravatar.com/avatar/507319e852f4380d60cd24f301c28b06e6d2dab2b9d14a35ca418ef20af5dca2?d=identicon)[glpi](/maintainers/glpi)

---

Top Contributors

[![trasher](https://avatars.githubusercontent.com/u/224733?v=4)](https://github.com/trasher "trasher (179 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (31 commits)")[![g-bougard](https://avatars.githubusercontent.com/u/12514489?v=4)](https://github.com/g-bougard "g-bougard (23 commits)")[![stonebuzz](https://avatars.githubusercontent.com/u/7335054?v=4)](https://github.com/stonebuzz "stonebuzz (17 commits)")[![cedric-anne](https://avatars.githubusercontent.com/u/33253653?v=4)](https://github.com/cedric-anne "cedric-anne (16 commits)")[![cconard96](https://avatars.githubusercontent.com/u/17678637?v=4)](https://github.com/cconard96 "cconard96 (2 commits)")[![SebSept](https://avatars.githubusercontent.com/u/2592502?v=4)](https://github.com/SebSept "SebSept (2 commits)")[![Naylin15](https://avatars.githubusercontent.com/u/30867977?v=4)](https://github.com/Naylin15 "Naylin15 (1 commits)")[![NetItUp-FrancescoPasqualatto](https://avatars.githubusercontent.com/u/140807340?v=4)](https://github.com/NetItUp-FrancescoPasqualatto "NetItUp-FrancescoPasqualatto (1 commits)")[![po1vo](https://avatars.githubusercontent.com/u/3443972?v=4)](https://github.com/po1vo "po1vo (1 commits)")

---

Tags

glpihacktoberfestinventoryjson-schemaglpiautomatic inventory

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/glpi-project-inventory-format/health.svg)

```
[![Health](https://phpackages.com/badges/glpi-project-inventory-format/health.svg)](https://phpackages.com/packages/glpi-project-inventory-format)
```

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[w7corp/easywechat

微信SDK

10.4k834.8k64](/packages/w7corp-easywechat)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

293952.6k33](/packages/craftcms-feed-me)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

3014.6M26](/packages/vaimo-composer-patches)

PHPackages © 2026

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