PHPackages                             saulmoralespa/mipaquete-api-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/mipaquete-api-php

ActiveLibrary[API Development](/categories/api)

saulmoralespa/mipaquete-api-php
===============================

mipaquete API PHP SDk

1.0.0(6y ago)16MITPHPPHP &gt;=7.1CI failing

Since Nov 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/saulmoralespa/mipaquete-api-php)[ Packagist](https://packagist.org/packages/saulmoralespa/mipaquete-api-php)[ RSS](/packages/saulmoralespa-mipaquete-api-php/feed)WikiDiscussions master Synced 5d ago

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

Mipaquete API PHP
=================

[](#mipaquete-api-php)

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

[](#installation)

Use composer package manager

```
composer require saulmoralespa/mipaquete-api-php
```

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

// import webservice class
use Mipaquete\Client;

$email = "test@gmail.com"; // your email of Mipaquete
$password = "87654321" // your password of Mipaquete

$mipaquete = new Client($email, $password);
$this->mipaquete->sandboxMode(true); //true for tests, false for production
```

### POST Sending: Calculate sending - Messaging

[](#post-sending-calculate-sending---messaging)

```
$params = [
            "type" => 2, //1 paqueteria, 2 Mensajería
            "origin" => "5aa1bc55b63d79e54e7da753",
            "destiny" => "5aa1bc55b63d79e54e7da753",
            "weight" => 3,
            "declared_value" => 3000,
            "quantity" => 1,
            "special_service" => 2, //0 ninguno, 2 recaudo, 3  para retorno de documento firmado
            "value_collection" => 2000,
            "payment_type" => 1, // 1 pago con saldo, 5 pago con recaudo
            "value_select" => 3, //criterio selección 1 precio, 2 tiempo, 3 servicio
            "delivery" => "5cb0f5fd244fe2796e65f9c"
        ];

try{
    $response = $mipaquete->calculateSending($params);
}
catch (\Exception $exception){
    echo $exception->getMessage();
}
```

### POST Sending: Calculate sending - Packaging

[](#post-sending-calculate-sending---packaging)

```
$params = [
            "type" => 1, //1 paqueteria, 2 Mensajería
            "origin" => "5aa1bc46b63d79e54e7da346",
            "destiny" => "5aa1bc46b63d79e54e7da346",
            "width" => 3,
            "height" => 2,
            "large" => 4,
            "weight" => 7,
            "declared_value" => 3000,
            "quantity" => 1,
            "payment_type" => 1, // 1 pago con saldo, 5 pago con recaudo
            "value_select" => 3, //criterio selección 1 precio, 2 tiempo, 3 servicio
            "delivery" => "5cb0f5fd244fe2796e65f9c"
        ];

try{
    $response = $mipaquete->calculateSending($params);
}
catch (\Exception $exception){
    echo $exception->getMessage();
}
```

### GET Sending: Gets a list of sendings

[](#get-sending-gets-a-list-of-sendings)

```
try{
    $page = 1; //Paginación de resultados
    $response = $mipaquete->getListSendings($page);
}
catch (\Exception $exception){
    echo $exception->getMessage();
}
```

### PUT Sending: Cancel sendings

[](#put-sending-cancel-sendings)

```
try{
    $id = "5dc431d3cd24f62a991010bd";  //Clave principal del envío
    $response = $mipaquete->cancelSending($id);
}
catch (\Exception $exception){
    echo $exception->getMessage();
}
```

### GET Sending: Gets a list of towns

[](#get-sending-gets-a-list-of-towns)

```
try{
    $response = $mipaquete->getListTowns();
}
catch (\Exception $exception){
    echo $exception->getMessage();
}
```

### GET Sending: Get a single sending

[](#get-sending-get-a-single-sending)

```
try{
    $id = "5d5ffcb4fa561b7a086a882d"; //Clave principal del envío
     $response = $mipaquete->getSingleSending();
}
catch (\Exception $exception){
    echo $exception->getMessage();
}
```

### POST Sending: Messaging sending

[](#post-sending-messaging-sending)

```
$params = [
            "type" => 2,
            "weight" => 3,
            "declared_value" => 3000,
            "sender" => [
                "name" => "Test",
                "surname" => "Test",
                "phone" => 3546754,
                "cell_phone" => "3009887654",
                "email" => "test@aossas.com",
                "collection_address" => "Calle 2 #54-23",
                "nit" => "10038475643"
            ],
            "receiver" => [
                "name" => "rewrw",
                "surname" => "rewrw",
                "phone" => 4233452,
                "cell_phone" => 3004938245,
                "email" => "receiver@test.com",
                "destination_address"=> "Calle 23 C #23-54"
            ],
            "origin" => "5aa1bc46b63d79e54e7da346",
            "destiny" => "5aa1bc46b63d79e54e7da346",
            "quantity" => 1,
            "comments" => " ",
            "special_service" => 2, //0 ninguno, 2 recaudo, 3  para retorno de documento firmado
            "payment_type" => 5, // 1 pago con saldo, 5 pago con recaudo
            "collection_information" => [
            "bank" => "Bancolombia",
            "type_account" => "A",
            "number_account" => 3004938484,
            "name_beneficiary" => "Test Sender",
            "number_beneficiary" => 3004938484
            ],
            "value_collection" => 2000,
            "delivery" => "5cb0f5fd244fe2796e65f9c",
            "alternative" => 1
        ];
try{
    $response = $mipaquete->sendingType($params);
}
catch (\Exception $exception){
    echo $exception->getMessage();
}
```

### POST Sending: Packaging sending

[](#post-sending-packaging-sending)

```
$params = [
            "type" => 1,
            "width" => 3,
            "large" => 4,
            "height" => 2,
            "weight" => 7,
            "declared_value" => 3000,
            "sender" => [
                "name" => "Test",
                "surname" => "Test",
                "phone" => 3546754,
                "cell_phone" => "3009887654",
                "email" => "test@aossas.com",
                "collection_address" => "Calle 3 #54-23",
                "nit" => "10038475643"
            ],
            "receiver" => [
                "name" => "rewrw",
                "surname" => "rewrw",
                "phone" => 4232,
                "cell_phone" => 432423,
                "email" => "fdsfds@osd.com",
                "destination_address" => "casdsa"
            ],
            "origin" => "5aa1bc46b63d79e54e7da346",
            "destiny" => "5aa1bc46b63d79e54e7da346",
            "quantity" => 1,
            "comments" => "",
            "payment_type" => 1,  // 1 pago con saldo, 5 pago con recaudo
            "delivery" => "5cb0f5fd244fe2796e65f9c",
            "alternative" => 1
        ];

try{
    $response = $mipaquete->sendingType($params);
}
catch (\Exception $exception){
    echo $exception->getMessage();
}
```

### GET Sending: Novelties sending - Working in production

[](#get-sending-novelties-sending---working-in-production)

```
try{
    $id = "5d5ffcb4fa561b7a086a882d"; //Clave principal del envío
    $response = $mipaquete->getNoveltiesSending($id);
}
catch (\Exception $exception){
    echo $exception->getMessage();
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

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

2383d ago

### Community

Maintainers

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

---

Tags

apimipaquetemipaquete-apiphp-mipaquete

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/saulmoralespa-mipaquete-api-php/health.svg)

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

###  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)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

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