PHPackages                             pringgojs/laravel-itop - 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. pringgojs/laravel-itop

ActiveLibrary[API Development](/categories/api)

pringgojs/laravel-itop
======================

Small Laravel DB-first wrapper for iTop: models, API client and payload builders.

1.0.1(2mo ago)05↓50%MITPHPPHP ^8.0

Since Mar 3Pushed 2mo agoCompare

[ Source](https://github.com/pringgojs/laravel-itop)[ Packagist](https://packagist.org/packages/pringgojs/laravel-itop)[ RSS](/packages/pringgojs-laravel-itop/feed)WikiDiscussions main Synced 1mo ago

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

Laravel iTop Wrapper
====================

[](#laravel-itop-wrapper)

This package is a very small, database‑centric wrapper around iTop for Laravel projects. It provides Eloquent models corresponding to the iTop schema, a simple API client (`ApiService`), and a handful of helpers/builders to construct payloads for the iTop REST interface.

It **does not** include any migrations, configuration defaults, or automatic synchronisation/forwarding logic – those responsibilities are left to the consuming application. Think of it as a lightweight toolkit rather than a full integration suite.

---

Contents
--------

[](#contents)

- Eloquent models mirroring common iTop tables (`Ticket`, `Attachment`, `Contact`, etc.).
- `Services\ApiService` – a minimal HTTP client for the iTop REST API.
- `Services\ItopServiceBuilder` – static helpers to build JSON payloads for ticket creation, attachment upload, state updates, etc.
- Traits for ticket relations and utility methods.

There is no default configuration schema and no supplied migrations.

📦 Installation
--------------

[](#-installation)

```
composer require pringgojs/laravel-itop
```

The service provider is auto‑discovered by Laravel. If you need to override the empty `itop.php` configuration file you may publish it:

```
php artisan vendor:publish \
    --provider="Pringgojs\LaravelItop\LaravelItopServiceProvider" \
    --tag="config"
```

No migrations are included; the models assume that your database already contains the appropriate iTop tables.

🔧 Configuration
---------------

[](#-configuration)

The default `config/itop.php` is empty. Add whatever settings your application requires (e.g. base URLs, credentials) and resolve them when instantiating the services.

🛠 Usage
-------

[](#-usage)

The package does not provide high‑level jobs or commands. Use the provided classes directly in your own code. For example, create a client and send a request:

```
$itop = new \Pringgojs\LaravelItop\Services\ApiService(
    'https://itop.example.com',
    'admin',
    'secret'
);

$response = $itop->callApi([
    'operation' => 'core/create',
    'class'     => 'UserRequest',
    'fields'    => [/* ... */],
]);
```

Helpers are available to build the payloads:

```
$payload = \Pringgojs\LaravelItop\Services\ItopServiceBuilder::payloadTicketCreate([
    'title' => 'Example',
    // …
]);
```

Models in `src/Models` can be used to read/write existing iTop tables with Eloquent.

📁 Structure
-----------

[](#-structure)

The package is deliberately small – the main directories are:

- `src/Models` – Eloquent representations of iTop tables.
- `src/Services` – HTTP client and payload builders.
- `src/Builders` – convenience methods for common iTop request formats.
- `src/Traits` &amp; `src/Utils` – assorted helpers.

🧪 Testing
---------

[](#-testing)

There are no package tests; integrate models and services directly in your application’s test suite as needed.

📚 Changelog
-----------

[](#-changelog)

See [CHANGELOG.md](CHANGELOG.md) for release notes and version history.

---

Feel free to contribute or report issues at the repository on GitHub.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance88

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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 ~10 days

Total

2

Last Release

61d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/26dce680b0d45373870a699f418ee2daa8d9df3177cc22cf9a4b2e2e740d371f?d=identicon)[pringgojs](/maintainers/pringgojs)

---

Top Contributors

[![pringgojs](https://avatars.githubusercontent.com/u/16914951?v=4)](https://github.com/pringgojs "pringgojs (16 commits)")

---

Tags

integrationitoplaravelwrapperlaravelitopwrapperintegration

### Embed Badge

![Health badge](/badges/pringgojs-laravel-itop/health.svg)

```
[![Health](https://phpackages.com/badges/pringgojs-laravel-itop/health.svg)](https://phpackages.com/packages/pringgojs-laravel-itop)
```

###  Alternatives

[codedredd/laravel-soap

A SoapClient wrapper integration for Laravel

221516.6k3](/packages/codedredd-laravel-soap)[aerni/laravel-spotify

A Laravel wrapper for the Spotify Web API

209145.6k](/packages/aerni-laravel-spotify)[lasserafn/laravel-economic

Economic REST wrapper for Laravel

1118.5k](/packages/lasserafn-laravel-economic)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)[casinelli/laravel-campaignmonitor

A Laravel 5 wrapper for Campaign Monitor

1444.7k](/packages/casinelli-laravel-campaignmonitor)[deviddev/billingo-api-v3-wrapper

This is a simple Laravel wrapper for Billingo (billingo.hu) API V3 SwaggerHUB PHP SDK.

2216.3k](/packages/deviddev-billingo-api-v3-wrapper)

PHPackages © 2026

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