glpi-project/php-library-glpi

Name: php-library-glpi

Owner: GLPI

Description: GLPI API Client Library for PHP

Created: 2017-08-23 22:20:05.0

Updated: 2018-05-03 13:23:00.0

Pushed: 2018-05-03 13:22:59.0

Homepage: https://glpi-project.github.io/php-library-glpi/

Size: 2806

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

GLPI API Client Library for PHP

GLPI banner

License Follow twitter Project Status: WIP Telegram Group Conventional Commits

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
Synopsis

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

You will be able to call to all the methods that belong to the GLPI REST API, for more information visit the project's website.

Build Status

|Release channel|Beta Channel| |:—:|:—:| |Travis build|Travis build|

Matrix

|GLPI Version|9.1.1|9.1.2|9.1.3|9.1.5|9.1.6|9.2.0| |:—-|—-|—-|—-|—|—|—| |GLPI API Client|1.x|1.x|1.x|1.x|1.x|1.x|

Installation

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

oser require glpi-project/php-library-glpi
Code examples

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

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

uthenticate
{
client->initSessionByCredentials('glpi', 'glpi');
tch (Exception $e) {
cho $e->getMessage();
ie();


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

o something
mHandler = new \Glpi\Api\Rest\ItemHandler($client);
ponse = $itemHandler->getItem('User', 2);
r = json_decode($response['body']);
 "User name: " . $user->name . "\n";
Documentation

We maintain a detailed documentation of the project on the website.

Versioning

In order to provide transparency on our release cycle and to maintain backward compatibility, GLPI is maintained under the Semantic Versioning guidelines. We are committed to following and complying with the rules, the best we can.

See the tags section of our GitHub project for changelogs for each release version. Release announcement posts on the official Teclib' blog contain summaries of the most noteworthy changes made in each release.

Contact

For notices about major changes and general discussion of GLPI development, subscribe to the /r/glpi subreddit. You can also chat with us via IRC in #GLPI on freenode or @glpien on Telegram.

Contribute

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the Issues Dashboard.

Copying

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.