PHPackages                             vitorbari/glpi-webservice-php-wrapper - 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. [API Development](/categories/api)
4. /
5. vitorbari/glpi-webservice-php-wrapper

ActiveLibrary[API Development](/categories/api)

vitorbari/glpi-webservice-php-wrapper
=====================================

PHP wrapper class for GLPI Webservice Plugin

2.0.1-alpha(9y ago)11963[1 issues](https://github.com/vitorbari/glpi-webservice-php-wrapper/issues)ApachePHPPHP &gt;=5.6.0

Since Aug 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/vitorbari/glpi-webservice-php-wrapper)[ Packagist](https://packagist.org/packages/vitorbari/glpi-webservice-php-wrapper)[ RSS](/packages/vitorbari-glpi-webservice-php-wrapper/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (12)Used By (0)

glpi-webservice-php-wrapper
===========================

[](#glpi-webservice-php-wrapper)

[![Build Status](https://camo.githubusercontent.com/0ce6ae0f0d9a061543e597c7cbab010b628fde4352071a90c0eee4d5489bf87d/68747470733a2f2f7472617669732d63692e6f72672f7669746f72626172692f676c70692d776562736572766963652d7068702d777261707065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vitorbari/glpi-webservice-php-wrapper)[![StyleCI](https://camo.githubusercontent.com/cef0c3e6f786c98f4f212ee1864228cc2f42d727e6785beb49c0b921cf582544/68747470733a2f2f7374796c6563692e696f2f7265706f732f35313134393035342f736869656c64)](https://styleci.io/repos/51149054)[![Coverage Status](https://camo.githubusercontent.com/9949e6a1b6766b5a43a4ad7f4fa0ea9f94c5a0a640a4193a62f2ce5b93db9456/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7669746f72626172692f676c70692d776562736572766963652d7068702d777261707065722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/vitorbari/glpi-webservice-php-wrapper?branch=master)

Introduction
------------

[](#introduction)

A simple object orientated wrapper for the [GLPI Webservice Plugin](https://forge.glpi-project.org/projects/webservices), written in PHP.

The intention of this class is to allow PHP application developers quick and easy interaction with the GLPI Webservice Plugin, without having to worry about the finer details of the Webservice.

Installation
------------

[](#installation)

Via Composer.

```
composer require vitorbari/glpi-webservice-php-wrapper

```

Usage Example
-------------

[](#usage-example)

```
use VitorBari\GLPIWebservice\Services\Soap;
use VitorBari\GLPIWebservice\GLPIWebservice;

// Create soap adapter
// Currently, only soap is implemented, but the plugin also supports XMLRPC and REST
$endpoint = 'http://[glpi-url]/plugins/webservices/soap.php';
$soapClient = new SoapClient(null, array('uri' => $endpoint, 'location' => $endpoint));
$service = new Soap($soapClient);

$glpi = new GLPIWebservice($service);

$glpi->auth('username', 'password');
$glpi->listUserGroups();

// You can use method chaining
$glpi->auth('username', 'password')->listUserGroups();
```

Methods
-------

[](#methods)

### Not authenticated methods

[](#not-authenticated-methods)

- `$glpi->test()` Simple ping test method
- `$glpi->status()` Give the GLPI status
- `$glpi->listAllMethods()` List all the method allowed to current client
- `$glpi->listEntities()` Return list of current entities defined by server configuration for the client
- `$glpi->countEntities()` Return number of current entities defined by server configuration for the client
- `$glpi->listKnowBaseItems()` *Not Implemented*
- `$glpi->getDocument($document, $ticket = null, $id2name = false)` Retrieve a document if the authenticated user can view it

### Session

[](#session)

- `$glpi->auth($glpi_user, $glpi_pass, $ws_user = null, $ws_pass = null)` Authenticate a user
- `$glpi->logout()` Logout current user
- `$glpi->getSession()` Get current session
- `$glpi->getMyInfo($id2name=false)` List the information about the authenticated user

### Authenticated methods

[](#authenticated-methods)

#### Ticket

[](#ticket)

- `$glpi->getTicket($ticket, $id2name=false)` Retrieve information on a existing ticket if the authenticated user can view it
- `$glpi->createTicket($title, $content, $params = array())` Create a new ticket
- `$glpi->listTickets($status=null, $id2name=false)` List the Tickets the current authenticated user can view
- `$glpi->countTickets($status=null)` Count the Tickets the current authenticated user can view
- `$glpi->addTicketDocument($ticket, $name, $uri = null, $base64 = null, $content = null)` Add a document to an existing ticket if the authenticated user can edit it
- `$glpi->addTicketFollowup($ticket, $content, $users_login = false, $source = null, $private = null, $reopen = null, $close = null)` Add a followup to an existing ticket if the authenticated user can edit it
- `$glpi->addTicketObserver($ticket, $user = null)` Add a new observer to an existing ticket
- `$glpi->setTicketSatisfaction($ticket, $satisfaction, $comment = null)` Answer to the ticket satisfaction survey
- `$glpi->setTicketValidation($approval, $status, $comment = null)` Answer to a ticket approval request
- `$glpi->setTicketSolution($ticket, $type, $solution)` Solution for a ticket
- `$glpi->setTicketAssign($ticket, $user = null, $group = null, $supplier = null, $user_email = null, $use_email_notification = null)` Assign a ticket

#### Dropdown

[](#dropdown)

- `$glpi->listDropdownValues($dropdown)` Search for values in a dropdown table

#### Group

[](#group)

- `$glpi->listGroups()` List groups of the current entities
- `$glpi->listUserGroups()` List groups of connected user
- `$glpi->countGroups()` Count groups of the current entities

#### Object

[](#object)

- `$glpi->getObject($itemtype, $id, $params = array())` Retrieve information on a existing object if the authenticated user is a super-admin
- `$glpi->createObjects()` *Not Implemented*
- `$glpi->deleteObjects()` *Not Implemented*
- `$glpi->updateObjects()` *Not Implemented*
- `$glpi->linkObjects()` *Not Implemented*
- `$glpi->listObjects()` *Not Implemented*

Requirements
------------

[](#requirements)

- PHP &gt;= 5.6.0
- PHP Soap Extension

Versions
--------

[](#versions)

It has only been tested on GLPI v0.85.3 and Webservice Plugin v1.5.0.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~26 days

Recently: every ~5 days

Total

11

Last Release

3350d ago

Major Versions

1.0.8-alpha → 2.0.0-alpha2017-04-28

PHP version history (2 changes)1.0.0-alphaPHP &gt;=5.3.0

2.0.1-alphaPHP &gt;=5.6.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1184252?v=4)[Vitor Bari Buccianti](/maintainers/vitorbari)[@vitorbari](https://github.com/vitorbari)

---

Top Contributors

[![vitorbari](https://avatars.githubusercontent.com/u/1184252?v=4)](https://github.com/vitorbari "vitorbari (52 commits)")

---

Tags

glpiphpwebservicewebserviceglpi

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vitorbari-glpi-webservice-php-wrapper/health.svg)

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

###  Alternatives

[phpcfdi/sat-ws-descarga-masiva

Librería para usar el servicio web del SAT de Descarga Masiva

17575.5k3](/packages/phpcfdi-sat-ws-descarga-masiva)[njasm/soundcloud

Soundcloud API Wrapper written in PHP with OAuth 2.0 support

100164.6k2](/packages/njasm-soundcloud)[camcima/camcima-soap-client

Wrapper around PHP SoapClient class

2672.5k2](/packages/camcima-camcima-soap-client)[multinexo/php-afip-ws

Librería PHP para interactuar con el webservice de AFIP (Argentina -&gt; factura electrónica).

229.9k](/packages/multinexo-php-afip-ws)

PHPackages © 2026

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