glpi-project / inventory_format
GLPI Inventory format lib
1.2.3
2026-01-22 08:46 UTC
Requires
- php: >=7.4
- ext-ctype: *
- ext-curl: *
- ext-json: *
- ext-libxml: *
- ext-simplexml: *
- seld/jsonlint: ^1.11
- swaggest/json-schema: ^0.12.43
- symfony/polyfill-php81: ^1.33
Requires (Dev)
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^1.12
- phpstan/phpstan-deprecation-rules: ^1.2
- phpunit/phpunit: ^9.6
- squizlabs/php_codesniffer: ^4.0
- dev-main
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.36
- 1.1.35
- 1.1.34
- 1.1.33
- 1.1.32
- 1.1.31
- 1.1.30
- 1.1.29
- 1.1.28
- 1.1.27
- 1.1.26
- 1.1.25
- 1.1.24
- 1.1.23
- 1.1.22
- 1.1.21
- 1.1.20
- 1.1.19
- 1.1.18
- 1.1.17
- 1.1.16
- 1.1.15
- 1.1.14
- 1.1.13
- 1.1.12
- 1.1.11
- 1.1.10
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2026-04-13 12:04:56 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