glpi-project/inventory_format

GLPI Inventory format lib

Maintainers

Package info

github.com/glpi-project/inventory_format

pkg:composer/glpi-project/inventory_format

Statistics

Installs: 462 801

Dependents: 0

Suggesters: 0

Stars: 10

Open Issues: 2

1.2.3 2026-01-22 08:46 UTC

README

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

It relies on JSON Schema.

The inventory.schema.json file is the JSON schema itself.

The 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 provided.

Run unit tests

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

Localhost

composer test

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