PHPackages                             gossteer/php-library-glpi - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. gossteer/php-library-glpi

ActiveLibrary[HTTP &amp; Networking](/categories/http)

gossteer/php-library-glpi
=========================

GLPI API Client Library for PHP

0.1.0(8y ago)0590GPL-3.0+PHPPHP &gt;=5.6.0

Since Mar 12Pushed 4y agoCompare

[ Source](https://github.com/Gossteer/php-library-glpi)[ Packagist](https://packagist.org/packages/gossteer/php-library-glpi)[ Docs](https://glpi-project.github.io/php-library-glpi/)[ RSS](/packages/gossteer-php-library-glpi/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (6)Versions (3)Used By (0)

GLPI API Client Library for PHP
===============================

[](#glpi-api-client-library-for-php)

[![GLPI banner](https://user-images.githubusercontent.com/29282308/31666160-8ad74b1a-b34b-11e7-839b-043255af4f58.png)](https://user-images.githubusercontent.com/29282308/31666160-8ad74b1a-b34b-11e7-839b-043255af4f58.png)

[![License](https://camo.githubusercontent.com/deb31a02d91aaba766b31333837ff87866874aabf46fdc831712444a2713606e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f676c70692d70726f6a6563742f7068702d6c6962726172792d676c70692e7376673f266c6162656c3d4c6963656e7365)](https://github.com/glpi-project/php-library-glpi/blob/develop/LICENSE.md)[![Follow twitter](https://camo.githubusercontent.com/6d4182208fbf3f9ed33118fabaf026081b38a19529f78d4324945c2905d6ca30/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f474c50495f50524f4a4543542e7376673f7374796c653d736f6369616c266c6162656c3d54776974746572267374796c653d666c61742d737175617265)](https://twitter.com/GLPI_PROJECT)[![Project Status: WIP](https://camo.githubusercontent.com/6c5f86dedcdc1d347f4358aeb845faeed0eddff2ce2965b7edf6212969ef5c01/687474703a2f2f7777772e7265706f7374617475732e6f72672f6261646765732f6c61746573742f7769702e737667)](http://www.repostatus.org/)[![Telegram Group](https://camo.githubusercontent.com/9b8265a3b347979bdb10a6c90771966e028458db3478c099eca653ae1005c008/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54656c656772616d2d47726f75702d626c75652e737667)](https://t.me/glpien)[![Conventional Commits](https://camo.githubusercontent.com/90d8aeee02dec6f5ceeb0423b9ba1aea93519cadbfcb13d62770ac6550780d6e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6e76656e74696f6e616c253230436f6d6d6974732d312e302e302d79656c6c6f772e737667)](https://conventionalcommits.org)

GLPI (*Gestionnaire Libre de Parc Informatique*) is a free IT Asset Management, issue tracking system and service desk solution. This open source software is written in PHP.

It helps companies to manage their information system, since it's able to build an inventory of all the organization's assets and to manage administrative and financial tasks.

Table of Contents
-----------------

[](#table-of-contents)

- [Synopsis](#synopsis)
- [Build Status](#build-status)
- [Compatibility Matrix](#matrix)
- [Installation](#installation)
- [Code examples](#code-examples)
- [Documentation](#documentation)
- [Versioning](#versioning)
- [Contact](#contact)
- [Contribute](#contribute)
- [Copying](#copying)

Synopsis
--------

[](#synopsis)

This library specifically designed for PHP, features several functionalities common to all GLPI APIs, for example:

- HTTP transport to APIs.
- Error handling
- Authentication
- JSON parsing
- Custom Item Types
- Media download/upload
- Batching.

You will be able to call to all the methods that belong to the [GLPI REST API](https://github.com/glpi-project/glpi/blob/master/apirest.md), for more information visit the [project's website](https://glpi-project.github.io/php-library-glpi/).

Build Status
------------

[](#build-status)

**Release channel**Beta Channel[![Travis build](https://camo.githubusercontent.com/4cc1c1f42e6f6b498e535340e0d59a435812b697157e1de9aebeb8ae17f21de6/68747470733a2f2f6170692e7472617669732d63692e6f72672f676c70692d70726f6a6563742f7068702d6c6962726172792d676c70692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/glpi-project/php-library-glpi)[![Travis build](https://camo.githubusercontent.com/ee520afff88e75fc4b99a31292cab5692dd679b955a852fdc0a5b45801404407/68747470733a2f2f6170692e7472617669732d63692e6f72672f676c70692d70726f6a6563742f7068702d6c6962726172792d676c70692e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/glpi-project/php-library-glpi)Matrix
------

[](#matrix)

**GLPI Version**9.1.19.1.29.1.39.1.59.1.69.2.0**GLPI API Client**1.x1.x1.x1.x1.x1.xInstallation
------------

[](#installation)

You will need the following minimum dependencies to use the library (composer will automatic check for the first two):

- PHP &gt;= 5.6.0
- Guzzle &gt;= 7.0
- GLPI &gt;= 9.1.1

```
composer require Gossteer/php-library-glpi
```

Code examples
-------------

[](#code-examples)

It's easy to implement, as you see in the following example:

```
// Instanciate the API client
$client = new Glpi\Api\Rest\Client('http://localhost/glpi/apirest.php/', new GuzzleHttp\Client());

// Authenticate
try {
   $client->initSessionByCredentials('glpi', 'glpi');
} catch (Exception $e) {
   echo $e->getMessage();
   die();
}

// The client handles the session token for you (app token not yet supported)

// do something
$itemHandler = new \Glpi\Api\Rest\ItemHandler($client);
$response = $itemHandler->getItem('User', 2);
$user = json_decode($response['body']);
echo "User name: " . $user->name . "\n";
```

Documentation
-------------

[](#documentation)

We maintain a detailed documentation of the project on the [website](https://glpi-project.github.io/php-library-glpi/).

Versioning
----------

[](#versioning)

In order to provide transparency on our release cycle and to maintain backward compatibility, GLPI is maintained under [the Semantic Versioning guidelines](http://semver.org/). We are committed to following and complying with the rules, the best we can.

See [the tags section of our GitHub project](https://github.com/glpi-project/php-library-glpi/tags) for changelogs for each release version. Release announcement posts on [the official Teclib' blog](http://www.teclib-edition.com/en/communities/blog-posts/) contain summaries of the most noteworthy changes made in each release.

Contact
-------

[](#contact)

For notices about major changes and general discussion of GLPI development, subscribe to the [/r/glpi](http://www.reddit.com/r/glpi) subreddit. You can also chat with us via IRC in [\#GLPI on freenode](http://webchat.freenode.net/?channels=GLPI%5D) or [@glpien on Telegram](https://t.me/glpien).

Contribute
----------

[](#contribute)

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for [contributing](./CONTRIBUTING.md) and then check out one of our issues in the [Issues Dashboard](https://github.com/glpi-project/php-library-glpi/issues).

Copying
-------

[](#copying)

- **Code**: you can redistribute it and/or modify it under the terms of the GNU General Public License ([GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html)).
- **Documentation**: released under Attribution 4.0 International ([CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.8% 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

Unknown

Total

1

Last Release

2981d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf79768b1ab79416d5a10a56ce28316688404b8581ec141324c64ddf81e84e83?d=identicon)[Gossteer](/maintainers/Gossteer)

---

Top Contributors

[![DIOHz0r](https://avatars.githubusercontent.com/u/1426313?v=4)](https://github.com/DIOHz0r "DIOHz0r (135 commits)")[![Naylin15](https://avatars.githubusercontent.com/u/30867977?v=4)](https://github.com/Naylin15 "Naylin15 (27 commits)")[![btry](https://avatars.githubusercontent.com/u/14139801?v=4)](https://github.com/btry "btry (12 commits)")[![Gossteer](https://avatars.githubusercontent.com/u/39259809?v=4)](https://github.com/Gossteer "Gossteer (4 commits)")[![C-Duv](https://avatars.githubusercontent.com/u/1466273?v=4)](https://github.com/C-Duv "C-Duv (2 commits)")[![traviscibot](https://avatars.githubusercontent.com/u/33116358?v=4)](https://github.com/traviscibot "traviscibot (1 commits)")[![tomolimo](https://avatars.githubusercontent.com/u/7569958?v=4)](https://github.com/tomolimo "tomolimo (1 commits)")[![ajsb85](https://avatars.githubusercontent.com/u/663460?v=4)](https://github.com/ajsb85 "ajsb85 (1 commits)")

---

Tags

apiclientrestglpi

### Embed Badge

![Health badge](/badges/gossteer-php-library-glpi/health.svg)

```
[![Health](https://phpackages.com/badges/gossteer-php-library-glpi/health.svg)](https://phpackages.com/packages/gossteer-php-library-glpi)
```

###  Alternatives

[cybercog/youtrack-rest-php

YouTrack REST API PHP Client.

37149.2k3](/packages/cybercog-youtrack-rest-php)[rastor/jira-client

A simple PHP JIRA REST client

2070.7k](/packages/rastor-jira-client)[meteocontrol/vcom-api-client

HTTP Client for meteocontrol's VCOM API - The VCOM API enables you to directly access your data on the meteocontrol platform.

175.7k1](/packages/meteocontrol-vcom-api-client)[jonathanraftery/bullhorn-rest-client

Simple REST client for the Bullhorn API, including automated OAuth2 login

1142.7k](/packages/jonathanraftery-bullhorn-rest-client)[repat/plentymarkets-rest-client

REST Client for Plentymarkets

1510.0k](/packages/repat-plentymarkets-rest-client)[laragear/api-manager

Manage multiple REST servers to make requests in few lines and fluently.

161.8k](/packages/laragear-api-manager)

PHPackages © 2026

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