PHPackages                             xi/netvisor - 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. xi/netvisor

ActiveLibrary[API Development](/categories/api)

xi/netvisor
===========

Netvisor API interface

36.2k14[2 issues](https://github.com/xi-project/xi-netvisor/issues)[2 PRs](https://github.com/xi-project/xi-netvisor/pulls)PHP

Since May 6Pushed 4y ago2 watchersCompare

[ Source](https://github.com/xi-project/xi-netvisor)[ Packagist](https://packagist.org/packages/xi/netvisor)[ RSS](/packages/xi-netvisor/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (6)Used By (0)

Xi Netvisor
===========

[](#xi-netvisor)

Netvisor API interface for PHP 5.3+.

[![Build Status](https://camo.githubusercontent.com/c8ddca2b95c66283d77ea91fa3c1645dd00a31f3220126cdc6ff80ff292c65ea/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f78692d70726f6a6563742f78692d6e65747669736f722e706e67)](https://travis-ci.org/xi-project/xi-netvisor)

Interfaces
----------

[](#interfaces)

- None yet

Before you start hacking away
-----------------------------

[](#before-you-start-hacking-away)

You must do the following things to get everything up and running:

- Get your partner ID and key from Netvisor
- Get access to Netvisor web management page (testing environment has its own management page)
- Activate use of external interfaces in your management page
- Create new interface ID &amp; key with your management page (same as above).

Usage
-----

[](#usage)

### Configuration

[](#configuration)

Most of the configuration parameters should be obtained from Netvisor.

```
netvisor.host           = "https://www.netvisor.biz"         // Test server is "http://integrationdemo.netvisor.fi"
netvisor.sender         = "Testiclient"                      // Pick a name that describes your service
netvisor.customerId     = "XX_yyyy_1yyy"                     // Create manually in your Netvisor management page
netvisor.partnerId      = "Xxx_yyy"                          // Obtain from your Netvisor contact
netvisor.organizationId = "2521043-1"                        // Your company ID

netvisor.userKey        = "D953E3D10457F778B009F88B038CC3C7" // Create manually in your Netvisor management page
netvisor.partnerKey     = "3BCBFB382CE884YD6C8D4F4FC1C2AC95" // Obtain from your Netvisor contact

netvisor.language       = "FI"
netvisor.enabled        = true

```

### Initialization

[](#initialization)

```
$config   = new Xi\Netvisor\Config(...);       // Use the parameters described above.
$netvisor = new Xi\Netvisor\Netvisor($config);
```

### Constructing XML

[](#constructing-xml)

You can instantiate a certain type of a *Resource* (e.g. `Xi\Netvisor\Resource\Xml\SalesInvoice`). All *Resources* should extend `Xi\Netvisor\Resource\Xml\Root` and implement `getDtdPath()` to return a file path which points to a correct DTD file (used for validation).

Resource's mandatory parameters are given in the constructor. Optional values can be set via setters.

#### SalesInvoice

[](#salesinvoice)

```
$invoice = new Xi\Netvisor\Resource\Xml\SalesInvoice(...);

$invoiceProductLine = new Xi\Netvisor\Resource\Xml\SalesInvoiceProductLine(...);

$invoice->addSalesInvoiceProductLine($invoiceProductLine);

$netvisor->addSalesInvoice($invoice);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/426d650acd3c8b669bd59df3b385bd5d09c42a5c5085d86879d1dda17bbca544?d=identicon)[xi-project](/maintainers/xi-project)

![](https://www.gravatar.com/avatar/3ba89395df6a300cbd336d7b0fd2de2cb18e5c06a74a103d5487dff6ff727e8c?d=identicon)[artur-gajewski](/maintainers/artur-gajewski)

---

Top Contributors

[![panunu](https://avatars.githubusercontent.com/u/1004036?v=4)](https://github.com/panunu "panunu (75 commits)")[![PKJedi](https://avatars.githubusercontent.com/u/465797?v=4)](https://github.com/PKJedi "PKJedi (9 commits)")[![HenriVesala](https://avatars.githubusercontent.com/u/965788?v=4)](https://github.com/HenriVesala "HenriVesala (7 commits)")[![puppe0](https://avatars.githubusercontent.com/u/506220?v=4)](https://github.com/puppe0 "puppe0 (1 commits)")

### Embed Badge

![Health badge](/badges/xi-netvisor/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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