PHPackages                             xubio/sdk - 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. xubio/sdk

ActiveLibrary[API Development](/categories/api)

xubio/sdk
=========

Xubio SDK Api Integration Library

v0.1.0(5y ago)03MITPHP

Since Apr 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mgscreativa/xubio-sdk-php)[ Packagist](https://packagist.org/packages/xubio/sdk)[ RSS](/packages/xubio-sdk/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Xubio SDK Api Integration Library
=================================

[](#xubio-sdk-api-integration-library)

- [Install](#install)
- [Specific methods](#specific-methods)

Install
-------

[](#install)

### With Composer

[](#with-composer)

From command line

```
composer require xubio/sdk:0.1.0

```

As a dependency in your project's composer.json

```
{
    "require": {
        "xubio/sdk": "0.1.0"
    }
}
```

### By downloading

[](#by-downloading)

1. Clone/download this repository
2. Copy `lib` folder to your project's desired folder.

Specific methods
----------------

[](#specific-methods)

### Return Values

[](#return-values)

Api returns all values as **array**

### Configure your credentials

[](#configure-your-credentials)

- Get your **CLIENT\_ID** and **SECRET\_ID** from Xubio

```
require_once ('lib/xubio.php');

try {
    $xb = new XubioApi('CLIENT_ID', 'SECRET_ID');
} catch (Exception $e) {
    echo $e->getMessage() . ' ' . $e->getCode();
}
```

### Methods

[](#methods)

#### Get Client

[](#get-client)

```
$client = $xb->get_client($id);

print_r($client);
```

#### Create Client

[](#create-client)

```
$client = array(
    "nombre" => 'Juan Perez',
    "identificacionTributaria" => array(
        'nombre' => 'CUIT',
        'codigo' => 'CUIT',
        'id' => '9',
    ),
    "categoriaFiscal" => array(
        'nombre' => 'Responsable Inscripto',
        'codigo' => 'RI',
        'id' => '1',
    ),
    "provincia" => array(
        'nombre' => 'Ciudad Autónoma de Buenos Aires',
        'codigo' => 'CIUDAD_AUTONOMA_DE_BUENOS_AIRES',
        'id' => '43',
    ),
    "direccion" => 'dirección 123',
    "email" => 'test@test.com',
    "telefono" => '1122334455',
    "razonSocial" => 'Empresa Test',
    "codigoPostal" => '1234',
    "cuentaCompra_id" => array (
        "nombre" => "Proveedores",
        "codigo" => "PROVEEDORES",
        "id" => -7,
    ),
    "cuentaVenta_id" => array (
        "nombre" => "Deudores por Venta",
        "codigo" => "DEUDORES_POR_VENTA",
        "id" => -3,
    ),
    "pais" => array (
        "nombre" => "Argentina",
        "codigo" => "ARGENTINA",
        "id" => 1,
    ),
    "localidad" => array (
        "nombre" => 'Floresta',
        "codigo" => 'FLORESTA',
        "id" => '43',
    ),
    "descripcion" => "cLIENTE CREADO DESE API Xubio",
    "CUIT" => '30144555774',
);

$result = $xb->create_client($client);

print_r($result);
```

#### Get Products

[](#get-products)

```
$productos = $xb->get_product();

print_r($productos);
```

#### Create Invoice

[](#create-invoice)

```
$invoiceData = array(
    "circuitoContable" => array (
        "ID" => -2,
    ),
    "descripcion" => "Invoide description",
    "fecha" => date("Y-m-d\Z", time()),
    "moneda" => array (
        "ID" => -2,
    ),
    "condicionDePago" => 7,
    "cotizacion" => 1,
    "cotizacionListaDePrecio" => 1,
    "deposito" => array (
        "ID" => -2,
    ),
    "fechaVto" => date("Y-m-d\Z", time()),
    "cliente" => array (
        "ID" => "XXXX",
    ),
    "facturaNoExportacion" => false,
    "porcentajeComision" => 0,
    "puntoVenta" => array (
        "ID" => "XXXX",
    ),
    "transaccionProductoItems" => array (
        array (
            "cantidad" => 3,
            "precio" => 160,
            "producto" => array (
                "ID" => "XXXX",
            ),
        ),
        array (
            "cantidad" => 6,
            "precio" => 360,
            "producto" => array (
                "ID" => "XXXX",
            ),
        ),
        array (
            "cantidad" => 1,
            "precio" => 60,
            "producto" => array (
                "ID" => "XXXX",
            ),
        ),
    ),
    "tipo" => 1,
);

$result = $xb->create_invoice($invoiceData);

print_r($result);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

1850d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1f16bb8a00e10ae15390a76d36182c9cc8f95c802d869a963d898dd196fcc13?d=identicon)[mgscreativa](/maintainers/mgscreativa)

---

Top Contributors

[![mgscreativa](https://avatars.githubusercontent.com/u/1286632?v=4)](https://github.com/mgscreativa "mgscreativa (2 commits)")

---

Tags

sdkxubio

### Embed Badge

![Health badge](/badges/xubio-sdk/health.svg)

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

###  Alternatives

[appwilio/cdek-sdk

CDEK API SDK (cdek.ru)

406.5k](/packages/appwilio-cdek-sdk)[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

223.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

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