PHPackages                             boddigr/itopapi - 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. boddigr/itopapi

AbandonedArchivedLibrary[API Development](/categories/api)

boddigr/itopapi
===============

Php library for accessing the iTop API

1.0.3(6y ago)86832EUPL-1.1PHPPHP &gt;=5.6.0

Since May 27Pushed 6y ago5 watchersCompare

[ Source](https://github.com/gboddin/iTopApi)[ Packagist](https://packagist.org/packages/boddigr/itopapi)[ Docs](https://github.com/ec-europa/iTopApi)[ RSS](/packages/boddigr-itopapi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (16)Used By (0)

iTopApi PHP
===========

[](#itopapi-php)

[![Build Status](https://camo.githubusercontent.com/fbbd539d90c3b42efd6e181ff7ea3985013c8c433f8ae693da2defd4505047d0/68747470733a2f2f7472617669732d63692e6f72672f65632d6575726f70612f69546f704170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ec-europa/iTopApi)[![Build Status](https://camo.githubusercontent.com/4de85f15d1057537dd2dd91ef18887383569c9e903822154a69dabd633704818/68747470733a2f2f64726f6e652e66706669732e65752f6170692f6261646765732f65632d6575726f70612f69546f704170692f7374617475732e737667)](https://drone.fpfis.eu/ec-europa/iTopApi)

iTopApi PHP is an helper class to use and query the [iTop](https://wiki.openitop.org/doku.php) API from your PHP scripts.

Installation **(with composer)** :
----------------------------------

[](#installation-with-composer-)

```
composer require ec-europa/itopapi

```

Usage
-----

[](#usage)

### Getting data

[](#getting-data)

```
require 'vendor/autoload.php';

$iTopAPI = new \iTopApi\ITopClient( 'http://localhost/itop', 'itopUser', 'iTopPassword' );

//disable SSL checks ?
//$iTopAPI->setCertificateCheck(false);

$query = sprintf("SELECT Servers WHERE environment = '%s'",'development');

$serversRequest = $iTopAPI->coreGet("Servers",$query);

$servers = $serverRequest['objects'];
```

### Creating data

[](#creating-data)

```
require 'vendor/autoload.php';

$iTopAPI = new \iTopApi\ITopClient( 'http://localhost/itop', 'itopUser', 'iTopPassword' );

//disable SSL checks ?
//$iTopAPI->setCertificateCheck(false);

$request = $iTopAPI->coreCreate("Servers",array(
  'hostname' => 'localhost',
  'memory' => 2048,
  'cpu' => 4,
  'location' => 'dc1'
));
```

### Updating data

[](#updating-data)

```
require 'vendor/autoload.php';

$iTopAPI = new \iTopApi\ITopClient( 'http://localhost/itop', 'itopUser', 'iTopPassword' );

//disable SSL checks ?
//$iTopAPI->setCertificateCheck(false);

$request = $iTopAPI->coreUpdate("Servers",array(
  'hostname' => 'localhost'
),array(
  'memory' => 1024
));
```

### Using object oriented

[](#using-object-oriented)

```
require 'vendor/autoload.php';

$iTopAPI = new \iTopApi\ITopClient( 'http://localhost/itop', 'itopUser', 'iTopPassword' );

//disable SSL checks ?
//$iTopAPI->setCertificateCheck(false);

/**
 * Query and iterate
 */

$servers = $iTopAPI->getObjects("Server",
  array(
    'name' => 'server001'
  )
);

foreach($servers as $server) {
  echo $server->name.' is '.$server->status_friendlyname;
  $server->name = 'server001-eu';
  $server->save();
}

/**
 * Deletes a new server :
 */
if($server->status_friendlyname == 'decommissioning')
  $server->delete();

/**
 * Creates a new server :
 */
$server = $iTopClient->getNewObject('Server');

$server->name = 'server002';
$server->status_friendlyname = 'deployed';
$server->save();
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 58.7% 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 ~123 days

Recently: every ~364 days

Total

14

Last Release

2407d ago

Major Versions

0.5.2 → 1.0.02015-11-09

PHP version history (2 changes)0.4.1PHP &gt;=5.3.0

1.0.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c5706004cb7e6ff55d100c8649a7c33039c28f9cf7b3af54343bb5db8d874db?d=identicon)[gboddin](/maintainers/gboddin)

---

Top Contributors

[![gboddin](https://avatars.githubusercontent.com/u/4395092?v=4)](https://github.com/gboddin "gboddin (54 commits)")[![gervasek](https://avatars.githubusercontent.com/u/14055017?v=4)](https://github.com/gervasek "gervasek (36 commits)")[![andreicdinu](https://avatars.githubusercontent.com/u/15014678?v=4)](https://github.com/andreicdinu "andreicdinu (1 commits)")[![verbral](https://avatars.githubusercontent.com/u/39997374?v=4)](https://github.com/verbral "verbral (1 commits)")

---

Tags

phpapiclientitop

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/boddigr-itopapi/health.svg)

```
[![Health](https://phpackages.com/badges/boddigr-itopapi/health.svg)](https://phpackages.com/packages/boddigr-itopapi)
```

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1243.1k1](/packages/skeeks-yii2-google-api)

PHPackages © 2026

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