PHPackages                             saulmoralespa/servientrega-webservice-php - 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/servientrega-webservice-php

ActiveLibrary[API Development](/categories/api)

saulmoralespa/servientrega-webservice-php
=========================================

Web service Servientrega PHP

2.0.0(2y ago)71.8k↓38.6%5MITPHPPHP &gt;=8.1

Since Jun 10Pushed 2y ago2 watchersCompare

[ Source](https://github.com/saulmoralespa/servientrega-webservice-php)[ Packagist](https://packagist.org/packages/saulmoralespa/servientrega-webservice-php)[ RSS](/packages/saulmoralespa-servientrega-webservice-php/feed)WikiDiscussions master Synced 1mo ago

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

Servientrega Webservice PHP
===========================

[](#servientrega-webservice-php)

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

[](#installation)

You will need at least PHP 8.1. We match [officially supported](https://www.php.net/supported-versions.php) versions of PHP.

Use [composer](https://getcomposer.org/) package manager to install the lastest version of the package:

```
composer require saulmoralespa/servientrega-webservice-php
```

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

// import webservice class
use Servientrega\WebService;

$user = 'testajagroup';
$pwd = 'Colombia1';
$billingCode = 'SER408';
$idClient = '900917801';

//optional
$namePack = 'My shop';

$servientrega = new WebService($user, $pwd, $billingCode, $idClient, $namePack);

//Call this method each time you save credentials
//Token expire every 4 days
$servientrega->invalidateToken();;
```

### Shipping quoting

[](#shipping-quoting)

```
$params = [
            'IdProducto'          => 2, //1 documento unitario  or 6 mercancía industrial
            'NumeroPiezas'        => 1,
            'Piezas'              =>
                [
                    [
                        'Peso'  => 19,
                        'Largo' => 120,
                        'Ancho' => 70,
                        'Alto'  => 5,
                    ]
                ],
            'ValorDeclarado'      => 177400,
            'IdDaneCiudadOrigen'  => '05001000',
            'IdDaneCiudadDestino' => '76001000',
            'EnvioConCobro'       => true,
            'FormaPago'           => 2,
            'TiempoEntrega'       => 1,
            'MedioTransporte'     => 1,
            'NumRecaudo'          => 1
        ];

try{
$data = $this->webservice->liquidation($params);
var_dump($data);
}catch (\Exception $exception){
 echo $exception->getMessage();
}
```

### CargueMasivoExterno

[](#carguemasivoexterno)

```
$params = [
            'Num_Guia' => 0,
            'Num_Sobreporte' => 0,
            'Num_Piezas' => 1,
            'Des_TipoTrayecto' => 1,
            'Ide_Producto' => 2,
            'Ide_Destinatarios' => '00000000-0000-0000-0000-000000000000',
            'Ide_Manifiesto' => '00000000-0000-0000-0000-000000000000',
            'Des_FormaPago' => 2,
            'Des_MedioTransporte' => 1,
            'Num_PesoTotal' => 3,
            'Num_ValorDeclaradoTotal' => 50000,
            'Num_VolumenTotal' => 0,
            'Num_BolsaSeguridad' => 0,
            'Num_Precinto' => 0,
            'Des_TipoDuracionTrayecto' => 1,
            'Des_Telefono' => 7700380,
            'Des_Ciudad' => 'BOGOTA',
            'Des_Direccion' => 'CALLE 5 # 66-44',
            'Nom_Contacto' => 'TRIQUINET',
            'Des_VlrCampoPersonalizado1' => '',
            'Num_ValorLiquidado' => 0,
            'Des_DiceContener' => 'PAQUETE ESTANDAR',
            'Des_TipoGuia' => 0,
            'Num_VlrSobreflete' => 0,
            'Num_VlrFlete' => 0,
            'Num_Descuento' => 0,
            'idePaisOrigen' => 1,
            'idePaisDestino' => 1,
            'Des_IdArchivoOrigen' => 1,
            'Des_DireccionRemitente' => 'TERMINAL MARITIMO S.P.R.B. ED. ALCAZAR BG N. 2 Y 3',
            'Num_PesoFacturado' => 0,
            'Est_CanalMayorista' => false,
            'Num_IdentiRemitente' => '',
            'Num_TelefonoRemitente' => '',
            'Num_Alto' => 1,
            'Num_Ancho' => 1,
            'Num_Largo' => 1,
            'Des_DepartamentoDestino' => 'CUNDINAMARCA',
            'Des_DepartamentoOrigen' => '',
            'Gen_Cajaporte' => 0,
            'Gen_Sobreporte' => 0,
            'Nom_UnidadEmpaque' => 'GENERICA',
            'Des_UnidadLongitud' => 'cm',
            'Des_UnidadPeso' => 'kg',
            'Num_ValorDeclaradoSobreTotal' => 0,
            'Num_Factura' => 'FACT-001',
            'Des_CorreoElectronico' => 'youremail@gmail.com',
            'Num_Recaudo' => 0,
            'Est_EnviarCorreo' => false
        ];

try{
$data = $servientrega->CargueMasivoExterno($params);
var_dump($data);
}catch (\Exception $exception){
 echo $exception->getMessage();
}
```

### AnularGuias

[](#anularguias)

```
$params = [
            'num_Guia' => '292710910',
            'num_GuiaFinal' => '292710910'
        ];

try{
$data = $servientrea->AnularGuias($params);
var_dump($data);
}catch (\Exception $exception){
 echo $exception->getMessage();
}
```

### EncriptarContrasena

[](#encriptarcontrasena)

```
$params = [
            'strcontrasena' => 'Colombia1'
        ];

try{
$data = $servientrea->EncriptarContrasena($params);
var_dump($data);
}catch (\Exception $exception){
 echo $exception->getMessage();
}
```

### DesencriptarContrasena

[](#desencriptarcontrasena)

```
$params = [
            'strcontrasenaEncriptada' => 'BpSUh12jBIiWdACDozgOaQ=='
        ];

try{
$data = $servientrea->DesencriptarContrasena($params);
var_dump($data);
}catch (\Exception $exception){
 echo $exception->getMessage();
}
```

### ConsultarGuia

[](#consultarguia)

```
$params = [
            'NumeroGuia' => '292710915'
        ];

try{
$data = $servientrea->ConsultarGuia($params);
var_dump($data);
}catch (\Exception $exception){
 echo $exception->getMessage();
}
```

### EstadoGuia

[](#estadoguia)

```
$params = [
           'guia' => '30007691'
        ];

try{
$data = $servientrea->EstadoGuia(($params);
var_dump($data);
}catch (\Exception $exception){
 echo $exception->getMessage();
}
```

### EstadoGuiaXML

[](#estadoguiaxml)

```
$params = [
           'guia' => '30007691'
        ];

try{
$data = $servientrea->EstadoGuiaXML(($params);
var_dump($data);
}catch (\Exception $exception){
 echo $exception->getMessage();
}
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity72

Established project with proven stability

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

Recently: every ~420 days

Total

6

Last Release

852d ago

Major Versions

1.0.4 → 2.0.02024-01-17

PHP version history (2 changes)1.0.0PHP &gt;=7.1

2.0.0PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![saulmoralespa](https://avatars.githubusercontent.com/u/19959663?v=4)](https://github.com/saulmoralespa "saulmoralespa (3 commits)")

---

Tags

colombiaphpservientregawebservice

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/saulmoralespa-servientrega-webservice-php/health.svg)

```
[![Health](https://phpackages.com/badges/saulmoralespa-servientrega-webservice-php/health.svg)](https://phpackages.com/packages/saulmoralespa-servientrega-webservice-php)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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