PHPackages                             saulmoralespa/vendes-facil - 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. saulmoralespa/vendes-facil

ActiveLibrary[API Development](/categories/api)

saulmoralespa/vendes-facil
==========================

vendesfacil API PHP

1.0.0(7y ago)05MITPHPPHP &gt;=5.6

Since Apr 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/saulmoralespa/vendes-facil)[ Packagist](https://packagist.org/packages/saulmoralespa/vendes-facil)[ RSS](/packages/saulmoralespa-vendes-facil/feed)WikiDiscussions master Synced yesterday

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

VendesFacil API PHP
===================

[](#vendesfacil-api-php)

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

[](#installation)

Use composer package manager

```
composer require saulmoralespa/vendes-facil
```

#### Bootstrapping autoloader and instantiating a client

[](#bootstrapping-autoloader-and-instantiating-a-client)

```
// ... please, add composer autoloader first
include_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

//or load  path
//require_once ("/path/to/vendes-facil/src/autoload.php");

// import client class
use VendesFacil\Client;

// instantiate

$clientId = '';
$secret = '';

$vendeFacil = Client($clientId, $secret);
$vendeFacil->sandbox(true); //true for tests or false for production
```

### Get token

[](#get-token)

```
try{
    $data = $vendeFacil->getAccesToken();
    return $data->token;
}
catch (\Exception $exception){
    echo $exception->getMessage();
}
```

### Quote

[](#quote)

```
$products = [];

$products[] = [
    'alto' => 25,
    'ancho' => 10,
    'largo' => 15,
    'peso' => 2,
    'unidades' => 1
];

$params = [
    'pais_origen' => 'CO',
    'ciudad_origen' => '05001000',
    'pais_destino' => 'CO',
    'ciudad_destino' => '05266000',
    'valoracion' => '10000',
    "detalle" => $products
];

try{
    $data = $vendeFacil->quote($params);
    return $data->total;
}
catch (\Exception $exception){
    echo $exception->getMessage();
}
```

### Transaction

[](#transaction)

```
$products = [];

$products[] = [
    'nombre' => 'Nombre del Producto 1',
    'referencia' => 'PRD-0001',
    'imagen' => 'https://www.tiendavendesfacil.com/imagen-producto.jpg',
    'precio' => 150000,
    'por_impuesto' => 19,
    'alto' => 25,
    'ancho' => 10,
    'largo' => 15,
    'peso' => 2,
    'unidades' => 1
];

$products[] = [
    'nombre' => 'Nombre del Producto 2',
    'referencia' => 'PRD-0002',
    'imagen' => 'https://www.tiendavendesfacil.com/imagen-producto.jpg',
    'precio' => 150000,
    'por_impuesto' => 19,
    'alto' => 25,
    'ancho' => 10,
    'largo' => 15,
    'peso' => 2,
    'unidades' => 1
];

$params = [
    "ip_host" => "0.0.0.0",
    "ip_cliente" => "0.0.0.0",
    "referencia" => "123",
    "moneda" => "COP",
    "base_devolucion_impuestos" => 0,
    "total_impuestos" => 0,
    "total" => 100000,
    "total_transporte" => 150000,
    "descripcion" => "Compra en yourshop.com",
    "fechahora_expiracion" => "",
    "formas_pago_habilitadas" => [],
    "comprador" => [
        "correo_electronico" => "juan.perez@tiendavendesfacil.com",
        "identificacion" => "000555",
        "nombre" => "Juan Perez",
        "direccion" => "",
        "telefono" => "5554455",
        "pais" => "Colombia",
        "departamento" => "Antioquia",
        "ciudad" => "Bogotá",
        "codigo_postal" => ""
    ],
    "transporte" => true,
    "destinatario" => [
        "nombre" => "Juan Perez",
        "identificacion" => "000555",
        "direccion" => "Cll 10 # 83 - 17",
        "telefono" => "5554455",
        "codigo_pais" => "CO",
        "codigo_ciudad" => "11001000",
        "codigo_postal" =>""
    ],
    "detalle" => $products,
    "return_url" => "https://dummy.vendesfacil.com/carrito?id_pedido=123",
    "success_url" => "https://dummy.vendesfacil.com/pedido-finalizado?id_pedido=!23",
    "cancel_url" => "https://dummy.vendesfacil.com/pedido-cancelado?id_pedido=123",
    "ipn_url" => "https://dummy.vendesfacil.com/ipn.php",
    'correos_deshabilitados' => []
];

try{
    $data = $vendeFacil->transaction($params);
}
catch (\Exception $exception){
    echo $exception->getMessage();
}
```

### GetTransaction

[](#gettransaction)

```
$txid = "809bdfe5-5ca8-0360-cc28-59738daa8ad0";

try{
    $data = $vendeFacil->getTransaction($txid);
}
catch (\Exception $exception){
    echo $exception->getMessage();
}
```

### Documents

[](#documents)

```
$txid = "809bdfe5-5ca8-0360-cc28-59738daa8ad0";

$params = [
    "txid" => $txid,
    "unidades_empaque" => 1,
    "referencia" => "factura-123",
    "identificacion" => "1234567890",
    "nombre" => "Dummy Tienda VendesFacil",
    "direccion" => "Cll 10 # 10 - 10",
    "telefono" => "5554455",
    "codigo_pais" => "CO",
    "codigo_ciudad" => "05001000",
    "contenido" => "Descripción de la venta"
];

try{
    $data = $vendeFacil->documents($params);
}
catch (\Exception $exception){
    echo $exception->getMessage();
}
```

### Collection

[](#collection)

```
$txid = "809bdfe5-5ca8-0360-cc28-59738daa8ad0";

try{
    $data = $vendeFacil->collection($txid);
}
catch (\Exception $exception){
    echo $exception->getMessage();
}
```

### Get Status

[](#get-status)

```
$txid = "809bdfe5-5ca8-0360-cc28-59738daa8ad0";

try{
    $data = $vendeFacil->getStatus($txid);
}
catch (\Exception $exception){
    echo $exception->getMessage();
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

2586d ago

### Community

Maintainers

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

---

Tags

coordinadoravendesfacilapiecommercetransportecoordinadoravendesfacilvendesfacil-apivendesfacil-sdkphp-vendesfacilcommercio

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/saulmoralespa-vendes-facil/health.svg)

```
[![Health](https://phpackages.com/badges/saulmoralespa-vendes-facil/health.svg)](https://phpackages.com/packages/saulmoralespa-vendes-facil)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[aimeos/aimeos-headless

Aimeos headless ecommerce system

2.5k2.3k](/packages/aimeos-aimeos-headless)[robwittman/shopify-php-sdk

PHP SDK for Shopify API

7098.9k1](/packages/robwittman-shopify-php-sdk)[siro/php-klaviyo-api

Low level but elegant Klaviyo full API wrapper for PHP with asynchronous track event support

16115.4k](/packages/siro-php-klaviyo-api)[robby-bugatti/shopify-php-sdk

PHP SDK for Shopify API

702.7k](/packages/robby-bugatti-shopify-php-sdk)

PHPackages © 2026

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